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 an index. What are the types?
What is the security principal at the database level that represents your session?
How do database indexes work?
Explain “@@rowcount” and “@@error” in sql server?
What is partitioned view?
what is the difference between writing data to mirrored drives versus raid5 drives. : Sql server administration
Sql studio em braces a variety of capabilities, but will I need them all? Is there a simpler product ? : sql server management studio
What is correlated subquery in sql server?
explain different types of backups avaialabe in sql server? : Sql server database administration
What is the use of “join” in sql server?
Explain syntax for viewing, dropping and disabling triggers?
Suppose you want to implement the following relationships while designing tables. How would you do it?a.) One-to-oneb.) One-to-manyc.) Many-to-many
Explain the steps to use transact-sql cursor?
How to loop through result set objects using odbc_fetch_row()?
What is a dataset and what are the different types of datasets?