Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to get last system shutdown time in Sql server when
restarted system?



How to get last system shutdown time in Sql server when restarted system?..

Answer / 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

More SQL Server Interview Questions

How you can minimize the deadlock situation?

0 Answers  


Explain the etl (extraction, transformation, and loading)?

0 Answers  


How dts is used to extract, transform and consolidate data?

0 Answers  


How many types of Cursor in SQL SERVER?

1 Answers  


How to retrieve error messages using odbc_errormsg()?

0 Answers  


What is read uncmmited?

0 Answers  


Does union all remove duplicates?

0 Answers  


What is WITH CHECK OPTION

3 Answers   Karur Vysya Bank KVB,


Is it possible for a stored procedure to call itself or recursive stored procedure? How many levels of sp nesting are possible?

0 Answers  


How many partitions a clustered index has by default in sql server 2012?

0 Answers  


What does this statement do @@rowcount?

0 Answers  


How many types of subqueries are there in sql server?

0 Answers  


Categories