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 field with example?
What is the purpose of optimization?
How we can refresh the view?
How to execute stored procedure in select statement sql server?
What is built-in function?
How to convert a unicode strings to non-unicode strings?
System requirements for sql server 2005 express edition?
Can we write trigger for view?
What are the different sql server versions?
What are the risks of storing a hibernate-managed object in a cache? How do you overcome the problems?
What is the recommended total size of your memory optimized tables?
How to run queries with sql server management studio express?
What does the not null constraint do?
What are the different authentication modes in sql server?
How to connect to SQL Azure Database by using sqlcmd?