Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2012 Forums
 Transact-SQL (2012)
 Detecting no action after amount of time
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

1 Posts

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

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

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  
 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.02 seconds. Powered By: Snitz Forums 2000