<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments for SQL Aloha</title>
	<atom:link href="http://www.bradmcgehee.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bradmcgehee.com</link>
	<description>Brad M. McGehee, Director of DBA Education, Red Gate Software</description>
	<lastBuildDate>Fri, 12 Mar 2010 04:11:26 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on March Question: What is the biggest mistake/problem you have ever found on a SQL Server instance, and how did you fix it? by John</title>
		<link>http://www.bradmcgehee.com/2010/03/march-question-what-is-the-biggest-mistakeproblem-you-have-ever-found-on-a-sql-server-instance-and-how-did-you-fix-it/comment-page-2/#comment-289</link>
		<dc:creator>John</dc:creator>
		<pubDate>Fri, 12 Mar 2010 04:11:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.bradmcgehee.com/2010/03/march-question-what-is-the-biggest-mistakeproblem-you-have-ever-found-on-a-sql-server-instance-and-how-did-you-fix-it/#comment-289</guid>
		<description>An employer had a dedicated SQL Server running a very busy health care application.  The server had been set up with a full install of the application, all batch processes and background jobs, and the database.  The database had SQL Agent jobs running constantly all day.  The background jobs were also running constantly, and included sync processes between the main server and disconnected users.  Record access and change logging was also occurring with every transaction.  The icing on the cake was that the database server also stored large work files in MDB format that were generated and read every time someone ran a report in the application.

When I started at the company, the server was failing regularly.  They called it a &quot;train wreck&quot; as transactions blocked other transactions in a cascade effect, sometimes requiring hundreds of users to have to log out so the system could be rebooted.  The application vendor previously had the employer add another volume to the server (for three total), but they still didn&#039;t configure the database files correctly. 

A look at the disk I/O in Performance Monitor said it all - the server just couldn&#039;t handle all the concurrent read/writes.  I told the network engineers and business analyst acting as a DBA to build a batch processor server, move all background jobs and work files to the batch processor, and clean up the SQL Agent jobs to eliminate redundancy and overlap just for starters.

