SQL Server Admin
T-SQL Articles

April 21, 2009

When did my SQL Server Service Restart?




If you like to keep a track of when your SQL Server Service Restarted or when the TempDB table was created again, here's these queries for you

SQL Server Service Last Restart Time


SELECT MIN(login_time) FROM master..sysprocesses




When was TempDB last recreated?


SELECT CrDate as TempDBRecreated


FROM sys.sysdatabases


WHERE name = 'tempdb'



Did you like this post?
kick it on DotNetKicks.com
subscribe via rss subscribe via e-mail
print this post follow me on twitter



 
  Feedback:

comments

0 Responses to "When did my SQL Server Service Restart?"
 

Copyright © 2009-2011 All Rights Reserved for SQLServerCurry.com by Suprotim Agarwal | Terms and Conditions