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 |
If we shrink the Databse and Files, how much size is decreased?
What is the default value of an integer data type in sql server 2005?
What are the advantages of using views. Why do we need views when we have SPs?
how can you select rexcord(rows) from table A which is not present in Table B . Id being the FK in Table B referencing to ID Table A
When should you use an instead of trigger?
How to retrieve field values using mssql_result()?
which one will take 1st priority in case of insert statement and select statement???
How to concatenate two binary strings together?
What is data compression? : sql server database administration
Syntax to find the used space and free space of the Data file in a database(SQL Server). Following queries didn't give the exact Used space and Free Space Information sp_spaceused;DBCC showfilestats;exec MyDbName.dbo.sp_spaceused;SP_HELPFILE Can any one tell me the query for how to find the exact used data file space and free space in a Data File?
Can you tell me about the concept of ER diagrams?
How to download and install microsoft .net framework version 2.0?