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

What is 2nf normalization?

605


What is the purpose of optimization?

603


What is the difference between sdf and mdf?

758


What options are available to audit login activity? : sql server security

700


What are different types of schemas?

577






What are diverse clauses that form a part of sql?

661


Define right outer join?

610


What is impersonation? What are the different impersonation options available in ssas? : sql server analysis services, ssas

610


How to resolve the orphan use problem? : sql server security

597


What are the differences between substr and charindex in sql server.

569


What is co-related sub query?

628


what is a join? : Sql server database administration

613


Who is the owner of a schema in ms sql server?

606


Difference between aggregate functions of sql?

715


What is bulkcopy in sql?

617