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
What is 'write-ahead log' in sql server 2000 ?
Can group functions be used in the order by clause in ms sql server?
How to modify an existing stored procedure in ms sql server?
What is NOT NULL Constraint in sql server 2012?
Why do we use non clustered index?
What is it unwise to create wide clustered index keys?
Explain can SSRS reports Cache results?
What is sqlcmd?
What is the use of =,==,=== operators?
Please explain the characteristics of a transaction server for example atomicity, consistency, isolation, durability?
What is Service Broker in sql server 2012?
What is an sql server agent?
How to check status of stored procedure in sql server?
Explain primary key?
What is collation sensitivity?