September 1, 2005 at 1:13 pm
How can i check anything that happened in last hour used getdate function. any idea?
TIA
September 1, 2005 at 1:19 pm
Select Cols from dbo.YourTable where DateCol between DateAdd(hh, -1, GetDate()) and GetDate()
September 1, 2005 at 1:31 pm
But what if there isnt any date column in the table. All i need to check is the number of rows inserted in last 1 hour.
September 1, 2005 at 1:39 pm
It takes a log explorer to do that (assuming recovery mode is set to full). There are a few reviews on this site for such products.
September 1, 2005 at 2:23 pm
If you have a column defined for insert/update you could query off of that....
Good Hunting!
AJ Ahrens
webmaster@kritter.net
September 1, 2005 at 2:26 pm
"But what if there isnt any date column in the table. All i need to check is the number of rows inserted in last 1 hour."
September 1, 2005 at 3:41 pm
I think then that you are SOL unless you buy a 3rd party app to scroll through the Tlog OR enhance your system to have an audit trail...
Good Hunting!
AJ Ahrens
webmaster@kritter.net
September 1, 2005 at 5:21 pm
SOL?
September 1, 2005 at 5:28 pm
S@#^%# out of luck ....
Good Hunting!
AJ Ahrens
webmaster@kritter.net
Viewing 9 posts - 1 through 8 (of 8 total)
You must be logged in to reply to this topic. Login to reply