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

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 how long since last restart?

Author  Topic 

magray2
Starting Member

4 Posts

Posted - 2007-03-13 : 15:24:23
Maybe a 'dumb' question, but I can't figure it out. I can't tell from the logs since they are periodically truncated, so how can I tell when the system was last restarted?

I would like to know the period of time that a dmv has been updating a particular view.

Your help is most appreciated.

-- M

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-03-13 : 15:28:23
This question was asked not long ago.
Try searching for SYSPROCESSES.


Peter Larsson
Helsingborg, Sweden
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-03-13 : 15:29:11
Found it:
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=79783


Peter Larsson
Helsingborg, Sweden
Go to Top of Page

magray2
Starting Member

4 Posts

Posted - 2007-03-13 : 15:42:41
Thanks!
Go to Top of Page

sphadke
Yak Posting Veteran

55 Posts

Posted - 2007-03-13 : 23:40:42
look at the create date for the tempDB database. that should give you an idea :)

here is the query for a sql 2005 instance

SELECT [Name] , CrDate as DateServerRebooted
from sys.sysdatabases
WHERE dbid = 2

Sachin
Go to Top of Page
   

- Advertisement -