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 |
What are the difference between clustered and a non-clustered index?
What is the main purpose of having conversation group?
What are the joins in sql server? : sql server database administration
How do you identify a foreign key?
Can we rollback records deleted by a truncate statement?
3 Answers CarrizalSoft Technologies, United Healthcare,
explain different types of joins? : Sql server database administration
A user is a member of the public role and the sales role. The public role has select permission on all the tables. The sales role does not have select permission on some of the tables will the user be able to select from all tables?
How to create user messages with print statements in ms sql server?
What are three ways you can use an identity value inside a trigger? Why would you prefer one way over another?
How to restart SQL Server in single user mode? How to start SQL Server in minimal configuration mode?
What is the fastest way to permanently delete a 1 million row table named customers?
If there is failure during updation of certain rows, what will be the state?