SQL SERVER – 2008 – SQL Server Start Time

I have been playing with SQL Server 2008 recently. There are many new features which SQL Server 2008 have. One of the interesting addition to SQL Server 2008 is system table field which records when SQL Server was started. This field has data type as datetime that is why it is precise to 3 milisecond.

Note : This will not work with SQL Server 2005 or earlier version. This works with SQL Server 2008 only.

SELECT sqlserver_start_time
FROM sys.dm_os_sys_info

ResultSet:
sqlserver_start_time
———————–
2008-06-27 20:51:53.317

Reference : Pinal Dave (https://blog.sqlauthority.com)

SQL DateTime, SQL Scripts
Previous Post
SQL SERVER – Introduction to SERVERPROPERTY and example
Next Post
SQLAuthority News – Famous Quotes From Bill Gates

Related Posts

Leave a Reply