<?xml version="1.0" encoding="utf-8"?><!-- generator="b2evolution/6.11.7-stable" -->
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:admin="http://webns.net/mvcb/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Holger Schmeling - Category: "Monitoring"</title>
		<link>https://www.insidesql.org/blogs/holgerschmeling/</link>
		<atom:link rel="self" type="application/rss+xml" href="https://www.insidesql.org/blogs/holgerschmeling/?tempskin=_rss2" />
		<description>InsideSQL.org Blogs - Blogs über SQL Server</description>
		<language>en-EU</language>
		<docs>http://blogs.law.harvard.edu/tech/rss</docs>
		<admin:generatorAgent rdf:resource="http://b2evolution.net/?v=6.11.7-stable"/>
		<ttl>60</ttl>
				<item>
			<title>SQL Server Start Time</title>
			<link>https://www.insidesql.org/blogs/holgerschmeling/2011/02/22/sql-server-start-time</link>
			<pubDate>Tue, 22 Feb 2011 07:12:44 +0000</pubDate>			<dc:creator>Holger Schmeling</dc:creator>
			<category domain="alt">SQL Server Administration</category>
<category domain="alt">SQL Server Tips</category>
<category domain="main">Monitoring</category>			<guid isPermaLink="false">2673@https://www.insidesql.org/blogs/</guid>
						<description>&lt;p&gt;Have you tried finding out the time, your SQL Server instance has been started? There are some sophisticated solutions, like the one from Tracy Hamlin (&lt;a href=&quot;http://twitter.com/tracyhhamlin&quot;&gt;twitter&lt;/a&gt;), which takes advantage of the fact that tempdb is re-created every time, SQL Server starts. Her solution goes like this:&lt;/p&gt;
&lt;table class=&quot;MsoTableGrid&quot; style=&quot;border-bottom: medium none; border-left: medium none; border-collapse: collapse; background: #f5f0df; border-top: medium none; border-right: medium none; mso-border-alt: dashed #8db3e2 .5pt; mso-border-themecolor: text2; mso-border-themetint: 102; mso-yfti-tbllook: 1184; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-border-insideh: .5pt dashed #8db3e2; mso-border-insideh-themecolor: text2; mso-border-insideh-themetint: 102; mso-border-insidev: .5pt dashed #8db3e2; mso-border-insidev-themecolor: text2; mso-border-insidev-themetint: 102&quot; border=&quot;1&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;
&lt;tbody&gt;
&lt;tr style=&quot;mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes&quot;&gt;
&lt;td style=&quot;border-bottom: #8db3e2 1pt dashed; border-left: #8db3e2 1pt dashed; padding-bottom: 0in; padding-left: 5.4pt; padding-right: 5.4pt; border-top: #8db3e2 1pt dashed; border-right: #8db3e2 1pt dashed; padding-top: 0in; mso-border-alt: dashed #8db3e2 .5pt; mso-border-themecolor: text2; mso-border-themetint: 102&quot; width=&quot;905&quot; valign=&quot;top&quot;&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none&quot;&gt;&lt;span style=&quot;font-family: ; mso-bidi-font-family: &#039;Times New Roman&#039;; mso-ansi-language: en-us; mso-no-proof: yes&quot; lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: Lucida Console; color: #0000ff;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;select&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: ; mso-bidi-font-family: &#039;Times New Roman&#039;; mso-ansi-language: en-us; mso-no-proof: yes&quot; lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: Lucida Console;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;span style=&quot;color: #000000;&quot;&gt; create_date                    &lt;br /&gt;&lt;span style=&quot;mso-spacerun: yes&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;from&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; &lt;/span&gt;&lt;span&gt;&lt;span style=&quot;color: #008000;&quot;&gt;sys&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;color: #808080;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;color: #008000;&quot;&gt;databases&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; &lt;/span&gt;&lt;span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;where&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; database_id&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;color: #808080;&quot;&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;2&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Another answer to the question, I&#039;ve seen sometimes on the internet queries the login time for any of the system processes:&lt;/p&gt;
&lt;table class=&quot;MsoTableGrid&quot; style=&quot;border-bottom: medium none; border-left: medium none; border-collapse: collapse; background: #f5f0df; border-top: medium none; border-right: medium none; mso-border-alt: dashed #8db3e2 .5pt; mso-border-themecolor: text2; mso-border-themetint: 102; mso-yfti-tbllook: 1184; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-border-insideh: .5pt dashed #8db3e2; mso-border-insideh-themecolor: text2; mso-border-insideh-themetint: 102; mso-border-insidev: .5pt dashed #8db3e2; mso-border-insidev-themecolor: text2; mso-border-insidev-themetint: 102&quot; border=&quot;1&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;
&lt;tbody&gt;
&lt;tr style=&quot;mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes&quot;&gt;
&lt;td style=&quot;border-bottom: #8db3e2 1pt dashed; border-left: #8db3e2 1pt dashed; padding-bottom: 0in; padding-left: 5.4pt; padding-right: 5.4pt; border-top: #8db3e2 1pt dashed; border-right: #8db3e2 1pt dashed; padding-top: 0in; mso-border-alt: dashed #8db3e2 .5pt; mso-border-themecolor: text2; mso-border-themetint: 102&quot; width=&quot;905&quot; valign=&quot;top&quot;&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none&quot;&gt;&lt;span style=&quot;font-family: ; mso-bidi-font-family: &#039;Times New Roman&#039;; mso-ansi-language: en-us; mso-no-proof: yes&quot; lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: Lucida Console; color: #0000ff;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;select&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: ; mso-bidi-font-family: &#039;Times New Roman&#039;; mso-ansi-language: en-us; mso-no-proof: yes&quot; lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: Lucida Console;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;span style=&quot;color: #000000;&quot;&gt; login_time                    &lt;br /&gt;&lt;span style=&quot;mso-spacerun: yes&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;from&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; &lt;/span&gt;&lt;span&gt;&lt;span style=&quot;color: #008000;&quot;&gt;sys&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;color: #808080;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;color: #008000;&quot;&gt;dm_exec_sessions&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; &lt;/span&gt;&lt;span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;where&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; session_id&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;color: #808080;&quot;&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;1&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;This was my preferred way - until yesterday, when I discovered the following simple method:&lt;/p&gt;
&lt;table class=&quot;MsoTableGrid&quot; style=&quot;border-bottom: medium none; border-left: medium none; border-collapse: collapse; background: #f5f0df; border-top: medium none; border-right: medium none; mso-border-alt: dashed #8db3e2 .5pt; mso-border-themecolor: text2; mso-border-themetint: 102; mso-yfti-tbllook: 1184; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-border-insideh: .5pt dashed #8db3e2; mso-border-insideh-themecolor: text2; mso-border-insideh-themetint: 102; mso-border-insidev: .5pt dashed #8db3e2; mso-border-insidev-themecolor: text2; mso-border-insidev-themetint: 102&quot; border=&quot;1&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;
&lt;tbody&gt;
&lt;tr style=&quot;mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes&quot;&gt;
&lt;td style=&quot;border-bottom: #8db3e2 1pt dashed; border-left: #8db3e2 1pt dashed; padding-bottom: 0in; padding-left: 5.4pt; padding-right: 5.4pt; border-top: #8db3e2 1pt dashed; border-right: #8db3e2 1pt dashed; padding-top: 0in; mso-border-alt: dashed #8db3e2 .5pt; mso-border-themecolor: text2; mso-border-themetint: 102&quot; width=&quot;905&quot; valign=&quot;top&quot;&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none&quot;&gt;&lt;span style=&quot;font-family: ; mso-bidi-font-family: &#039;Times New Roman&#039;; mso-ansi-language: en-us; mso-no-proof: yes&quot; lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: Lucida Console; color: #0000ff;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;select&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: ; mso-bidi-font-family: &#039;Times New Roman&#039;; mso-ansi-language: en-us; mso-no-proof: yes&quot; lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: Lucida Console;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;span style=&quot;color: #000000;&quot;&gt; sqlserver_start_time                    &lt;br /&gt;&lt;span style=&quot;mso-spacerun: yes&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;from&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; &lt;/span&gt;&lt;span&gt;&lt;span style=&quot;color: #008000;&quot;&gt;sys&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;color: #808080;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-size: 11pt; color: #008000;&quot;&gt;dm_os_sys_info&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Easy, isn&#039;t it? Interestingly though, every of the above three queries yields a different result. Here&#039;s a query with a sample output:&lt;/p&gt;
&lt;table class=&quot;MsoTableGrid&quot; style=&quot;border-bottom: medium none; border-left: medium none; border-collapse: collapse; background: #f5f0df; border-top: medium none; border-right: medium none; mso-border-alt: dashed #8db3e2 .5pt; mso-border-themecolor: text2; mso-border-themetint: 102; mso-yfti-tbllook: 1184; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-border-insideh: .5pt dashed #8db3e2; mso-border-insideh-themecolor: text2; mso-border-insideh-themetint: 102; mso-border-insidev: .5pt dashed #8db3e2; mso-border-insidev-themecolor: text2; mso-border-insidev-themetint: 102&quot; border=&quot;1&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;
&lt;tbody&gt;
&lt;tr style=&quot;mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes&quot;&gt;
&lt;td style=&quot;border-bottom: #8db3e2 1pt dashed; border-left: #8db3e2 1pt dashed; padding-bottom: 0in; padding-left: 5.4pt; padding-right: 5.4pt; border-top: #8db3e2 1pt dashed; border-right: #8db3e2 1pt dashed; padding-top: 0in; mso-border-alt: dashed #8db3e2 .5pt; mso-border-themecolor: text2; mso-border-themetint: 102&quot; width=&quot;905&quot; valign=&quot;top&quot;&gt;
&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none&quot;&gt;&lt;span style=&quot;font-family: Lucida Console;&quot;&gt;&lt;span style=&quot;font-family: ; mso-bidi-font-family: &#039;Times New Roman&#039;; mso-ansi-language: en-us; mso-no-proof: yes&quot; lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;select &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;span style=&quot;font-family: ; mso-bidi-font-family: &#039;Times New Roman&#039;; mso-ansi-language: en-us; mso-no-proof: yes&quot; lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;color: #808080;&quot;&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: ; mso-bidi-font-family: &#039;Times New Roman&#039;; mso-ansi-language: en-us; mso-no-proof: yes&quot; lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;select&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: ; mso-bidi-font-family: &#039;Times New Roman&#039;; mso-ansi-language: en-us; mso-no-proof: yes&quot; lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;span style=&quot;font-family: Lucida Console;&quot;&gt;&lt;span style=&quot;color: #000000;&quot;&gt; sqlserver_start_time                    &lt;br /&gt;&lt;span style=&quot;mso-spacerun: yes&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;from&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; &lt;/span&gt;&lt;span&gt;&lt;span style=&quot;color: #008000;&quot;&gt;sys&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;color: #808080;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;color: #008000;&quot;&gt;dm_os_sys_info&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;color: #808080;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; &lt;/span&gt;&lt;span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;as&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lucida Console;&quot;&gt;&lt;span style=&quot;color: #000000;&quot;&gt; sql_server_start_time                    &lt;br /&gt;&lt;span style=&quot;mso-spacerun: yes&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;color: #808080;&quot;&gt;,(&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;select&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lucida Console;&quot;&gt;&lt;span style=&quot;color: #000000;&quot;&gt; create_date                    &lt;br /&gt;&lt;span style=&quot;mso-spacerun: yes&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;from&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; &lt;/span&gt;&lt;span&gt;&lt;span style=&quot;color: #008000;&quot;&gt;sys&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;color: #808080;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;color: #008000;&quot;&gt;databases&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; &lt;/span&gt;&lt;span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;where&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; database_id&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;color: #808080;&quot;&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;2&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;color: #808080;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; &lt;/span&gt;&lt;span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;as&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lucida Console;&quot;&gt;&lt;span style=&quot;color: #000000;&quot;&gt; tempdb_creation_time                    &lt;br /&gt;&lt;span style=&quot;mso-spacerun: yes&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;color: #808080;&quot;&gt;,(&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;select&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lucida Console;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;span style=&quot;color: #000000;&quot;&gt; login_time                    &lt;br /&gt;&lt;span style=&quot;mso-spacerun: yes&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;from&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; &lt;/span&gt;&lt;span&gt;&lt;span style=&quot;color: #008000;&quot;&gt;sys&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;color: #808080;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;color: #008000;&quot;&gt;dm_exec_sessions&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; &lt;/span&gt;&lt;span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;where&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; session_id&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;color: #808080;&quot;&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;1&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;color: #808080;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; &lt;/span&gt;&lt;span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;as&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; sysprocess_login_time&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Result:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;/blogs/media/blogs/holgerschmeling/windows-live-writer/11d5cb6a4278_6b47/image_2.png&quot;&gt;&lt;img style=&quot;background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px&quot; title=&quot;image&quot; src=&quot;/blogs/media/blogs/holgerschmeling/windows-live-writer/11d5cb6a4278_6b47/image_thumb.png&quot; border=&quot;0&quot; alt=&quot;image&quot; width=&quot;671&quot; height=&quot;49&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It seems the SQL Server service must be started first. Only after the service is running, tempdb is created followed by a subsequent start of all sysprocesses. I can&#039;t imagine that the diverse three times make any difference in practice, e.g. if you try finding out for how many hours your SQL Server instance is running. But out there may be existing applications that have to be aware of the difference.&lt;/p&gt;</description>
			<content:encoded><![CDATA[<p>Have you tried finding out the time, your SQL Server instance has been started? There are some sophisticated solutions, like the one from Tracy Hamlin (<a href="http://twitter.com/tracyhhamlin">twitter</a>), which takes advantage of the fact that tempdb is re-created every time, SQL Server starts. Her solution goes like this:</p>
<table class="MsoTableGrid" style="border-bottom: medium none; border-left: medium none; border-collapse: collapse; background: #f5f0df; border-top: medium none; border-right: medium none; mso-border-alt: dashed #8db3e2 .5pt; mso-border-themecolor: text2; mso-border-themetint: 102; mso-yfti-tbllook: 1184; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-border-insideh: .5pt dashed #8db3e2; mso-border-insideh-themecolor: text2; mso-border-insideh-themetint: 102; mso-border-insidev: .5pt dashed #8db3e2; mso-border-insidev-themecolor: text2; mso-border-insidev-themetint: 102" border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes">
<td style="border-bottom: #8db3e2 1pt dashed; border-left: #8db3e2 1pt dashed; padding-bottom: 0in; padding-left: 5.4pt; padding-right: 5.4pt; border-top: #8db3e2 1pt dashed; border-right: #8db3e2 1pt dashed; padding-top: 0in; mso-border-alt: dashed #8db3e2 .5pt; mso-border-themecolor: text2; mso-border-themetint: 102" width="905" valign="top">
<p class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none"><span style="font-family: ; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: en-us; mso-no-proof: yes" lang="EN-US"><span style="font-family: Lucida Console; color: #0000ff;"><span style="font-size: 11pt;">select</span></span></span><span style="font-family: ; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: en-us; mso-no-proof: yes" lang="EN-US"><span style="font-family: Lucida Console;"><span style="font-size: 11pt;"><span style="color: #000000;"> create_date                    <br /><span style="mso-spacerun: yes"> </span></span><span><span style="color: #0000ff;">from</span></span><span style="color: #000000;"> </span><span><span style="color: #008000;">sys</span></span><span><span style="color: #808080;">.</span></span><span><span style="color: #008000;">databases</span></span><span style="color: #000000;"> </span><span><span style="color: #0000ff;">where</span></span><span style="color: #000000;"> database_id</span><span><span style="color: #808080;">=</span></span><span style="color: #000000;">2</span></span></span></span></p>
</td>
</tr>
</tbody>
</table>
<p>Another answer to the question, I've seen sometimes on the internet queries the login time for any of the system processes:</p>
<table class="MsoTableGrid" style="border-bottom: medium none; border-left: medium none; border-collapse: collapse; background: #f5f0df; border-top: medium none; border-right: medium none; mso-border-alt: dashed #8db3e2 .5pt; mso-border-themecolor: text2; mso-border-themetint: 102; mso-yfti-tbllook: 1184; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-border-insideh: .5pt dashed #8db3e2; mso-border-insideh-themecolor: text2; mso-border-insideh-themetint: 102; mso-border-insidev: .5pt dashed #8db3e2; mso-border-insidev-themecolor: text2; mso-border-insidev-themetint: 102" border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes">
<td style="border-bottom: #8db3e2 1pt dashed; border-left: #8db3e2 1pt dashed; padding-bottom: 0in; padding-left: 5.4pt; padding-right: 5.4pt; border-top: #8db3e2 1pt dashed; border-right: #8db3e2 1pt dashed; padding-top: 0in; mso-border-alt: dashed #8db3e2 .5pt; mso-border-themecolor: text2; mso-border-themetint: 102" width="905" valign="top">
<p class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none"><span style="font-family: ; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: en-us; mso-no-proof: yes" lang="EN-US"><span style="font-family: Lucida Console; color: #0000ff;"><span style="font-size: 11pt;">select</span></span></span><span style="font-family: ; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: en-us; mso-no-proof: yes" lang="EN-US"><span style="font-family: Lucida Console;"><span style="font-size: 11pt;"><span style="color: #000000;"> login_time                    <br /><span style="mso-spacerun: yes"> </span></span><span><span style="color: #0000ff;">from</span></span><span style="color: #000000;"> </span><span><span style="color: #008000;">sys</span></span><span><span style="color: #808080;">.</span></span><span><span style="color: #008000;">dm_exec_sessions</span></span><span style="color: #000000;"> </span><span><span style="color: #0000ff;">where</span></span><span style="color: #000000;"> session_id</span><span><span style="color: #808080;">=</span></span><span style="color: #000000;">1</span></span></span></span></p>
</td>
</tr>
</tbody>
</table>
<p>This was my preferred way - until yesterday, when I discovered the following simple method:</p>
<table class="MsoTableGrid" style="border-bottom: medium none; border-left: medium none; border-collapse: collapse; background: #f5f0df; border-top: medium none; border-right: medium none; mso-border-alt: dashed #8db3e2 .5pt; mso-border-themecolor: text2; mso-border-themetint: 102; mso-yfti-tbllook: 1184; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-border-insideh: .5pt dashed #8db3e2; mso-border-insideh-themecolor: text2; mso-border-insideh-themetint: 102; mso-border-insidev: .5pt dashed #8db3e2; mso-border-insidev-themecolor: text2; mso-border-insidev-themetint: 102" border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes">
<td style="border-bottom: #8db3e2 1pt dashed; border-left: #8db3e2 1pt dashed; padding-bottom: 0in; padding-left: 5.4pt; padding-right: 5.4pt; border-top: #8db3e2 1pt dashed; border-right: #8db3e2 1pt dashed; padding-top: 0in; mso-border-alt: dashed #8db3e2 .5pt; mso-border-themecolor: text2; mso-border-themetint: 102" width="905" valign="top">
<p class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none"><span style="font-family: ; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: en-us; mso-no-proof: yes" lang="EN-US"><span style="font-family: Lucida Console; color: #0000ff;"><span style="font-size: 11pt;">select</span></span></span><span style="font-family: ; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: en-us; mso-no-proof: yes" lang="EN-US"><span style="font-family: Lucida Console;"><span style="font-size: 11pt;"><span style="color: #000000;"> sqlserver_start_time                    <br /><span style="mso-spacerun: yes"> </span></span><span><span style="color: #0000ff;">from</span></span><span style="color: #000000;"> </span><span><span style="color: #008000;">sys</span></span><span><span style="color: #808080;">.</span></span></span><span><span style="font-size: 11pt; color: #008000;">dm_os_sys_info</span></span></span></span></p>
</td>
</tr>
</tbody>
</table>
<p>Easy, isn't it? Interestingly though, every of the above three queries yields a different result. Here's a query with a sample output:</p>
<table class="MsoTableGrid" style="border-bottom: medium none; border-left: medium none; border-collapse: collapse; background: #f5f0df; border-top: medium none; border-right: medium none; mso-border-alt: dashed #8db3e2 .5pt; mso-border-themecolor: text2; mso-border-themetint: 102; mso-yfti-tbllook: 1184; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-border-insideh: .5pt dashed #8db3e2; mso-border-insideh-themecolor: text2; mso-border-insideh-themetint: 102; mso-border-insidev: .5pt dashed #8db3e2; mso-border-insidev-themecolor: text2; mso-border-insidev-themetint: 102" border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes">
<td style="border-bottom: #8db3e2 1pt dashed; border-left: #8db3e2 1pt dashed; padding-bottom: 0in; padding-left: 5.4pt; padding-right: 5.4pt; border-top: #8db3e2 1pt dashed; border-right: #8db3e2 1pt dashed; padding-top: 0in; mso-border-alt: dashed #8db3e2 .5pt; mso-border-themecolor: text2; mso-border-themetint: 102" width="905" valign="top">
<p class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none"><span style="font-family: Lucida Console;"><span style="font-family: ; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: en-us; mso-no-proof: yes" lang="EN-US"><span style="color: #0000ff;"><span style="font-size: 11pt;">select </span></span></span><span style="font-size: 11pt;"><span style="font-family: ; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: en-us; mso-no-proof: yes" lang="EN-US"><span style="color: #808080;">(</span></span><span style="font-family: ; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: en-us; mso-no-proof: yes" lang="EN-US"><span style="color: #0000ff;">select</span></span></span></span><span style="font-family: ; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: en-us; mso-no-proof: yes" lang="EN-US"><span style="font-size: 11pt;"><span style="font-family: Lucida Console;"><span style="color: #000000;"> sqlserver_start_time                    <br /><span style="mso-spacerun: yes"> </span></span><span><span style="color: #0000ff;">from</span></span><span style="color: #000000;"> </span><span><span style="color: #008000;">sys</span></span><span><span style="color: #808080;">.</span></span><span><span style="color: #008000;">dm_os_sys_info</span></span><span><span style="color: #808080;">)</span></span><span style="color: #000000;"> </span><span><span style="color: #0000ff;">as</span></span></span><span style="font-family: Lucida Console;"><span style="color: #000000;"> sql_server_start_time                    <br /><span style="mso-spacerun: yes"> </span></span><span><span style="color: #808080;">,(</span></span><span><span style="color: #0000ff;">select</span></span></span><span style="font-family: Lucida Console;"><span style="color: #000000;"> create_date                    <br /><span style="mso-spacerun: yes"> </span></span><span><span style="color: #0000ff;">from</span></span><span style="color: #000000;"> </span><span><span style="color: #008000;">sys</span></span><span><span style="color: #808080;">.</span></span><span><span style="color: #008000;">databases</span></span><span style="color: #000000;"> </span><span><span style="color: #0000ff;">where</span></span><span style="color: #000000;"> database_id</span><span><span style="color: #808080;">=</span></span><span style="color: #000000;">2</span><span><span style="color: #808080;">)</span></span><span style="color: #000000;"> </span><span><span style="color: #0000ff;">as</span></span></span><span style="font-family: Lucida Console;"><span style="color: #000000;"> tempdb_creation_time                    <br /><span style="mso-spacerun: yes"> </span></span><span><span style="color: #808080;">,(</span></span><span><span style="color: #0000ff;">select</span></span></span></span><span style="font-family: Lucida Console;"><span style="font-size: 11pt;"><span style="color: #000000;"> login_time                    <br /><span style="mso-spacerun: yes"> </span></span><span><span style="color: #0000ff;">from</span></span><span style="color: #000000;"> </span><span><span style="color: #008000;">sys</span></span><span><span style="color: #808080;">.</span></span><span><span style="color: #008000;">dm_exec_sessions</span></span><span style="color: #000000;"> </span><span><span style="color: #0000ff;">where</span></span><span style="color: #000000;"> session_id</span><span><span style="color: #808080;">=</span></span><span style="color: #000000;">1</span><span><span style="color: #808080;">)</span></span><span style="color: #000000;"> </span><span><span style="color: #0000ff;">as</span></span><span style="color: #000000;"> sysprocess_login_time</span></span></span></span></p>
</td>
</tr>
</tbody>
</table>
<p>Result:</p>
<p><a href="/blogs/media/blogs/holgerschmeling/windows-live-writer/11d5cb6a4278_6b47/image_2.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" src="/blogs/media/blogs/holgerschmeling/windows-live-writer/11d5cb6a4278_6b47/image_thumb.png" border="0" alt="image" width="671" height="49" /></a></p>
<p>It seems the SQL Server service must be started first. Only after the service is running, tempdb is created followed by a subsequent start of all sysprocesses. I can't imagine that the diverse three times make any difference in practice, e.g. if you try finding out for how many hours your SQL Server instance is running. But out there may be existing applications that have to be aware of the difference.</p>]]></content:encoded>
								<comments>https://www.insidesql.org/blogs/holgerschmeling/2011/02/22/sql-server-start-time#comments</comments>
			<wfw:commentRss>https://www.insidesql.org/blogs/holgerschmeling/?tempskin=_rss2&#38;disp=comments&#38;p=2673</wfw:commentRss>
		</item>
				<item>
			<title>Exploring SQL Server Blockings and Timeouts</title>
			<link>https://www.insidesql.org/blogs/holgerschmeling/2011/01/16/exploring-sql-server-blockings-and-timeouts-1</link>
			<pubDate>Sun, 16 Jan 2011 07:31:55 +0000</pubDate>			<dc:creator>Holger Schmeling</dc:creator>
			<category domain="alt">SQL Server Performance</category>
<category domain="alt">Monitoring</category>
<category domain="main">Presentations</category>			<guid isPermaLink="false">2398@https://www.insidesql.org/blogs/</guid>
						<description>&lt;p&gt;Last Thursday I was giving a presentation about information collection and evaluation of SQL Server Blockings and Timeouts at the regional PASS chapter meeting in Munich.&lt;/p&gt;
&lt;p&gt;You may download the presentation as well as the corresponding scripts &lt;a href=&quot;http://sqlserver-presentations.com/Presentations/SQL Server Blockings and Timeouts.zip&quot;&gt;here&lt;/a&gt; (German only).&lt;/p&gt;</description>
			<content:encoded><![CDATA[<p>Last Thursday I was giving a presentation about information collection and evaluation of SQL Server Blockings and Timeouts at the regional PASS chapter meeting in Munich.</p>
<p>You may download the presentation as well as the corresponding scripts <a href="http://sqlserver-presentations.com/Presentations/SQL Server Blockings and Timeouts.zip">here</a> (German only).</p>]]></content:encoded>
								<comments>https://www.insidesql.org/blogs/holgerschmeling/2011/01/16/exploring-sql-server-blockings-and-timeouts-1#comments</comments>
			<wfw:commentRss>https://www.insidesql.org/blogs/holgerschmeling/?tempskin=_rss2&#38;disp=comments&#38;p=2398</wfw:commentRss>
		</item>
			</channel>
</rss>
