SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 how long since last restart?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

magray2
Starting Member

4 Posts

Posted - 03/13/2007 :  15:24:23  Show Profile  Reply with Quote
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

Sweden
30282 Posts

Posted - 03/13/2007 :  15:28:23  Show Profile  Visit SwePeso's Homepage  Reply with Quote
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

Sweden
30282 Posts

Posted - 03/13/2007 :  15:29:11  Show Profile  Visit SwePeso's Homepage  Reply with Quote
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 - 03/13/2007 :  15:42:41  Show Profile  Reply with Quote
Thanks!
Go to Top of Page

sphadke
Yak Posting Veteran

USA
55 Posts

Posted - 03/13/2007 :  23:40:42  Show Profile  Visit sphadke's Homepage  Reply with Quote
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

Edited by - sphadke on 03/13/2007 23:45:37
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000