SQL Server Start Time

Para conferir o horário de início do serviço da sua instância de SQL Server basta utilizar um dos scripts abaixo.

SELECT sqlserver_start_time
FROM sys.dm_os_sys_info;

SELECT login_time
FROM sys.dm_exec_sessions
WHERE session_id = 1;

SELECT create_date
FROM sys.databases
WHERE name = 'tempdb';

Gostou? Dúvidas? Críticas?
Deixe seu comentário!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s