<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>SQLAJ</title>
	<atom:link href="http://sqlaj.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://sqlaj.wordpress.com</link>
	<description>Sharing what I know about Databases</description>
	<lastBuildDate>Tue, 21 May 2013 12:20:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='sqlaj.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/a2f71e861c693ffa0e3b0ed179b5e9af?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>SQLAJ</title>
		<link>http://sqlaj.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://sqlaj.wordpress.com/osd.xml" title="SQLAJ" />
	<atom:link rel='hub' href='http://sqlaj.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Finding SQL Server Analysis Services listening port</title>
		<link>http://sqlaj.wordpress.com/2013/05/17/finding-sql-server-analysis-services-listening-port/</link>
		<comments>http://sqlaj.wordpress.com/2013/05/17/finding-sql-server-analysis-services-listening-port/#comments</comments>
		<pubDate>Fri, 17 May 2013 14:00:21 +0000</pubDate>
		<dc:creator>AJ Mendo</dc:creator>
				<category><![CDATA[Maintenance]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://sqlaj.wordpress.com/?p=823</guid>
		<description><![CDATA[I have not worked with SQL Server Analysis Server very much. That is apparently changing as of now and I am still undecided on how I feel about that. Don’t get me wrong. I really enjoy working in SQL and will keep an open mind as my learning path continues. My heart however is with [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sqlaj.wordpress.com&#038;blog=9937101&#038;post=823&#038;subd=sqlaj&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I have not worked with SQL Server Analysis Server very much. That is apparently changing as of now and I am still undecided on how I feel about that. Don’t get me wrong. I really enjoy working in SQL and will keep an open mind as my learning path continues. My heart however is with the main SQL engine.</p>
<p>During the server setup and configuration we record basic information on the server. One of the pieces of information I needed was what port Analysis Server listens on. I had no idea. So how do we determine what port?</p>
<p><strong>Search for ASConfiguration</strong></p>
<p>There is a chance you may find SSAS configuration by searching for msmdredir.ini.</p>
<p><a href="http://sqlaj.files.wordpress.com/2013/05/search.png"><img class="alignleft size-full wp-image-831" alt="search" src="http://sqlaj.files.wordpress.com/2013/05/search.png?w=595"   /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>You may also try looking in this directory</p>
<p><a href="http://sqlaj.files.wordpress.com/2013/05/emptyfolder.png"><img class="alignleft size-large wp-image-825" alt="emptyfolder" src="http://sqlaj.files.wordpress.com/2013/05/emptyfolder.png?w=595&#038;h=154" width="595" height="154" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>If you can’t find the ini file anywhere you may find it via the Process ID and netstat.</p>
<p><strong>Finding Process ID</strong></p>
<p>We need to start with finding the process ID that SSAS is using.</p>
<p><a href="http://sqlaj.files.wordpress.com/2013/05/configmanager.png"><img class="alignleft size-large wp-image-824" alt="configmanager" src="http://sqlaj.files.wordpress.com/2013/05/configmanager.png?w=595&#038;h=146" width="595" height="146" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Using the Configuration Manager we can find what ID we need to look for.</p>
<p>Now open a command prompt. Start &gt; Run &gt; cmd</p>
<p><a href="http://sqlaj.files.wordpress.com/2013/05/open_cmd.png"><img class="alignleft size-medium wp-image-830" alt="open_cmd" src="http://sqlaj.files.wordpress.com/2013/05/open_cmd.png?w=300&#038;h=171" width="300" height="171" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Now with the following commands we can use netstat to find what port SSAS is listening on.</p>
<p><a href="http://sqlaj.files.wordpress.com/2013/05/netstat_host.png"><img class="alignleft size-full wp-image-826" alt="netstat_host" src="http://sqlaj.files.wordpress.com/2013/05/netstat_host.png?w=595"   /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Reviewing the output we find what we are looking for. The port is 4132.</p>
<p><a href="http://sqlaj.files.wordpress.com/2013/05/netstat_host_result1.png"><img class="alignleft size-large wp-image-833" alt="netstat_host_result" src="http://sqlaj.files.wordpress.com/2013/05/netstat_host_result1.png?w=595&#038;h=139" width="595" height="139" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Using the following commands we can output the information to a text file for whatever purposes you require.</p>
<p><a href="http://sqlaj.files.wordpress.com/2013/05/netstat_output.png"><img class="alignleft size-full wp-image-828" alt="netstat_output" src="http://sqlaj.files.wordpress.com/2013/05/netstat_output.png?w=595"   /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>And the output should look something like this.</p>
<p><a href="http://sqlaj.files.wordpress.com/2013/05/netstat_output_result1.png"><img class="alignleft size-large wp-image-832" alt="netstat_output_result" src="http://sqlaj.files.wordpress.com/2013/05/netstat_output_result1.png?w=595&#038;h=104" width="595" height="104" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><strong>Conclusion</strong></p>
<p>As we can see, there are a few different ways to track down what port SSAS is listening on. The default port for SSAS is 2383. As most of you know, the port this component listens on can be changed. The evidence in the screen shot confirms that. Knowing how to find the information you seek as it relates to SQL Server and it components is an important part of a DBAs job.</p>
<p>Cheers!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlaj.wordpress.com/823/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlaj.wordpress.com/823/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sqlaj.wordpress.com&#038;blog=9937101&#038;post=823&#038;subd=sqlaj&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sqlaj.wordpress.com/2013/05/17/finding-sql-server-analysis-services-listening-port/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c852841dd49b1ca86f27ceb7f47597e9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ajmendo</media:title>
		</media:content>

		<media:content url="http://sqlaj.files.wordpress.com/2013/05/search.png" medium="image">
			<media:title type="html">search</media:title>
		</media:content>

		<media:content url="http://sqlaj.files.wordpress.com/2013/05/emptyfolder.png?w=595" medium="image">
			<media:title type="html">emptyfolder</media:title>
		</media:content>

		<media:content url="http://sqlaj.files.wordpress.com/2013/05/configmanager.png?w=595" medium="image">
			<media:title type="html">configmanager</media:title>
		</media:content>

		<media:content url="http://sqlaj.files.wordpress.com/2013/05/open_cmd.png?w=300" medium="image">
			<media:title type="html">open_cmd</media:title>
		</media:content>

		<media:content url="http://sqlaj.files.wordpress.com/2013/05/netstat_host.png" medium="image">
			<media:title type="html">netstat_host</media:title>
		</media:content>

		<media:content url="http://sqlaj.files.wordpress.com/2013/05/netstat_host_result1.png?w=595" medium="image">
			<media:title type="html">netstat_host_result</media:title>
		</media:content>

		<media:content url="http://sqlaj.files.wordpress.com/2013/05/netstat_output.png" medium="image">
			<media:title type="html">netstat_output</media:title>
		</media:content>

		<media:content url="http://sqlaj.files.wordpress.com/2013/05/netstat_output_result1.png?w=595" medium="image">
			<media:title type="html">netstat_output_result</media:title>
		</media:content>
	</item>
		<item>
		<title>Database in Transition: Error 952</title>
		<link>http://sqlaj.wordpress.com/2013/03/15/database-in-transition-error-952/</link>
		<comments>http://sqlaj.wordpress.com/2013/03/15/database-in-transition-error-952/#comments</comments>
		<pubDate>Fri, 15 Mar 2013 14:00:07 +0000</pubDate>
		<dc:creator>AJ Mendo</dc:creator>
				<category><![CDATA[Backups]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://sqlaj.wordpress.com/?p=811</guid>
		<description><![CDATA[I got a call the other day from a night shift DBA with an issue. Seems he tried to contact the primary DBA for the server but they didn&#8217;t answer their phone and I was the unlucky knucklehead to answer mine. As it turns out, it wasn&#8217;t a big deal and gave me a good topic for a post. [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sqlaj.wordpress.com&#038;blog=9937101&#038;post=811&#038;subd=sqlaj&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I got a call the other day from a night shift DBA with an issue. Seems he tried to contact the primary DBA for the server but they didn&#8217;t answer their phone and I was the unlucky knucklehead to answer mine. As it turns out, it wasn&#8217;t a big deal and gave me a good topic for a post.</p>
<p><strong>Issue</strong></p>
<p>The DBA in question had an Incident ticket he needed to work on for a Project Manager a little heated due to overtime being scheduled and they were behind in getting things ready for the work. We needed to restore a database from the 3 AM backup over the database they were going to work on. One thing to note, our evening and night shifts work both Oracle and SQL. I did that in my past life and remember it is not always easy to switch modes from one to the other especially when a manager is constantly calling you to see if you were done with the task.</p>
<p><strong>Error</strong></p>
<p>The DBA who called explained he was getting an error when trying to restore a database. I asked if he was first putting it in single user mode. His response, &#8220;No&#8221;. I explained he needed exclusive access to the database to restore it. I then walked him through navigating to the database <strong>Properties</strong> window by right clicking on the database name.</p>
<p>He then said he was getting an error when trying to open the properties window. The error was:</p>
<p>“Database in Transition” Error 952.</p>
<p>After logging on myself and looking in the logs I found this.</p>
<p><a href="http://sqlaj.files.wordpress.com/2013/03/takeoffline1.png"><img class="alignnone size-full wp-image-816" alt="takeoffline" src="http://sqlaj.files.wordpress.com/2013/03/takeoffline1.png?w=595"   /></a></p>
<p>It seems when he tried to restore the first time and was unsuccessful he tried to take the database offline.</p>
<p>I then explained we needed to use a query to make sure nothing was blocking us.</p>
<p><a href="http://sqlaj.files.wordpress.com/2013/03/findblockingspid.png"><img class="alignnone size-full wp-image-812" alt="findBlockingSPID" src="http://sqlaj.files.wordpress.com/2013/03/findblockingspid.png?w=595&#038;h=77" width="595" height="77" /></a></p>
<p>This is a very basic script to find the blocking SPID.</p>
<p>After tracking down the SPID causing the issue ( and killing it) we were able to open the properties window, script out the following command(s) for future reference/use and restore the database without issues.</p>
<p><a href="http://sqlaj.files.wordpress.com/2013/03/setsingleuser1.png"><img class="alignnone  wp-image-815" alt="setSingleUser" src="http://sqlaj.files.wordpress.com/2013/03/setsingleuser1.png?w=476&#038;h=238" width="476" height="238" /></a></p>
<p>If you are not familiar with how to script out the above T-SQL code you can follow these basic steps to do so.</p>
<p>In the Object Explorer expand the server and expand the database folder. Then find the database you want to use and right click the database. A menu opens, select P<strong>roperties</strong> at the bottom. Once the database properties window opens, navigate to the <strong>Options</strong> page and scroll to the bottom. Under<strong> State</strong> group there is a setting called &#8220;<strong>Restrict Access</strong>&#8221; change that to <strong>SINGLE_USER</strong> and script out to a new window by clicking the &#8220;<strong>Script</strong>&#8221; button at the top of the window next to &#8220;<strong>Help</strong>&#8220;.</p>
<p>There are a few comments on forums that mentioned restarting the SQL Server service. While that will work (since it kills all sessions) it may not be the best solution especially if you are on a production server and can’t restart the service. Blindly restarting a server is not usually the best option.</p>
<p><strong>Conclusion</strong></p>
<p>There are (almost) always multiple ways to solve an issue. Coming up with the best solution sometimes comes with experience or finding the correct blog post/forum entry that works best for your situation.</p>
<p>Cheers!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlaj.wordpress.com/811/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlaj.wordpress.com/811/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sqlaj.wordpress.com&#038;blog=9937101&#038;post=811&#038;subd=sqlaj&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sqlaj.wordpress.com/2013/03/15/database-in-transition-error-952/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c852841dd49b1ca86f27ceb7f47597e9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ajmendo</media:title>
		</media:content>

		<media:content url="http://sqlaj.files.wordpress.com/2013/03/takeoffline1.png" medium="image">
			<media:title type="html">takeoffline</media:title>
		</media:content>

		<media:content url="http://sqlaj.files.wordpress.com/2013/03/findblockingspid.png" medium="image">
			<media:title type="html">findBlockingSPID</media:title>
		</media:content>

		<media:content url="http://sqlaj.files.wordpress.com/2013/03/setsingleuser1.png" medium="image">
			<media:title type="html">setSingleUser</media:title>
		</media:content>
	</item>
		<item>
		<title>Decompression Time</title>
		<link>http://sqlaj.wordpress.com/2013/03/08/decompression-time/</link>
		<comments>http://sqlaj.wordpress.com/2013/03/08/decompression-time/#comments</comments>
		<pubDate>Fri, 08 Mar 2013 14:00:43 +0000</pubDate>
		<dc:creator>AJ Mendo</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sqlaj.wordpress.com/?p=818</guid>
		<description><![CDATA[As DBAs we work long hours. Many times fixing issues before they become issues to end users. Constantly get thrown under the bus and told how to do things on our servers by uninformed and non-technical weenies people. For time to time we need to decompress I hit the road for Spring Break. Heading to [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sqlaj.wordpress.com&#038;blog=9937101&#038;post=818&#038;subd=sqlaj&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>As DBAs we work long hours. Many times fixing issues before they become issues to end users. Constantly get thrown under the bus and told how to do things on our servers by uninformed and non-technical <span style="text-decoration:line-through;">weenies</span> people. For time to time we need to decompress I hit the road for Spring Break.</p>
<p><strong><a href="http://sqlaj.files.wordpress.com/2013/03/wppeak.jpg"><img class="alignleft size-medium wp-image-820" style="border-image:initial;border-width:8px;border-color:white;border-style:solid;" alt="WPPeak" src="http://sqlaj.files.wordpress.com/2013/03/wppeak.jpg?w=300&#038;h=213" width="300" height="213" /></a>Heading to the Slopes</strong></p>
<p>This year similar to the last three we are going skiing in Colorado. We are heading back to Winter Park this year. The last time we were there two years ago our son broke his ankle about two weeks before. Over the entire trip was a really good. Even for him. Since he was not able to ski Winter Park that year we are heading back. The only difference besides the lack of crutches my wife is not making the trip with us. It’s a guy’s trip this year.</p>
<p><strong>The Drive and Weather Factor</strong></p>
<p>The past two years we had a convoy with 2 other families and we drove straight through the night. This year I will be the only driver. I am not planning on driving straight through even though it would be nice to do. If I get tired I will just pull over and take a nap for a while.</p>
<p>I have been watching the past three weekends in a row winter storms have moved through the area we will be driving through. Last week, certain parts of the pan handle of Texas the roads were shut down. If Mother Nature is listening or reading this post, if you could hold off until Sunday evening to drop the snow that would be great, emkay?</p>
<p><strong> Lunch at the Blue Bonnet </strong></p>
<p><a href="http://sqlaj.files.wordpress.com/2013/03/bluebonnet.jpg"><img class="alignright size-full wp-image-819" style="border-image:initial;border-width:8px;border-color:white;border-style:solid;" alt="bluebonnet" src="http://sqlaj.files.wordpress.com/2013/03/bluebonnet.jpg?w=595"   /></a></p>
<div>When my wife and I lived in Denver we used to eat at the <a title="http://www.bluebonnetrestaurant.com/" href="http://www.bluebonnetrestaurant.com/" target="_blank">Blue Bonnet Café</a> on a fairly regular basis. The plan is to try and eat lunch there on Saturday on the way through town. I think it will be neat to show our son where we used to “hang out’ so to speak.  Looking at the web site the place has changed a little since we last ate there in the late 80’s early 90’s. It will bring back memories and make new ones I am sure. The sad part, my wife won’t be there to enjoy. There is always next year though.</div>
<p><strong>Heading Over the Pass</strong></p>
<p>No not SQLPASS, <a title="http://en.wikipedia.org/wiki/Berthoud_Pass" href="http://en.wikipedia.org/wiki/Berthoud_Pass" target="_blank">Berthoud Pass</a>. The best part of driving to Winter Park and going over the pass is once you get to the top, it’s all downhill to the resort, literally. Hopefully the traffic will be on our side and we will not have any issues like they did yesterday where I-70 was closed for a time with a multi-car pileup.</p>
<p><strong>Conclusion</strong></p>
<p>We all work long stress filed hours each day. It does not matter what you do for a job/career. From time to time you must “get away” from the daily routine and decompress. Weekend trips here can help over the long haul but downtime is a must to keep your mind, body, spirit and drive going. Maybe I will see you on the slopes. If not, I usually take a trip to the beach in the summer, maybe then.</p>
<p>Cheers!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlaj.wordpress.com/818/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlaj.wordpress.com/818/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sqlaj.wordpress.com&#038;blog=9937101&#038;post=818&#038;subd=sqlaj&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sqlaj.wordpress.com/2013/03/08/decompression-time/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c852841dd49b1ca86f27ceb7f47597e9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ajmendo</media:title>
		</media:content>

		<media:content url="http://sqlaj.files.wordpress.com/2013/03/wppeak.jpg?w=300" medium="image">
			<media:title type="html">WPPeak</media:title>
		</media:content>

		<media:content url="http://sqlaj.files.wordpress.com/2013/03/bluebonnet.jpg" medium="image">
			<media:title type="html">bluebonnet</media:title>
		</media:content>
	</item>
		<item>
		<title>How to get useful information from sys.dm_os_performance_counters</title>
		<link>http://sqlaj.wordpress.com/2013/03/01/getting-useful-information-from-sys-dm_os_performance_counters/</link>
		<comments>http://sqlaj.wordpress.com/2013/03/01/getting-useful-information-from-sys-dm_os_performance_counters/#comments</comments>
		<pubDate>Fri, 01 Mar 2013 14:00:32 +0000</pubDate>
		<dc:creator>AJ Mendo</dc:creator>
				<category><![CDATA[Performance]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://sqlaj.wordpress.com/?p=791</guid>
		<description><![CDATA[This DMV can be very useful to get information about SQL server. I need to point out a few key points before going too far into how we can use it. While it does return a wealth of information it does not return any counters outside of SQL Server for obvious reasons. The data returned [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sqlaj.wordpress.com&#038;blog=9937101&#038;post=791&#038;subd=sqlaj&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>This DMV can be very useful to get information about SQL server. I need to point out a few key points before going too far into how we can use it. While it does return a wealth of information it does not return any counters outside of SQL Server for obvious reasons. The data returned can be a little confusing as well. Without further ado let’s get into it.</p>
<p>sys.dm_os_performance_counter</p>
<p><a href="http://sqlaj.files.wordpress.com/2013/03/chart_small.png"><img class="size-full wp-image-792 alignnone" alt="chart_small" src="http://sqlaj.files.wordpress.com/2013/03/chart_small.png?w=595&#038;h=341" width="595" height="341" /></a></p>
<p>See the Note on the column named <b>cntr_value </b></p>
<p>For now let’s take a look at the <b>cntr_type </b>information returned and see if we can clarify that a bit. Using the below query to get the counter types.</p>
<p><a href="http://sqlaj.files.wordpress.com/2013/03/distinct_cntr_type_query.png"><img class="size-full wp-image-794 alignnone" alt="distinct_cntr_type_query" src="http://sqlaj.files.wordpress.com/2013/03/distinct_cntr_type_query.png?w=595"   /></a></p>
<p>Now we have our cntr_type but we need to figure out what these numbers mean.</p>
<p><a href="http://sqlaj.files.wordpress.com/2013/03/cntr_type.png"><img class="size-full wp-image-793 alignnone" alt="cntr_type" src="http://sqlaj.files.wordpress.com/2013/03/cntr_type.png?w=595"   /></a></p>
<p>If we look on <a title="http://msdn.microsoft.com/en-us/library/windows/desktop/aa394569(v=vs.85).aspx" href="http://msdn.microsoft.com/en-us/library/windows/desktop/aa394569(v=vs.85).aspx" target="_blank">msdn</a> we find information to help understand&#8230;hopefully <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>PERF_COUNTER_LARGE_RAWCOUNT: 65792: Decimal: This value does not need calculations is the same as PERF_COUNTER_RAWCOUNT (65536) but is 64-bit for larger numbers values</p>
<p>PERF_COUNTER_BULK_COUNT: 27266576: Decimal: Average number of operations completed during each second of the sample interval. This counter type is the same as the PERF_COUNTER_COUNTER type, but it uses larger fields to accommodate larger values.</p>
<p>PERF_AVERAGE_BULK:</p>
<p>537003264: Decimal:</p>
<p>1073874176: Decimal:</p>
<p>Number of items processed, on average, during an operation. This counter type displays a ratio of the items processed (such as bytes sent) to the number of operations completed, and requires a base property with PERF_AVERAGE_BASE as the counter type.</p>
<p>PERF_LARGE_RAW_BASE: 1073939712: Decimal: This counter type collects the last observed value. It is the same as the PERF_RAW_BASE counter type except that it 64-bit and uses larger fields to accommodate larger values.</p>
<p><a href="http://sqlaj.files.wordpress.com/2013/03/query21.png"><img class="alignnone size-full wp-image-808" alt="query2" src="http://sqlaj.files.wordpress.com/2013/03/query21.png?w=595&#038;h=182" width="595" height="182" /></a></p>
<p>Using the query above written by Amit Banerjee <a title="@banerjeeamit" href="https://twitter.com/banerjeeamit" target="_blank">twitter</a> | <a title="http://troubleshootingsql.com/" href="http://troubleshootingsql.com/" target="_blank">blog</a></p>
<p>The below image is what we will see in the results. Still not the useful data we are after but we are getting closer.</p>
<p><a href="http://sqlaj.files.wordpress.com/2013/03/query2_return1.png"><img class="alignnone size-full wp-image-809" alt="query2_return" src="http://sqlaj.files.wordpress.com/2013/03/query2_return1.png?w=595&#038;h=160" width="595" height="160" /></a></p>
<p>Now on the first image there is a Note we need to be aware of.</p>
<p><em>For per-second counters, this value is cumulative. The rate value must be calculated by sampling the value at discrete time intervals. The difference between any two successive sample values is equal to the rate for the time interval used.</em></p>
<p>Keeping that in mind, if we look at the<strong> cntr_type</strong> 272696576 definition it is an “each second” value. We can run the query below gather the values run it again in say 1 second and determine our value for one second.</p>
<p><a href="http://sqlaj.files.wordpress.com/2013/03/query_per_second.png"><img class="alignnone size-full wp-image-796" alt="query_per_second" src="http://sqlaj.files.wordpress.com/2013/03/query_per_second.png?w=595&#038;h=162" width="595" height="162" /></a></p>
<p>As you can see this DMV has some very useful information but at face value can be a little confusing. Only after digging deeper into  the details on the<strong> cntr _type</strong> and doing additional querying and calculations can we get useful data.</p>
<p>Cheers!</p>
<p>Reference:<br />
sys.dm_os_performance_counter<br />
<a href="http://technet.microsoft.com/en-us/library/ms187743(v=sql.105).aspx">http://technet.microsoft.com/en-us/library/ms187743(v=sql.105).aspx</a></p>
<p>WMI Performance Counter Types (Windows)<br />
<a href="http://msdn.microsoft.com/en-us/library/windows/desktop/aa394569(v=vs.85).aspx">http://msdn.microsoft.com/en-us/library/windows/desktop/aa394569(v=vs.85).aspx</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlaj.wordpress.com/791/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlaj.wordpress.com/791/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sqlaj.wordpress.com&#038;blog=9937101&#038;post=791&#038;subd=sqlaj&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sqlaj.wordpress.com/2013/03/01/getting-useful-information-from-sys-dm_os_performance_counters/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c852841dd49b1ca86f27ceb7f47597e9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ajmendo</media:title>
		</media:content>

		<media:content url="http://sqlaj.files.wordpress.com/2013/03/chart_small.png" medium="image">
			<media:title type="html">chart_small</media:title>
		</media:content>

		<media:content url="http://sqlaj.files.wordpress.com/2013/03/distinct_cntr_type_query.png" medium="image">
			<media:title type="html">distinct_cntr_type_query</media:title>
		</media:content>

		<media:content url="http://sqlaj.files.wordpress.com/2013/03/cntr_type.png" medium="image">
			<media:title type="html">cntr_type</media:title>
		</media:content>

		<media:content url="http://sqlaj.files.wordpress.com/2013/03/query21.png" medium="image">
			<media:title type="html">query2</media:title>
		</media:content>

		<media:content url="http://sqlaj.files.wordpress.com/2013/03/query2_return1.png" medium="image">
			<media:title type="html">query2_return</media:title>
		</media:content>

		<media:content url="http://sqlaj.files.wordpress.com/2013/03/query_per_second.png" medium="image">
			<media:title type="html">query_per_second</media:title>
		</media:content>
	</item>
		<item>
		<title>A lighthearted look at our jobs</title>
		<link>http://sqlaj.wordpress.com/2013/02/23/a-lighthearted-look-at-our-jobs/</link>
		<comments>http://sqlaj.wordpress.com/2013/02/23/a-lighthearted-look-at-our-jobs/#comments</comments>
		<pubDate>Sat, 23 Feb 2013 12:59:10 +0000</pubDate>
		<dc:creator>AJ Mendo</dc:creator>
				<category><![CDATA[Funny]]></category>
		<category><![CDATA[Misc]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://sqlaj.wordpress.com/?p=788</guid>
		<description><![CDATA[I need some help and I am reaching out to the community for some feedback. I am looking at gathering information along the lines of something like this. If you aren’t checking to see if backups ran last night… …You might be doing it wrong If you aren’t reviewing SQL and or Server logs …You [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sqlaj.wordpress.com&#038;blog=9937101&#038;post=788&#038;subd=sqlaj&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I need some help and I am reaching out to the community for some feedback. I am looking at gathering information along the lines of something like this.</p>
<p>If you aren’t checking to see if backups ran last night…</p>
<p>…You might be doing it wrong</p>
<p>If you aren’t reviewing SQL and or Server logs</p>
<p>…You might be doing it wrong</p>
<p>If you aren’t practicing restoring your backups</p>
<p>…You might be doing it wrong</p>
<p>Hopefully you get the idea and what I am trying to compile. Add comments and if I use your input proper attribution will be mentioned, that is, if I already don’t have it myself or someone else has not already provided the feedback.</p>
<p>Now to get things started.</p>
<p>If you don’t leave a comment here…</p>
<p>…You might be doing it wrong</p>
<p>Cheers!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlaj.wordpress.com/788/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlaj.wordpress.com/788/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sqlaj.wordpress.com&#038;blog=9937101&#038;post=788&#038;subd=sqlaj&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sqlaj.wordpress.com/2013/02/23/a-lighthearted-look-at-our-jobs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c852841dd49b1ca86f27ceb7f47597e9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ajmendo</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL Server Accounts Locked Out</title>
		<link>http://sqlaj.wordpress.com/2013/02/15/sql-server-accounts-locked-out/</link>
		<comments>http://sqlaj.wordpress.com/2013/02/15/sql-server-accounts-locked-out/#comments</comments>
		<pubDate>Fri, 15 Feb 2013 14:00:05 +0000</pubDate>
		<dc:creator>AJ Mendo</dc:creator>
				<category><![CDATA[DBAToolBox]]></category>

		<guid isPermaLink="false">http://sqlaj.wordpress.com/?p=760</guid>
		<description><![CDATA[Those dreaded account lockouts. We all have to deal with them from time to time. I created a job to be notified when accounts become locked. That way I am aware of the issue and depending on the account, server and other factors I can deal with it with it in a timely manner. Problem [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sqlaj.wordpress.com&#038;blog=9937101&#038;post=760&#038;subd=sqlaj&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Those dreaded account lockouts. We all have to deal with them from time to time. I created a job to be notified when accounts become locked. That way I am aware of the issue and depending on the account, server and other factors I can deal with it with it in a timely manner.</p>
<p><strong>Problem</strong></p>
<p>When accounts become locked users can’t do their job or in worst case scenarios applications fail to work. I won’t go into details about application accounts locking other than saying it is an application design flaw.</p>
<p><strong>The Code</strong></p>
<p><a href="http://sqlaj.files.wordpress.com/2013/02/1.png"><img class="size-medium wp-image-780 alignnone" alt="1" src="http://sqlaj.files.wordpress.com/2013/02/1.png?w=300&#038;h=71" width="300" height="71" /></a></p>
<p>You can see we need a few variables defined.</p>
<p><a href="http://sqlaj.files.wordpress.com/2013/02/2.png"><img class="size-medium wp-image-781 alignnone" alt="2" src="http://sqlaj.files.wordpress.com/2013/02/2.png?w=300&#038;h=134" width="300" height="134" /></a></p>
<p>Then comes the formatting for the HTML output, this can be a little cumbersome if you don’t know HTML or want it to be really visually appealing. Personally, I just want the basics and that means looking better than plan old text display. It also provides a little more control over the output.</p>
<p><a href="http://sqlaj.files.wordpress.com/2013/02/3.png"><img class="size-medium wp-image-782 alignnone" alt="3" src="http://sqlaj.files.wordpress.com/2013/02/3.png?w=300&#038;h=234" width="300" height="234" /></a></p>
<p>Then creating a temp table and insert the results. The heart of this code is query. Without the use of CAST and CONVERT or you will get an error when trying to insert into the temp table. I insert only for row counts, I then use @@ROWCOUNT to set a flag to send/not send the email notification. I did try and get the row counts from the query within the @tableHTML but always got one extra row even though no accounts were locked.</p>
<p><a href="http://sqlaj.files.wordpress.com/2013/02/4.png"><img class="size-medium wp-image-783 alignnone" alt="4" src="http://sqlaj.files.wordpress.com/2013/02/4.png?w=300&#038;h=83" width="300" height="83" /></a></p>
<p>If there are accounts locked, the sp_send_dbmail code is used sending an email. If you look at @emailsubject the server name is inserted after some descriptive wording. This used for identification for the DBA group as well as the help desk when creating the tickets and the project it gets routed to. Makes it much easier to unlock accounts if you know what server they are on.</p>
<p><a href="http://sqlaj.files.wordpress.com/2013/02/5.png"><img class="size-medium wp-image-784 alignnone" alt="5" src="http://sqlaj.files.wordpress.com/2013/02/5.png?w=300&#038;h=54" width="300" height="54" /></a></p>
<p>This is an example what the email looks like when received.</p>
<p><strong>Conclusion</strong></p>
<p>If you have unlock user accounts frequently or just have a need to be notified for awareness of accounts being locked this is one way you can do it. Are there others? Sure there are, but this is what I have come up with for now. The code is based off of this link from msdn on sp_send_dbmail <a title="http://msdn.microsoft.com/en-us/library/ms190307.aspx" href="http://msdn.microsoft.com/en-us/library/ms190307.aspx" target="_blank">http://msdn.microsoft.com/en-us/library/ms190307.aspx</a></p>
<p>I have added this code to my DBA Toolbox. To see some other snippets look under the DBA Toolbox category.</p>
<p>Cheers!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlaj.wordpress.com/760/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlaj.wordpress.com/760/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sqlaj.wordpress.com&#038;blog=9937101&#038;post=760&#038;subd=sqlaj&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sqlaj.wordpress.com/2013/02/15/sql-server-accounts-locked-out/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c852841dd49b1ca86f27ceb7f47597e9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ajmendo</media:title>
		</media:content>

		<media:content url="http://sqlaj.files.wordpress.com/2013/02/1.png?w=300" medium="image">
			<media:title type="html">1</media:title>
		</media:content>

		<media:content url="http://sqlaj.files.wordpress.com/2013/02/2.png?w=300" medium="image">
			<media:title type="html">2</media:title>
		</media:content>

		<media:content url="http://sqlaj.files.wordpress.com/2013/02/3.png?w=300" medium="image">
			<media:title type="html">3</media:title>
		</media:content>

		<media:content url="http://sqlaj.files.wordpress.com/2013/02/4.png?w=300" medium="image">
			<media:title type="html">4</media:title>
		</media:content>

		<media:content url="http://sqlaj.files.wordpress.com/2013/02/5.png?w=300" medium="image">
			<media:title type="html">5</media:title>
		</media:content>
	</item>
		<item>
		<title>Dam the Security Risks, Full Speed Ahead</title>
		<link>http://sqlaj.wordpress.com/2013/02/08/dam-the-security-risks-full-speed-ahead/</link>
		<comments>http://sqlaj.wordpress.com/2013/02/08/dam-the-security-risks-full-speed-ahead/#comments</comments>
		<pubDate>Fri, 08 Feb 2013 14:00:47 +0000</pubDate>
		<dc:creator>AJ Mendo</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://sqlaj.wordpress.com/?p=754</guid>
		<description><![CDATA[Being a former Navy man I thought a spin-off of the phrase “Dam the torpedoes, full speed ahead” said by Admiral David Glasgow Farragut was appropriate. Changing the phrase to fit my thoughts on how many software companies and developers still to this day don’t consider security when designing or updating application design and code. Three [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sqlaj.wordpress.com&#038;blog=9937101&#038;post=754&#038;subd=sqlaj&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Being a former Navy man I thought a spin-off of the phrase “Dam the torpedoes, full speed ahead” said by <a title="http://www.history.navy.mil/bios/farragut_davidg.htm" href="http://www.history.navy.mil/bios/farragut_davidg.htm" target="_blank">Admiral David Glasgow Farragut</a> was appropriate. Changing the phrase to fit my thoughts on how many software companies and developers still to this day don’t consider security when designing or updating application design and code.</p>
<p><strong>Three Strikes and You’re out</strong></p>
<p><strong><a href="http://sqlaj.files.wordpress.com/2013/01/clinteastwood.png"><img class="size-medium wp-image-755 alignright" style="border:10px solid white;" alt="clinteastwood" src="http://sqlaj.files.wordpress.com/2013/01/clinteastwood.png?w=300&#038;h=257" width="300" height="257" /></a></strong></p>
<p>It seems enforcing policies of complex passwords and locking accounts after 3 failed attempts is causing problems for one application in particular.  It was written back at the beginning of the millennium and apparently not updated since.</p>
<p>According to complaints, users are being locked out because the policies are too strict. In addition several service accounts created during installation and needed to run the application are being locked out. One of the accounts is having major issues. Seems it runs a critical part of the application and is used by users when creating ad-hoc reports. If they don’t create the reports correctly and lock the account it brings down a major part of the application. Now that is some fancy coding right there folks.</p>
<p><strong>Vendor Recommendations</strong></p>
<p>They software vendor is requesting we remove the password policy so the users and the service accounts will never lock out. Their reasoning is based on how “it works” in the civilian sector without any password restrictions or lockout polices.</p>
<p>This way the users can attempt to log into the application as many times as needed until they log in with the correct password. Not to mention some of the passwords like “password1” and others similar can continue to work. After all it is a COTS product and any modification will require moths of code changes and tests and could cause major delays in the deployment.</p>
<p><strong>Attitude Adjustment</strong></p>
<p>Normally when those words are spoken by me or someone I call a friend, we are talking about adult beverages being consumed. This particular occasion I am speaking of my attitude and apparently what I must do to remain sane due to all the anti-intelligent thinking going on.</p>
<p>During a conference call the other day I was chatting with one of the managers via instant messenger about the request. Their advice; “Lower your standards”. Now, I really like this manager. But I must respectfully disagree with them on several levels on this one. Why is doing the right thing by enforcing policies for safety, security and just plain common sense so hard?</p>
<p><img class="alignleft size-full wp-image-756" style="margin-right:10px;" alt="common-sense3" src="http://sqlaj.files.wordpress.com/2013/01/common-sense3.jpg?w=595"   /></p>
<p>You can rationalize all you want if that makes you sleep better at night. I on the other hand have a real hard time doing things that just don’t make sense or are changed due to the political nature of the project.</p>
<p><strong>Conclusion</strong></p>
<p>&#8220;If doing the right thing is wrong, then I don’t want to be right.&#8221; &#8211; Unknown Author</p>
<p>The image wording to the left may be little extreme. Perhaps I am over reacting. Or maybe I actually care about some of these things others seemingly don&#8217;t care about. Until there is some type of preach or someones data is exposed due to loosening of some of the security safeguards. I don&#8217;t know. I think for now, I am just going for my type of attitude adjustment.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlaj.wordpress.com/754/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlaj.wordpress.com/754/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sqlaj.wordpress.com&#038;blog=9937101&#038;post=754&#038;subd=sqlaj&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sqlaj.wordpress.com/2013/02/08/dam-the-security-risks-full-speed-ahead/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c852841dd49b1ca86f27ceb7f47597e9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ajmendo</media:title>
		</media:content>

		<media:content url="http://sqlaj.files.wordpress.com/2013/01/clinteastwood.png?w=300" medium="image">
			<media:title type="html">clinteastwood</media:title>
		</media:content>

		<media:content url="http://sqlaj.files.wordpress.com/2013/01/common-sense3.jpg" medium="image">
			<media:title type="html">common-sense3</media:title>
		</media:content>
	</item>
		<item>
		<title>Server TCP provider has stopped listening [ 1433 ] due to a failure</title>
		<link>http://sqlaj.wordpress.com/2013/02/01/server-tcp-provider-has-stopped-listening-1433-due-to-a-failure/</link>
		<comments>http://sqlaj.wordpress.com/2013/02/01/server-tcp-provider-has-stopped-listening-1433-due-to-a-failure/#comments</comments>
		<pubDate>Fri, 01 Feb 2013 14:00:01 +0000</pubDate>
		<dc:creator>AJ Mendo</dc:creator>
				<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://sqlaj.wordpress.com/?p=752</guid>
		<description><![CDATA[I have been seeing this error off and on past month, month and a half. The error was only seen coming from 7 servers and randomly. Another reason it took so long to find and determine the cause was due to trying to collect the errors and investigate what was going on during those times. [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sqlaj.wordpress.com&#038;blog=9937101&#038;post=752&#038;subd=sqlaj&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I have been seeing this error off and on past month, month and a half. The error was only seen coming from 7 servers and randomly. Another reason it took so long to find and determine the cause was due to trying to collect the errors and investigate what was going on during those times.</p>
<p><strong>Error Reported</strong></p>
<p><i>DESCRIPTION:    Server TCP provider has stopped listening on port [ 1433 ] due to a failure. Error: 0&#215;2747, state: 2. The server will automatically attempt to reestablish listening.</i></p>
<p>When researching the error I found several forum and blog posts related to the error message. This one one indicates it may be the server under powered for the workload and it is saturating the buffer space in the processor. To read more follow this link.</p>
<p><a title="http://social.msdn.microsoft.com/Forums/en/sqldataaccess/thread/e52cdda2-dd0b-441f-b997-0d41f0138a55" href="http://social.msdn.microsoft.com/Forums/en/sqldataaccess/thread/e52cdda2-dd0b-441f-b997-0d41f0138a55" target="_blank">http://social.msdn.microsoft.com/Forums/en/sqldataaccess/thread/e52cdda2-dd0b-441f-b997-0d41f0138a55</a></p>
<p>Here is an excerpt from the thread.</p>
<p><i>“The errors above are pretty critical. 0&#215;2747 (10055) maps to WSAENOBUFS (An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full.). In general this indicates issues with the paged or non-paged pool in the kernel. The simultaneous IO hick-up is something very bad, too &#8211; corruption or data loss may occur if SQL is not able to write to the IO”</i></p>
<p>Another link below indicates the same information as above in the processor buffers are being saturated or the server is under powered.</p>
<p><a title="http://www.sqlservercentral.com/Forums/Topic1098674-146-1.aspx#bm1099504" href="http://www.sqlservercentral.com/Forums/Topic1098674-146-1.aspx#bm1099504" target="_blank">http://www.sqlservercentral.com/Forums/Topic1098674-146-1.aspx#bm1099504</a></p>
<p><strong>Gathering Information</strong></p>
<p>To get more information in an effort to determine if the servers were under powered I created a server sides trace using the Errors and Warning Event Category. This group also has the CPU Threshold Exceeded Event.  Keep in mind if you use the same group you may capture a lot of information. I would suggest you closely monitor the amount of data and the drive space where you are saving the traces too so you don’t fill the drive causing further issues.</p>
<p><strong>Other Things to Consider</strong></p>
<p>While investigating the above error there was an email thread started from within the System Admin group, at some point we (DBAs) were included. The discussion was around the product we use enterprise wide for Host Intrusion / Firewall / Virus Protection. In the email thread it was mentioned trouble with automatic updating of said software and issues being seen by SAs on application servers after the updates. The solution they used was to disable parts of the software.</p>
<p>I then reached out to one of the SAs to get more details. After obtaining the details I logged on to the servers in question and disabled the HIPS service. I documented what was done for future issues and to cover my “you know what”. After a week we have not seen any of the above errors. I will continue to monitor and gather data to make sure we are not having the other issues mentioned but so far I have not seen any.</p>
<p><strong>Conclusion</strong></p>
<p>Keep in mind researching an error, and finding a possible fix may not be the solution for you in your environment. The error mentioned usually indicates issues with the kernel and associated with heavy workloads. This information I was able to gather did not indicate that at all.</p>
<p>Trouble shooting errors is a time consuming process. It took over a month working this issue. I will continue to gather information and monitor the servers in question but for now things appear to be solved.</p>
<p>Cheers!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlaj.wordpress.com/752/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlaj.wordpress.com/752/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sqlaj.wordpress.com&#038;blog=9937101&#038;post=752&#038;subd=sqlaj&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sqlaj.wordpress.com/2013/02/01/server-tcp-provider-has-stopped-listening-1433-due-to-a-failure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c852841dd49b1ca86f27ceb7f47597e9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ajmendo</media:title>
		</media:content>
	</item>
		<item>
		<title>No Admin Account on Server</title>
		<link>http://sqlaj.wordpress.com/2013/01/25/no-admin-account-on-server/</link>
		<comments>http://sqlaj.wordpress.com/2013/01/25/no-admin-account-on-server/#comments</comments>
		<pubDate>Fri, 25 Jan 2013 14:00:26 +0000</pubDate>
		<dc:creator>AJ Mendo</dc:creator>
				<category><![CDATA[DBAToolBox]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://sqlaj.wordpress.com/?p=747</guid>
		<description><![CDATA[We have separate domains where I work. What I mean by that is, the development domain is a sandbox so to speak. Where developers can play all they want, do what they want without causing issues on SQA, Pre-Production or Production servers. Situation This past week a project development server was moved out of the [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sqlaj.wordpress.com&#038;blog=9937101&#038;post=747&#038;subd=sqlaj&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>We have separate domains where I work. What I mean by that is, the development domain is a sandbox so to speak. Where developers can play all they want, do what they want without causing issues on SQA, Pre-Production or Production servers.</p>
<p><strong>Situation</strong></p>
<p>This past week a project development server was moved out of the development domain and into the main domain. This was all done without my knowledge by system admins. How I found out about it was a developer pinged my in Instant messenger saying he couldn&#8217;t log into the server with his old domain username and password.</p>
<p>After asking the build manager if this was in fact the case and receiving confirmation it was and then failing to log into the sever with my super account we had a problem.</p>
<p><strong>Assessment</strong></p>
<p>The VM was moved from one domain to another before I was notified. Had I been notified I could have added an account with elevated privileges or enabled the SA account (we disable by default) in order to add the new domain user accounts. That would have made things much easier. As it was, there were no accounts with permissions to add users. We did have SQL accounts for the application but they were not useful since they have minimal permissions to run the application.</p>
<p>After several different attempts using various things such as different super accounts, IP address and even a little FM nothing worked. I started to search on Google and found this post.</p>
<p><a title="http://dba.stackexchange.com/questions/11299/how-to-add-sysadmin-to-user-in-sql-server-2008-when-no-sysadmin-accounts-exist" href="http://dba.stackexchange.com/questions/11299/how-to-add-sysadmin-to-user-in-sql-server-2008-when-no-sysadmin-accounts-exist" target="_blank">http://dba.stackexchange.com/questions/11299/how-to-add-sysadmin-to-user-in-sql-server-2008-when-no-sysadmin-accounts-exist</a></p>
<p>It turns out there is a tool that works very nicely and very quickly I might add. PsExec from Windows Sysinternals is the tool you need and can be downloaded from<a title="http://technet.microsoft.com/en-us/sysinternals/bb897553" href="http://technet.microsoft.com/en-us/sysinternals/bb897553" target="_blank"> here</a> (<a title="http://technet.microsoft.com/en-us/sysinternals/bb897553" href="http://technet.microsoft.com/en-us/sysinternals/bb897553" target="_blank">http://technet.microsoft.com/en-us/sysinternals/bb897553</a>)</p>
<p>Shawn Melton <a title="blog" href="http://meltondba.wordpress.com/" target="_blank">blog</a> | <a title="@meltondba" href="https://twitter.com/meltondba" target="_blank">twitter</a> is the one pointing out the tip in the previously mentioned link. Now following on twitter. Thanks Shawn</p>
<p><a href="http://sqlaj.files.wordpress.com/2013/01/psexec.png"><img class="alignleft size-medium wp-image-749" alt="psexec" src="http://sqlaj.files.wordpress.com/2013/01/psexec.png?w=300&#038;h=253" width="300" height="253" /></a></p>
<p>Using the tool is just as simple. Open a command prompt and execute the following command</p>
<p><b>PsExec  - i &#8211; s SSMS.exe</b></p>
<p><b>-i</b> runs the program the program so it interacts with the desktop of the specified session on the remote system. If there isn’t a session specified the process runs in the console session.</p>
<p><b>-s</b> Runs the remote process in the System account.</p>
<p><a href="http://sqlaj.files.wordpress.com/2013/01/ssms.png"><img class="alignleft size-medium wp-image-750" alt="ssms" src="http://sqlaj.files.wordpress.com/2013/01/ssms.png?w=300&#038;h=238" width="300" height="238" /></a></p>
<p>SQL Server Management Studio will open with elevated permissions and allow you to add the accounts needed in order to manage the server properly.</p>
<p><a href="http://sqlaj.files.wordpress.com/2013/01/login.png"><img class="alignleft size-medium wp-image-748" alt="login" src="http://sqlaj.files.wordpress.com/2013/01/login.png?w=300&#038;h=221" width="300" height="221" /></a></p>
<p><strong>Conclusion</strong></p>
<p>While the fix for this particular situation was a fast and easy one it does not diminish the fact that things were done by a system administrator with one of my SQL Servers and without my knowledge. Had I been properly looped into the conversation I could have prevented any of this from happening. Hopefully others will learn from this. I have even written this up and posted internally on the SAs best practice list.</p>
<p>Cheers!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlaj.wordpress.com/747/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlaj.wordpress.com/747/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sqlaj.wordpress.com&#038;blog=9937101&#038;post=747&#038;subd=sqlaj&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sqlaj.wordpress.com/2013/01/25/no-admin-account-on-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c852841dd49b1ca86f27ceb7f47597e9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ajmendo</media:title>
		</media:content>

		<media:content url="http://sqlaj.files.wordpress.com/2013/01/psexec.png?w=300" medium="image">
			<media:title type="html">psexec</media:title>
		</media:content>

		<media:content url="http://sqlaj.files.wordpress.com/2013/01/ssms.png?w=300" medium="image">
			<media:title type="html">ssms</media:title>
		</media:content>

		<media:content url="http://sqlaj.files.wordpress.com/2013/01/login.png?w=300" medium="image">
			<media:title type="html">login</media:title>
		</media:content>
	</item>
		<item>
		<title>Where have all the manners gone?</title>
		<link>http://sqlaj.wordpress.com/2013/01/19/where-have-all-the-manners-gone/</link>
		<comments>http://sqlaj.wordpress.com/2013/01/19/where-have-all-the-manners-gone/#comments</comments>
		<pubDate>Sat, 19 Jan 2013 14:00:26 +0000</pubDate>
		<dc:creator>AJ Mendo</dc:creator>
				<category><![CDATA[Misc]]></category>

		<guid isPermaLink="false">http://sqlaj.wordpress.com/?p=745</guid>
		<description><![CDATA[man·ner  (mnr) n. 1. A way of doing something or the way in which a thing is done or happens. 2. A way of acting; bearing or behavior. 3. manners a. The socially correct way of acting; etiquette. b. The prevailing customs, social conduct, and norms of a specific society, period, or group, especially as the subject of a literary work. [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sqlaj.wordpress.com&#038;blog=9937101&#038;post=745&#038;subd=sqlaj&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><b>man·ner</b>  (mnr)</p>
<p><i>n.</i><br />
<b>1. </b>A way of doing something or the way in which a thing is done or happens.<br />
<b>2. </b>A way of acting; bearing or behavior.<br />
<b>3. manners</b><br />
<b>a. </b>The socially correct way of acting; etiquette.<br />
<b>b. </b>The prevailing customs, social conduct, and norms of a specific society, period, or group, especially as the subject of a literary work.<br />
Ref: <a href="http://www.thefreedictionary.com/manners" rel="nofollow">http://www.thefreedictionary.com/manners</a></p>
<p>In sociology, <b>manners</b> are the unenforced standards of conduct which demonstrate that a person is proper, caring, non-grouchy, polite, and refined.<br />
Ref: <a href="http://en.wikipedia.org/wiki/Manners" rel="nofollow">http://en.wikipedia.org/wiki/Manners</a></p>
<p>I expect the same manners and common courtesy I have towards others from others and am consistently disappointed. Maybe I should just lower my standards.</p>
<p>I went to an electronics store today. It’s located in a big shopping center. You know the type I am sure. It is one with several speed bumps in strategic places to slow traffic down. Near one of the speed bumps I noticed an older gentleman, I would guess in his upper 70s maybe older but you get the picture. He had a cane and was moving fairly slow looking both ways for an opening in traffic so he could make his way from the parking area to the sidewalk in front of the store.</p>
<p>When I saw him I slowed and stopped a good distance away giving him room and not crowding or making him hurry in any way. When he got to the other side he tipped his hat, a time honored indication of thank you. I waved back and continued on my way.</p>
<p>As I continued along towards my destination several others crossed my path. I again slowed and allowed them to cross. One such person, a young lady in her late teens or early 20’s never looked either way for traffic. She just walked right out “expecting” me and others to stop for her. She never acknowledged I apply the brakes to slow down so I did not crush her skull under the weight of my truck tire. She just continued on like I didn’t even exist.</p>
<p>As I continued past the young lady another person, this one a middle aged man in a wheel chair came speeding, yes speeding, out of one the stores. He looked briefly and continued with his momentum down the ramp and across the street quickly. Now first off he was in a wheel chair but he appeared to have an injured foot rather than permanently bound to the chair.</p>
<p>Granted, the young lady and the middle aged man are not required to thank you. It is just something that should be done. Especially when you just walking out into traffic no matter how fast the vehicles are traveling without looking. That is just plain arrogant.</p>
<p>Thirteen years ago my wife and I started an adventure called parenting. Ever since then I think we have done our best to instill basic manners, common curtsey and common sense in our son. We can see the evidence of our effort in deeds and hear it from others commenting on how well-mannered he is, My hopes are he passes this type of basic training along to his children.</p>
<p>The whole situation I just described of the older gentlemen past his prime and from an era where good manners meant something and then the other two. I see the lack of manners and common courtesy all over these days. Especially at service related businesses. I have to wonder why managers or owners would hire such people. It is and will always be a rub for me. I guess in the end as I mentioned this is my problem. I just need to lower my expectations towards others so I won’t be disappointed constantly.</p>
<p>Thank you for reading my blog.</p>
<p>Cheers!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlaj.wordpress.com/745/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlaj.wordpress.com/745/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sqlaj.wordpress.com&#038;blog=9937101&#038;post=745&#038;subd=sqlaj&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sqlaj.wordpress.com/2013/01/19/where-have-all-the-manners-gone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c852841dd49b1ca86f27ceb7f47597e9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ajmendo</media:title>
		</media:content>
	</item>
	</channel>
</rss>
