This is a mirror of official site: http://jasper-net.blogspot.com/

How to Tell When SQL Server Started?

| Thursday, April 29, 2010
As a consultant, I’m regularly asked to diagnose and solve problems when I have incomplete or conflicting information given to me by the client. They don’t mean any harm, but different people in the organization have different perspectives and different memories. Sometimes it is difficult to know what is really happening.

When I’m working with systems like SQL Server, it is always good to gather as much information from the system itself as I can and not rely too heavily on someone else’s memory. Trust but verify as President Ronald Reagan once said.
When was the server restarted?

SQL Server maintains a lot of information about how it’s doing and when certain events ocurred. Much of this information resides in the Dynamic Management Views (DMVs) of SQL Server 2005 and 2008.

For example, let’s say we want to know when the SQL Server instance was last restarted. When can easily collect this information using a quick query. There are several other methods as well but this one is my preferred way.

SELECT

Login_Time
FROM
sys.dm_exec_sessions
WHERE
Session_Id = 1;

Read more: WebbTech Solutions

Posted via email from jasper22's posterous

29 comments:

Anonymous said...

Неплохой пост но много лишнего.

Anonymous said...

Чёрт возьми! Круто!Вы Сами ответили.Беру в цитник! Смысл жизни и всё остальное. Решено.Без шуток.

Anonymous said...

[url=http://acquistocialisfacile.com/#8241]cialis[/url], cialis generico, http://acquistocialisfacile.com/#75879 cialis

Anonymous said...

[url=http://acquistocialisfacile.com/#30217]acquistare cialis[/url], cialis, http://acquistocialisfacile.com/#64248 cialis

Anonymous said...

[url=http://acquistocialisfacile.com/#6276]costo cialis[/url], cialis acquistare, http://acquistocialisfacile.com/#78312 cialis

Anonymous said...

[url=http://acquistocialisfacile.com/#44382]cialis senza ricetta[/url], cialis, http://acquistocialisfacile.com/#2022 cialis

Anonymous said...

[url=http://acquistocialisfacile.com/#35862]cialis senza ricetta[/url], cialis, http://acquistocialisfacile.com/#99723 cialis generico

Anonymous said...

[url=http://viagraacquistoitalia.com/#89881]viagra online[/url], viagra, http://viagraacquistoitalia.com/#87853 acquisto viagra

Anonymous said...

[url=http://acquistocialisfacile.com/#12251]cialis acquisto[/url], cialis, http://acquistocialisfacile.com/#61489 costo cialis

Anonymous said...

[url=http://acquistocialisfacile.com/#30515]cialis[/url], cialis prezzo, http://acquistocialisfacile.com/#96722 cialis

Anonymous said...

[url=http://viagraacquistoitalia.com/#69954]acquisto viagra[/url], viagra online, http://viagraacquistoitalia.com/#94448 acquisto viagra

Anonymous said...

[url=http://acquistocialisfacile.com/#34882]cialis[/url], cialis, http://acquistocialisfacile.com/#4814 cialis

Anonymous said...

[url=http://acquistocialisfacile.com/#2698]costo cialis[/url], cialis, http://acquistocialisfacile.com/#76620 cialis

Anonymous said...

[url=http://osiak.net/#29426]acquisto viagra[/url], viagra, http://osiak.net/#49423 sildenafil

Anonymous said...

[url=http://almozara.org]comprare[/url], garantiti, http://almozara.org almozara.org

Anonymous said...

[url=http://bewunderful.org]vai al sito[/url], bewunderful, http://bewunderful.org visualizza il sito

Anonymous said...

[url=http://bewunderful.org]recensione[/url], 10mg, http://bewunderful.org bewunderful.org

Anonymous said...

[url=http://bewunderful.org]acquisto[/url], migliori, http://bewunderful.org garantito

Anonymous said...

[url=http://bewunderful.org]acquisto[/url], visualizza il sito, http://bewunderful.org migliori

Anonymous said...

garanzie, clicca qui, http://bewunderful.org medicinali

Anonymous said...

visualizza il sito, bewunderful.org, http://bewunderful.org clikka

Anonymous said...

garantiti, bewunderful, http://bewunderful.org effetti collaterali

Anonymous said...

bewunderful, visualizza il sito, http://bewunderful.org bewunderful

Anonymous said...

10mg, vai, http://bewunderful.org migliori

Anonymous said...

bewunderful.org, clikka, http://bewunderful.org bewunderful.org

Anonymous said...

acquisto cialis, cialis, http://cialisacquisto24.com/#nwww.blogger.com acquisto cialis

Anonymous said...

[url=http://www.novenocentenario.com/?p=83]continue reading this[/url]

Anonymous said...

[url=http://www.drivertrainingacademy.net/2013/02/lodge-field-guidelines-in-india/]this guy[/url]

Anonymous said...

[url=http://www.empresasocialmenteresponsable.org/2013/02/07/eminent-downtown-resort-in-phoenix/]site[/url]