How to get last system shutdown time in Sql server when
restarted system?
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 |
How to Insert multiple rows with a single insert statement?
Mention the 3 ways to get a count of the number of records in a table.
What are logical/boolean operations in ms sql server?
What is the difference between for trigger and after trigger?
What is the beast way to write CTE in SQL Server ?
How can you check the version of sql server?
What is the use of group by clause?
Is natural join and equi join same?
what is index seek and index scan?
How do you load large data to the SQL server database?
Is it possible to have more then one foreign key in a single table? if possible, is this the good way to design the table?
What are the 7 disadvantages to a manual system?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)