They ignored me.  For 6 months the fiasco continued until the server just wouldn&#039;t respond and the business ground to a halt.  They were finally forced to listen, and started by moving the work files off-server.  It was like doing CPR and seeing the victim start breathing again.  Once all my recommendations were implemented, there wasn&#039;t a single &quot;train wreck&quot; caused by disk I/O or server performance again.</description>
		<content:encoded><![CDATA[<p>An employer had a dedicated SQL Server running a very busy health care application.  The server had been set up with a full install of the application, all batch processes and background jobs, and the database.  The database had SQL Agent jobs running constantly all day.  The background jobs were also running constantly, and included sync processes between the main server and disconnected users.  Record access and change logging was also occurring with every transaction.  The icing on the cake was that the database server also stored large work files in MDB format that were generated and read every time someone ran a report in the application.</p>
<p>When I started at the company, the server was failing regularly.  They called it a &#8220;train wreck&#8221; as transactions blocked other transactions in a cascade effect, sometimes requiring hundreds of users to have to log out so the system could be rebooted.  The application vendor previously had the employer add another volume to the server (for three total), but they still didn&#8217;t configure the database files correctly. </p>
<p>A look at the disk I/O in Performance Monitor said it all &#8211; the server just couldn&#8217;t handle all the concurrent read/writes.  I told the network engineers and business analyst acting as a DBA to build a batch processor server, move all background jobs and work files to the batch processor, and clean up the SQL Agent jobs to eliminate redundancy and overlap just for starters.</p>
<p>They ignored me.  For 6 months the fiasco continued until the server just wouldn&#8217;t respond and the business ground to a halt.  They were finally forced to listen, and started by moving the work files off-server.  It was like doing CPR and seeing the victim start breathing again.  Once all my recommendations were implemented, there wasn&#8217;t a single &#8220;train wreck&#8221; caused by disk I/O or server performance again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on February Question: What is one of your best practices for making full backups and transactions log backups of your production databases? by Dallas</title>
		<link>http://www.bradmcgehee.com/2010/02/february-question-what-is-one-of-your-best-practices-for-making-full-backups-and-transactions-log-backups-of-your-production-databases/comment-page-2/#comment-284</link>
		<dc:creator>Dallas</dc:creator>
		<pubDate>Mon, 08 Mar 2010 23:31:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.bradmcgehee.com/2010/02/march-question-what-is-one-of-your-best-practices-for-making-full-backups-and-transactions-log-backups-of-your-production-databases/#comment-284</guid>
		<description>We&#039;re implementing a sql 2008 DB for a client very soon. It&#039;s &lt;1gb db to run on a single server.. but still not bad for my first production effort :)

The plan is to full backup weekly w/ nightly diffs.  The tlog will be 15 minutes.  They get copied off to the network and usb drive, which is taken offsite.  I like the convenience of disk, especially for remote sites with non-IT personell.

I&#039;ll have a vmware guest to run on the production server, which will (hopefully) retain an identical configuration setup to the production machine. test restores etc can be done on the guest.  It shouldn&#039;t run 24/7 lest it interfere with the production.

db scripts are from sqlservercentral.com</description>
		<content:encoded><![CDATA[<p>We&#8217;re implementing a sql 2008 DB for a client very soon. It&#8217;s &lt;1gb db to run on a single server.. but still not bad for my first production effort <img src='http://www.bradmcgehee.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>The plan is to full backup weekly w/ nightly diffs.  The tlog will be 15 minutes.  They get copied off to the network and usb drive, which is taken offsite.  I like the convenience of disk, especially for remote sites with non-IT personell.</p>
<p>I&#039;ll have a vmware guest to run on the production server, which will (hopefully) retain an identical configuration setup to the production machine. test restores etc can be done on the guest.  It shouldn&#039;t run 24/7 lest it interfere with the production.</p>
<p>db scripts are from sqlservercentral.com</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on March Question: What is the biggest mistake/problem you have ever found on a SQL Server instance, and how did you fix it? by Ameena</title>
		<link>http://www.bradmcgehee.com/2010/03/march-question-what-is-the-biggest-mistakeproblem-you-have-ever-found-on-a-sql-server-instance-and-how-did-you-fix-it/comment-page-2/#comment-283</link>
		<dc:creator>Ameena</dc:creator>
		<pubDate>Mon, 08 Mar 2010 19:41:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.bradmcgehee.com/2010/03/march-question-what-is-the-biggest-mistakeproblem-you-have-ever-found-on-a-sql-server-instance-and-how-did-you-fix-it/#comment-283</guid>
		<description>I started a new job with a company. They had SQL server 2005 64 bit cluster. 64 GB RAM. Lot of server power. Two weeks into this job,  a memory error started appearing in the errorlog of this server.

&quot;A significant part of sql server process memory has been paged out.&quot;

First thing I looked at was the server memory setting and found that Max Memory was not set up. So when OS need the memory it truncated the working set memory of SQL server drastically and hence the error. 

This was not a big issue as setting the Max Memory would have solved this problem. But convincing upper management that this is the solution was the big issue. They believed that since I am &quot;New&quot;, I don&#039;t know the system and environment to make this decision. I have to pull many articles from internet and convince them that this is the solution and they accepted it once they knew that its a dynamic change and no reboot of server is required and I have a rollback script ready if anything goes wrong.

Doing this immediately stopped the errors we were getting for a whole week continuously. This also increased the upper management confidence in my abilities. I am at this job 4 months now, still fighting lot of daily small fires here and there, but that particular error is not seen anymore.</description>
		<content:encoded><![CDATA[<p>I started a new job with a company. They had SQL server 2005 64 bit cluster. 64 GB RAM. Lot of server power. Two weeks into this job,  a memory error started appearing in the errorlog of this server.</p>
<p>&#8220;A significant part of sql server process memory has been paged out.&#8221;</p>
<p>First thing I looked at was the server memory setting and found that Max Memory was not set up. So when OS need the memory it truncated the working set memory of SQL server drastically and hence the error. </p>
<p>This was not a big issue as setting the Max Memory would have solved this problem. But convincing upper management that this is the solution was the big issue. They believed that since I am &#8220;New&#8221;, I don&#8217;t know the system and environment to make this decision. I have to pull many articles from internet and convince them that this is the solution and they accepted it once they knew that its a dynamic change and no reboot of server is required and I have a rollback script ready if anything goes wrong.</p>
<p>Doing this immediately stopped the errors we were getting for a whole week continuously. This also increased the upper management confidence in my abilities. I am at this job 4 months now, still fighting lot of daily small fires here and there, but that particular error is not seen anymore.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on March Question: What is the biggest mistake/problem you have ever found on a SQL Server instance, and how did you fix it? by Russ Thomas</title>
		<link>http://www.bradmcgehee.com/2010/03/march-question-what-is-the-biggest-mistakeproblem-you-have-ever-found-on-a-sql-server-instance-and-how-did-you-fix-it/comment-page-2/#comment-282</link>
		<dc:creator>Russ Thomas</dc:creator>
		<pubDate>Mon, 08 Mar 2010 18:52:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.bradmcgehee.com/2010/03/march-question-what-is-the-biggest-mistakeproblem-you-have-ever-found-on-a-sql-server-instance-and-how-did-you-fix-it/#comment-282</guid>
		<description>I was performance tuning a SQL server that was being accused of sluggishness and discovered batch requests coming in at an average 4000 requests a second on a &quot;Laserfiche&quot; database.  We had discovered this problem before - I actually even blogged about it with respect to some baseline numbers from a Brad McGehee article on performance tuning as it relates to perfmon etc.  http://zombieware.blogspot.com/2009/08/whats-good-depends-on-whats-normal.html  But the fix from before wasn&#039;t the problem the second time around - we had long since disabled the cause from the previous go-round.

I returned to the profiler and after isolating the traffic discovered the source of all the requests this time was from a handful of very similar looking queries.  Tracing it back to a service on the Laserfiche server I was able to discover that a PC tech in an effort to reduce the manual workload of some office staff had written a Laserfiche Workflow script.  It was a series of reflective triggers that was basically running a handful of queries over and over and over until it got an expected result and moved on to the next task in the purposly infinite loop.  About 20 PC&#039;s were all running different versions of the triggering event that was in turn pelting the server incessantly.  Luckily for the server it was able to keep most of the requests at bay with cache information but memory levels and disk activity was still low and high respectivly.

After a lengthy discussion with staff regarding this &quot;time and resource saving&quot; feature we were able to convince them to let us convert the Workflow Script to a small .Net app that would only run once - which we then put on a 5 minute schedule with task scheduler as opposed to the &quot;as fast as you can send them&quot; schedule Laserfiche had it on.  The office staff still got the automation they were looking for and the average requests per second (on this one database) dropped from 4000 a second to less than 4.

That may not be the biggest mistake ever but the others that come to mind were my fault and I don&#039;t really want to talk about those.</description>
		<content:encoded><![CDATA[<p>I was performance tuning a SQL server that was being accused of sluggishness and discovered batch requests coming in at an average 4000 requests a second on a &#8220;Laserfiche&#8221; database.  We had discovered this problem before &#8211; I actually even blogged about it with respect to some baseline numbers from a Brad McGehee article on performance tuning as it relates to perfmon etc.  <a href="http://zombieware.blogspot.com/2009/08/whats-good-depends-on-whats-normal.html" rel="nofollow">http://zombieware.blogspot.com/2009/08/whats-good-depends-on-whats-normal.html</a>  But the fix from before wasn&#8217;t the problem the second time around &#8211; we had long since disabled the cause from the previous go-round.</p>
<p>I returned to the profiler and after isolating the traffic discovered the source of all the requests this time was from a handful of very similar looking queries.  Tracing it back to a service on the Laserfiche server I was able to discover that a PC tech in an effort to reduce the manual workload of some office staff had written a Laserfiche Workflow script.  It was a series of reflective triggers that was basically running a handful of queries over and over and over until it got an expected result and moved on to the next task in the purposly infinite loop.  About 20 PC&#8217;s were all running different versions of the triggering event that was in turn pelting the server incessantly.  Luckily for the server it was able to keep most of the requests at bay with cache information but memory levels and disk activity was still low and high respectivly.</p>
<p>After a lengthy discussion with staff regarding this &#8220;time and resource saving&#8221; feature we were able to convince them to let us convert the Workflow Script to a small .Net app that would only run once &#8211; which we then put on a 5 minute schedule with task scheduler as opposed to the &#8220;as fast as you can send them&#8221; schedule Laserfiche had it on.  The office staff still got the automation they were looking for and the average requests per second (on this one database) dropped from 4000 a second to less than 4.</p>
<p>That may not be the biggest mistake ever but the others that come to mind were my fault and I don&#8217;t really want to talk about those.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on March Question: What is the biggest mistake/problem you have ever found on a SQL Server instance, and how did you fix it? by Nadrek</title>
		<link>http://www.bradmcgehee.com/2010/03/march-question-what-is-the-biggest-mistakeproblem-you-have-ever-found-on-a-sql-server-instance-and-how-did-you-fix-it/comment-page-2/#comment-281</link>
		<dc:creator>Nadrek</dc:creator>
		<pubDate>Mon, 08 Mar 2010 18:27:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.bradmcgehee.com/2010/03/march-question-what-is-the-biggest-mistakeproblem-you-have-ever-found-on-a-sql-server-instance-and-how-did-you-fix-it/#comment-281</guid>
		<description>I once found a database that had been deployed in production in such a way that the database files were subject to Windows OS level compression... and had ended up in over 100,000 fragments.

Uncompress, defrag... and voila, the performance improves.

P.S. I can&#039;t top the failed backups, failed hard drive, move before log shipping, secret drive maintenance, drives not screwed in story.</description>
		<content:encoded><![CDATA[<p>I once found a database that had been deployed in production in such a way that the database files were subject to Windows OS level compression&#8230; and had ended up in over 100,000 fragments.</p>
<p>Uncompress, defrag&#8230; and voila, the performance improves.</p>
<p>P.S. I can&#8217;t top the failed backups, failed hard drive, move before log shipping, secret drive maintenance, drives not screwed in story.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on March Question: What is the biggest mistake/problem you have ever found on a SQL Server instance, and how did you fix it? by Peter Apostolakopoulos</title>
		<link>http://www.bradmcgehee.com/2010/03/march-question-what-is-the-biggest-mistakeproblem-you-have-ever-found-on-a-sql-server-instance-and-how-did-you-fix-it/comment-page-2/#comment-280</link>
		<dc:creator>Peter Apostolakopoulos</dc:creator>
		<pubDate>Mon, 08 Mar 2010 10:34:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.bradmcgehee.com/2010/03/march-question-what-is-the-biggest-mistakeproblem-you-have-ever-found-on-a-sql-server-instance-and-how-did-you-fix-it/#comment-280</guid>
		<description>I have come across a few errors / mistakes in my time as a DBA.

The worst has to be the most simple one I ever came across and the one that only took me a couple of minutes to figure out.

I was called into a situation when an in-house developed application stopped responding in production by refusing to allow any more connections than 10 or so.

The application had been functioning perfectly during development and testing but within a few hours of going live it had responding.

It had the development team completely baffled. Once on the server, the first thing I did was check the version of SQLServer and to my amazement (or should that be horror), discovered that the application had been deployed using SQLServer Developer Edition which of course only allows a limited number of connections.

I simply upgraded the instance to SQLServer Standard Edition and everything started working. Simple, I know, but by far the worst mistake I have come across.</description>
		<content:encoded><![CDATA[<p>I have come across a few errors / mistakes in my time as a DBA.</p>
<p>The worst has to be the most simple one I ever came across and the one that only took me a couple of minutes to figure out.</p>
<p>I was called into a situation when an in-house developed application stopped responding in production by refusing to allow any more connections than 10 or so.</p>
<p>The application had been functioning perfectly during development and testing but within a few hours of going live it had responding.</p>
<p>It had the development team completely baffled. Once on the server, the first thing I did was check the version of SQLServer and to my amazement (or should that be horror), discovered that the application had been deployed using SQLServer Developer Edition which of course only allows a limited number of connections.</p>
<p>I simply upgraded the instance to SQLServer Standard Edition and everything started working. Simple, I know, but by far the worst mistake I have come across.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Should DBAs be Paid Overtime? by bradmcgehee</title>
		<link>http://www.bradmcgehee.com/2010/02/should-dbas-be-paid-overtime/comment-page-1/#comment-278</link>
		<dc:creator>bradmcgehee</dc:creator>
		<pubDate>Fri, 05 Mar 2010 21:14:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.bradmcgehee.com/2010/02/should-dbas-be-paid-overtime/#comment-278</guid>
		<description>Most people still read, and comment, at my syndicated blog at http://www.sqlservercentral.com/blogs/, although I am trying to encourage them to do so at the website, as it is hard for me to keep up with comments from multiple locations. Thanks for posting here.</description>
		<content:encoded><![CDATA[<p>Most people still read, and comment, at my syndicated blog at <a href="http://www.sqlservercentral.com/blogs/" rel="nofollow">http://www.sqlservercentral.com/blogs/</a>, although I am trying to encourage them to do so at the website, as it is hard for me to keep up with comments from multiple locations. Thanks for posting here.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Should DBAs be Paid Overtime? by Jean Pierre</title>
		<link>http://www.bradmcgehee.com/2010/02/should-dbas-be-paid-overtime/comment-page-1/#comment-277</link>
		<dc:creator>Jean Pierre</dc:creator>
		<pubDate>Fri, 05 Mar 2010 18:55:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.bradmcgehee.com/2010/02/should-dbas-be-paid-overtime/#comment-277</guid>
		<description>Interesting Question.

Considering myself a white collar professional, it never dawned on me that I would want to be paid for working more than 40 hours a week. 

However, I felt that I would have more flexibility in my day to day work hours: working longer days when the work load required it, and working shorter days when the work was light. Over time ,usually a week, time at work would average 40 hours, although the average usually is more in favor of the employer. This has been my experience as a full-time employee.

My view changed while I worked on contract: I did charge for over time, but only when the time was mandated by the customer and the contract was amended to reflect the additional hours. Here again I was able to be flexible with my work schedule, working longer days to complete the work load, and banking those extra hours to create longer weekends when the workload was light.

If someone decides that we will be paid OT, I will not refuse!

By the way John S, people who have difficulty following instructions from the author have posted comments @ SQL Server Central. That is where I read this blog.</description>
		<content:encoded><![CDATA[<p>Interesting Question.</p>
<p>Considering myself a white collar professional, it never dawned on me that I would want to be paid for working more than 40 hours a week. </p>
<p>However, I felt that I would have more flexibility in my day to day work hours: working longer days when the work load required it, and working shorter days when the work was light. Over time ,usually a week, time at work would average 40 hours, although the average usually is more in favor of the employer. This has been my experience as a full-time employee.</p>
<p>My view changed while I worked on contract: I did charge for over time, but only when the time was mandated by the customer and the contract was amended to reflect the additional hours. Here again I was able to be flexible with my work schedule, working longer days to complete the work load, and banking those extra hours to create longer weekends when the workload was light.</p>
<p>If someone decides that we will be paid OT, I will not refuse!</p>
<p>By the way John S, people who have difficulty following instructions from the author have posted comments @ SQL Server Central. That is where I read this blog.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
