SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 How to check SQL Litespeed Logshipping in SYNC
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

mdubey
Posting Yak Master

USA
133 Posts

Posted - 07/15/2008 :  10:30:46  Show Profile  Reply with Quote
Hi All,

I have questions. I have SQL 2003 Windows server with SQL server 2005 and litespeed4.602 version.

I have configured the logshipping theu litespeed. I want to see is Logshippinig is in sync or not?

I know I can check by SQL logs and windows log, But I want to see with T-SQL for Litespeed.

Here is the TSQL for litespeed. I can not see any error but I know the logshipping is not sync.

SELECT * FROM LitespeedLocal..litespeedactivity
WHERE starttime > DATEADD(mi, -60, GETDATE())
ORDER BY starttime


Could any one know how to check the in-Sync or Out of Sync status of the litespeed logshipping?

Manoj
MCP, MCTS

bkharel
Starting Member

1 Posts

Posted - 01/10/2014 :  14:54:14  Show Profile  Reply with Quote
Run the following system stored Procedure across master database:
use master
sp_check_log_shipping_monitor_alert

This will give you the result if databases are in sync or not.
If in sync - then you get commands run successfully
If out of sync- you get the message like
(The log shipping secondary database XXXX has restore threshold of XX minutes and is out of sync. No restore was performed for XX minutes. Restored latency is XXXX minutes. Check agent log and logshipping monitor information.)
Go to Top of Page

tkizer
Almighty SQL Goddess

USA
36845 Posts

Posted - 01/10/2014 :  15:08:44  Show Profile  Visit tkizer's Homepage  Reply with Quote
I doubt sp_check_log_shipping_monitor_alert will provide the needed info when the log shipping solution is through Litespeed and not the built-in 2005 log shipping. Hopefully Manoj found a suitable answer for Litespeed 5 years ago.

Tara Kizer
SQL Server MVP since 2007
http://weblogs.sqlteam.com/tarad/
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000