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 2012 Forums
 Transact-SQL (2012)
 Detecting no action after amount of time
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

nicoz123
Starting Member

1 Posts

Posted - 02/06/2013 :  07:17:19  Show Profile  Reply with Quote
Hi

I have a question regarding SQL SERVER 2008 R2.
I have two databases that are connected with eachother and they exchange information, but for some particular reason it stops working sometimes. Now my question is, is there a way to find out when there is no more action (nothing written in any table) after 30 minutes. Is there a script that can recognise this and execute another script, that I already have, and that way don't have to run manually.
For example it checks if the last timestamp was more than 30 minutes ago?

Thanks anyway
Nicolas

srimami
Posting Yak Master

160 Posts

Posted - 02/08/2013 :  17:24:50  Show Profile  Reply with Quote
I do not have scripts readily available but this can be achieved using batch scripts. The batch scripts checks whether any actions happened for the last 30 minutes on the databases and if No action occurred, you can fire another script to run on databases.
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.06 seconds. Powered By: Snitz Forums 2000