September 28, 2010 at 12:54 pm
I don't mean the last start time by,
SELECT create_date
FROM sys.databases
WHERE database_id = 2
I need the last SHUTDOWN time.
Thanks.
September 28, 2010 at 1:01 pm
Look at the first archived sql log file
September 28, 2010 at 1:10 pm
Ben:
Could you explain the details please?
Thanks.
September 28, 2010 at 1:26 pm
Under the Management folder in SSMS, there is an error log folder. Look at the prior error log (errorlog.1) to determine when the shutdown was issued.
September 28, 2010 at 1:31 pm
T-SQL alternative to what Steve had mentioned. Execute
sp_readerrorlog 1
The last entry in the output would give you the time when the instance was restarted
Pradeep Adiga
Blog: sqldbadiaries.com
Twitter: @pradeepadiga
Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy