Congratulations to all monthly winners of May 2013 !!! They have won INR 2900 cash and INR 27497 worth prize.
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 5701 |  Welcome, Guest!   Register  Login
 Home > Interview Questions > SQL Server Interview Questions > How to identify the SQL Server Start/Res ...

How to identify the SQL Server Start/Restart Date & Time ?

Interview question and answer by: PandianS | Posted on: 10/27/2010 | Category: SQL Server Interview questions | Views: 2255 | | Points: 40
Ads
Ads


Answer:

1. When was the SQL Server Service Started ?
SELECT sqlserver_start_time 'SQL Server Started at' FROM sys.dm_os_sys_info

GO
2. When was the TempDB database Re-Created ?
SELECT create_date 'SQL Server Started at' FROM sys.databases WHERE [name] ='tempdb'

GO
Both the query have some difference on it's Time, Because, The Tempdb database will be Re-created after the SQL Server service started.

Asked In: Many Interviews | Alert Moderator 
Found interesting? Add this to:


>> Write Response - Respond to this post and get points

Even more ... | Submit Interview Questions and win prizes!

More Interview Questions from PandianS

Even more ... | Submit Interview Questions and win prizes!


About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 6/18/2013 6:44:26 PM