yuvipoy (11/14/2012)
you can get the time by running this query alsoSelect name,crdate from sys.sysdatabases where name='tempdb'
That gets you the time the SQL instance was last started, not the time the server was last rebooted.
sysdatabases is deprecated, should not be used, included only for backward compat with SQL 2000, will be removed in a future version. The replacement is sys.databases
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability