How to get last system shutdown time in Sql server when
restarted system?

Answer Posted / gaurav.verma4210

SELECT * from
sys.databases
is used for find the id of database.
SELECT create_date
FROM sys.databases
WHERE database_id = 2
Tempdb db is recreated each time SQL Server is restarted so
the created date time of TEMPDB will also give you the date
and time of the last restart of the instance.

Is This Answer Correct ?    8 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to find tables without indexes?

780


what are cursors? : Sql server database administration

719


What are filegroups in sql server?

777


Can an entity have two primary keys?

725


Explain about link server in sql server?

738






How do I find the port number for sql server?

689


What are the benefits of filtered indexes?

713


How do I install only the client tools of sql server 2000?

734


what exactly sql injuction.how to overcome.....

2243


Explain what is the use of custom fields in report?

689


What are the parts of a function?

671


Explain database normalization?

873


what is create database syntax? : Sql server database administration

794


Differentiate between ms sql server reporting services vs crystal reports?

655


What are cursors and when they are useful?

743