Home Forums Article Discussions Article Discussions by Author Discuss content posted by Chris Gillham Get SQLServer Name and Uptime SPROC RE: Get SQLServer Name and Uptime SPROC
MiguelSQL
Hall of Fame
Points: 3112
More actions
November 16, 2010 at 3:08 pm
#1251613
There are many ways to skin a cat:
This is my way:
select crdate,[Name] from sys.sysdatabases where name = 'tempdb'
Why does this work?
Well... every time you MSSQL Starts, it recreates the TEMPDB.
🙂
Miguel