<?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/"
	>

<channel>
	<title>SQLKnowledge.com &#187; sql</title>
	<atom:link href="http://sqlknowledge.com/tag/sql/feed/" rel="self" type="application/rss+xml" />
	<link>http://sqlknowledge.com</link>
	<description>Life is SQLized..</description>
	<lastBuildDate>Wed, 27 Jul 2011 20:53:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>What Lenovo IdeaPad Y560 Laptop Can&#8217;t do?</title>
		<link>http://sqlknowledge.com/2011/01/what-lenovo-ideapad-y560-laptop-cant-do/</link>
		<comments>http://sqlknowledge.com/2011/01/what-lenovo-ideapad-y560-laptop-cant-do/#comments</comments>
		<pubDate>Mon, 03 Jan 2011 06:21:57 +0000</pubDate>
		<dc:creator>Deepak</dc:creator>
				<category><![CDATA[SQL DBA]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[cpu temperature]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[ideapad y560]]></category>
		<category><![CDATA[laptop hot]]></category>
		<category><![CDATA[lenovo]]></category>
		<category><![CDATA[nfs]]></category>
		<category><![CDATA[speedfan]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://sqlknowledge.com/2011/01/what-lenovo-ideapad-y560-laptop-cant-do/</guid>
		<description><![CDATA[I rarely find time to play computer games, however when I do, I certainly go for Need for Speed racing game from EA. Considering high system requirements for now a days demanding games and with prime reason to run multiple virtual machines for SQL testing, I decided to go for Lenovo laptop for the second [...]]]></description>
			<content:encoded><![CDATA[<p>I rarely find time to play computer games, however when I do, I certainly go for Need for Speed racing game from EA. Considering high system requirements for now a days demanding games and with prime reason to run multiple virtual machines for SQL testing, I decided to go for Lenovo laptop for the second time. It was hard to choose but I was somehow confident with what I have chosen. Lenovo IdeaPad Y560 06465BU is a pretty decent size hardware to do most of stuff, Under the hood It has:</p>
<p> <span id="more-274"></span>
<p><strong>System Components<br /></strong>Processor: Intel Core <strong>i7</strong>-740QM Processor ( 1.73GHz 1333MHz 6MB )<br />Operating system: Genuine Windows 7 Home Premium 64<br />Graphics: ATI Mobility Radeon HD 5730 1GB<br />Total memory: 4 GB PC3-8500 DDR3 SDRAM 1333MHz<br />Display: 15.6&#8243; HD LED Glare 1366&#215;768<br />Pointing device: Industry Standard Touchpad<br />Hard Drive: 500GB 7200<br />Optical Drive: DVD Recordable (Dual Layer)<br />Battery: 6 Cell Lithium-Ion<br />Network Card: Intel Wireless Wi-Fi Link 1000<br />Bluetooth: Bluetooth Version 2.1 + EDR</p>
<p>The trouble started 100 days ago, but that time I was busy and could not work to find a reason. During this holidays leisure time, I uncovered NFS dvd again to find where did I leave the game on. I played for close to 90 minutes and boom, system shutdown abruptly; the same had happened earlier as well. I checked, laptop was burning hot and noise level was high. I tried booting system again but it did not. Ok, what to do, I put laptop in balcony to get it cool. it was close to 2 degree Celsius outside that did good job quickly. I installed Speedfan and found CPU temperature is nearby 41 degree and system was running fine.</p>
<p><a href="http://sqlknowledge.com/wp-content/uploads/2011/01/cpu-temp3.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="cpu temp3" border="0" alt="cpu temp3" src="http://sqlknowledge.com/wp-content/uploads/2011/01/cpu-temp3_thumb.png" width="432" height="500"/></a></p>
<p>I decided to play again while SpeedFan is monitoring &amp; doing its work, very soon system got hot and started burning like oven. SpeedFan results were surprising, I played NFS for only 45 minutes and CPU was burning close to 92 degree Celsius already; I kept on playing for few more minutes till it crashed, perhaps one of CPU core temperature touched 100 degree Celsius.</p>
<p><a href="http://sqlknowledge.com/wp-content/uploads/2011/01/cpu-temp2.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="cpu temp2" border="0" alt="cpu temp2" src="http://sqlknowledge.com/wp-content/uploads/2011/01/cpu-temp2_thumb.png" width="426" height="500"/></a></p>
<p>Overall, its good to have a big hardware but its not always possible to keep running on 100%, limits can not hold for a long time even when its matter of playing a game. I may buy a laptop color to keep it cool and will see what else can be done other than moving to Iceland. On lighter side of this episode, Thankfully I have habit to keep laptop on table while working; I can not imagine what may happen if someone put in lap all the time.</p>
]]></content:encoded>
			<wfw:commentRss>http://sqlknowledge.com/2011/01/what-lenovo-ideapad-y560-laptop-cant-do/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Welcome 2011</title>
		<link>http://sqlknowledge.com/2010/12/welcome-2011/</link>
		<comments>http://sqlknowledge.com/2010/12/welcome-2011/#comments</comments>
		<pubDate>Sat, 01 Jan 2011 05:16:25 +0000</pubDate>
		<dc:creator>Hemantgiri S. Goswami</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Hemantgiri S. Goswami]]></category>
		<category><![CDATA[join]]></category>
		<category><![CDATA[Knowledge]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[SQL Server MVP]]></category>
		<category><![CDATA[Welcome 2011]]></category>

		<guid isPermaLink="false">http://sqlknowledge.com/2010/12/welcome-2011/</guid>
		<description><![CDATA[Greetings!!! Myself Hemantgiri S. Goswami, SQL Server MVP, I am extremely happy to join SQL Knowledge as an author again. In coming days I will be actively sharing an articles, scripts and tips here. I would like to thank Deepak for inviting me to be a part of SQL Knowledge once again.]]></description>
			<content:encoded><![CDATA[<p><font size="2">Greetings!!!</font></p>
<p><font size="2">Myself Hemantgiri S. Goswami, SQL Server MVP, I am extremely happy to join SQL Knowledge as an author again. In coming days I will be actively sharing an articles, scripts and tips here.</p>
<p></font><font size="2">I would like to thank Deepak for inviting me to be a part of SQL Knowledge once again.</font></p>
<p><a href="http://sqlknowledge.com/wp-content/uploads/2010/12/2011.jpg"><font size="2"><img style="border-right-width: 0px; float: none; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="2011" src="http://sqlknowledge.com/wp-content/uploads/2010/12/2011_thumb.jpg" width="637" height="480"/></font></a></p>
<p><font size="2"></font></p>
]]></content:encoded>
			<wfw:commentRss>http://sqlknowledge.com/2010/12/welcome-2011/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SQL Server Consolidation &amp; Virtualization Practice..</title>
		<link>http://sqlknowledge.com/2010/12/sql-server-consolidation-virtualization-practice/</link>
		<comments>http://sqlknowledge.com/2010/12/sql-server-consolidation-virtualization-practice/#comments</comments>
		<pubDate>Wed, 22 Dec 2010 19:40:56 +0000</pubDate>
		<dc:creator>Deepak</dc:creator>
				<category><![CDATA[SQL BI/DW/SSRS]]></category>
		<category><![CDATA[SQL DBA]]></category>
		<category><![CDATA[SQL Dev]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[DBA]]></category>
		<category><![CDATA[hyper-v]]></category>
		<category><![CDATA[license]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[sql consolidation]]></category>
		<category><![CDATA[sql cost cutting]]></category>
		<category><![CDATA[sql p2v]]></category>
		<category><![CDATA[upgrade]]></category>
		<category><![CDATA[virtual server]]></category>
		<category><![CDATA[virtualization]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://sqlknowledge.com/2010/12/sql-server-consolidation-virtualization-practice/</guid>
		<description><![CDATA[&#160; Consolidation by definition is the process of combining multiple SQL Server Databases &#38; Servers running on different machines (could be geographically separated) onto a smaller number of more powerful machines in a central location. However in my opinion regarding SQL, its a process of getting organized, spending for what you need or use, and [...]]]></description>
			<content:encoded><![CDATA[<p><em>&nbsp;</em>
<ul>
<p><a href="http://sqlknowledge.com/wp-content/uploads/2010/12/image4.png"><em><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://sqlknowledge.com/wp-content/uploads/2010/12/image_thumb4.png" width="246" height="160"/></em></a> <strong>Consolidation</strong> by definition is the process of combining multiple SQL Server Databases &amp; Servers running on different machines (could be geographically separated) onto a smaller number of more powerful machines in a central location. However in my opinion regarding SQL, its a process of getting organized, spending for what you need or use, and off-course saving at the same time. Lets see how consolidation and virtualization works together?</p>
<p>Microsoft SQL Server since beginning is overall self maintaining, secure by default and self tuning DBMS that requires a very little or basic configuration during installation or later during usage, In a large Enterprise size organization its easier adaptability and usage can lead into uncoordinated installations, wasted hardware and licenses, lack of standards and security holes. </p>
</ul>
<blockquote><p><strong>Think Again!</strong>&nbsp; You should consider adopting Virtualization and Consolidation technique if you have similar questions:</p>
</blockquote>
<ul> </ul>
<ul>
<li>
<p>Looking by your SQL Server inventory list, you realized that number of SQL servers are going up every month?</p>
</li>
<li>
<p>Looking by server utilization reports, you realized that your team or vendor over estimated database server hardware requirements and workload; leading into buying excessive hardware that your application is never going to use? </p>
</li>
<li>
<p>Every time it take months to plan &amp; implement SQL patching, upgrades, installation etc, Applying SQL Server best practices and security updates/settings are complex and far of reach.</p>
</li>
</ul>
<blockquote><p><strong>Better together Approach:</strong> You can consider three best possible scenario to implement, but are having its own benefits and concerns.</p>
</blockquote>
<ul> </ul>
<ul>
<li>
<p><strong>One OS/One SQLinstance- multiple databases<br /></strong>Its the best that you can get, in simple words evaluate your application that uses a few database(s); move your databases to a shared database server. Concerns: shared cache, SA permission, similar name databases or objects and logins, maintenance window, remote desktop connection (rdp) etc </p>
</li>
<li>
<p><strong>One OS/Multiple SQL Instance<br /></strong>Build a server having multiple SQL Server instances for applications that require its own unique collation, SQL version &amp; build, own dedicated memory/cache, tempdb etc. Concerns: SA permissions, remote desktop etc. </p>
</li>
<li>
<p><strong>One OS/One SQL Instance (virtualization) <br /></strong>For applications having extreme performance needs and unique set of configurations. build a server with multiple virtual Operating systems and each OS running SQL Instance.<br />Software dependency: Microsoft Hyper-V, VMware, hp polyserve etc</p>
<ul> </ul>
<ul></ul>
</li>
</ul>
<p><a href="http://sqlknowledge.com/wp-content/uploads/2010/12/image5.png"><strong><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="image" border="0" alt="image" src="http://sqlknowledge.com/wp-content/uploads/2010/12/image_thumb5.png" width="520" height="228"/></strong></a></p>
<ul> </ul>
<ul> </ul>
<ul> </ul>
<ul></ul>
<p><strong>Consolidation &amp; Virtualization benefits</strong></p>
<ul> </ul>
<ul> </ul>
<ul> </ul>
<ul> </ul>
<ul> </ul>
<ul></ul>
<li>Reduced Software &amp; Operating System Licensing cost  </li>
<li>Reduced Server Hardwar cost, fewer number of servers required  </li>
<li>Datacenter space, Power consumption, Cooling Cost cut down (GreenIT)  </li>
<li>Monitoring &amp; Support cost; fewer resources needed to monitor/control/patch servers etc  </li>
<li>Easier Server move-ability with scale up &amp; scale out solutions  </li>
<li>High availability option (depends on setup)</li>
<p><strong></strong>&nbsp;</p>
<p><strong>Concern(s): </strong></p>
<ul> </ul>
<ul> </ul>
<ul> </ul>
<ul> </ul>
<ul> </ul>
<ul></ul>
<li>Single point of failure (But, you can implementing a good high availability solution to deal with this issue)  </li>
<li>Takes time &amp; efforts to consolidate (But, once setup year by year return in terms of savings)  </li>
<li>Complex Service Charge Model. If your organization do the billing of services provided to various business units, then you may need to do complex calculation based on usage before billing to individual units.</li>
<p>&nbsp;</p>
<p><strong>Milestones to Destination</strong></p>
<ul> </ul>
<ul> </ul>
<ul> </ul>
<ul> </ul>
<ul> </ul>
<ul></ul>
<li><strong>Inventory:</strong> Prepare inventory of SQL Server hosted in your environment. You may consider using Microsoft Assessment and Planning tool (<a href="http://technet.microsoft.com/en-us/edge/microsoft-assessment-and-planning-map-toolkit-50-database-discovery-for-sql-server-4-of-6.aspx" target="_blank">MAP</a>)  </li>
<li><strong>Hardware Sizing: </strong>Document database server resource available on the server like CPU, Memory, Storage, DISKIO, etc  </li>
<li><strong>Hardware Usage:</strong> Identify database server usage/utilization over a period of time, prepare histogram of Peak, Low &amp; average usage. You may use perfmon or 3rd party tools like VMware capacity planner.  </li>
<li><strong>Savings:</strong> Calculate server operational cost in current setup and compare with new consolidated &amp; virtualized model.  </li>
<li><strong>Going ahead:</strong> You may want to ask some specific database related questions to application owners
<ul>
<li>Is it a vendor supported/provided SQL Instance with limitations or internal home grown application? and what is workload or capacity planning guidelines for future.  </li>
<li>Any significant reason a physical server is required? or why physical to virtual (P2V) should not be done?  </li>
<li>Can Databases&#8217; from SQL Instance be clubbed/consolidated with other SQL Instance? what is frequency of database changes/deployment or downtime requirements.  </li>
<li>Can SQL instance be upgraded to latest SQL Server version &amp; build? as per virtualization standard in your environment?  </li>
<li>What are high availability options implemented for the databases &amp; SQL Service? </li>
</ul>
</li>
<p><strong>Best practices</strong>:</p>
<ul>
<li>Its better to divide entire SQL Server inventory into multiple smaller sections. Example- Should look at creating 5 subset of 100 servers rather than going in for virtualization of all 500 servers in a single attempt. Apply learning, experiences and best practices in later subsets.  </li>
<li>Use single machine with individual SQL Named Instance or VM for Production/Test/Development/Staging db requirements. (depends on application/environment)  </li>
<li>Never ever, oversubscribe resources for your server on virtual platform  </li>
<li>Calculate total server workload in virtualization model with real-time application and database workload in different scenario or timings.  </li>
<li>Carefully choose virtualization technique and server hardware to implement</li>
</ul>
<p><strong>Resources</strong>: <a href="http://msdn.microsoft.com/en-us/library/ee819082(SQL.100).aspx" target="_blank">Microsoft</a>, <a href="http://www.vmware.com/files/pdf/solutions/sql_server_virtual_bp.pdf" target="_blank">VMware</a>, <a href="http://download.microsoft.com/download/5/B/4/5B46A838-67BB-4F7C-92CB-EABCA285DFDD/693821ebook.pdf" target="_blank">MS PDF</a></p>
]]></content:encoded>
			<wfw:commentRss>http://sqlknowledge.com/2010/12/sql-server-consolidation-virtualization-practice/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Microsoft SQL Server 2005 Service Pack 4 RTM</title>
		<link>http://sqlknowledge.com/2010/12/microsoft-sql-server-2005-service-pack-4-rtm/</link>
		<comments>http://sqlknowledge.com/2010/12/microsoft-sql-server-2005-service-pack-4-rtm/#comments</comments>
		<pubDate>Mon, 20 Dec 2010 14:44:35 +0000</pubDate>
		<dc:creator>Deepak</dc:creator>
				<category><![CDATA[SQL DBA]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[DBA]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[service pack]]></category>
		<category><![CDATA[SP4]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[SQL Server 2005]]></category>

		<guid isPermaLink="false">http://sqlknowledge.com/?p=103</guid>
		<description><![CDATA[Service Pack 4 (SP4) for Microsoft SQL Server 2005 is now available for download. SQL Server 2005 service packs are cumulative, and this service pack upgrades all service levels of SQL Server 2005 to SP4 . You can use these packages to upgrade any of the following SQL Server 2005 editions: Enterprise Enterprise Evaluation Developer [...]]]></description>
			<content:encoded><![CDATA[<p>Service Pack 4 (SP4) for Microsoft SQL Server 2005 is now available for download. SQL Server 2005 service packs are cumulative, and this service pack upgrades all service levels of SQL Server 2005 to SP4 . You can use these packages to upgrade any of the following SQL Server 2005 editions:</p>
<p>Enterprise<br />
Enterprise Evaluation<br />
Developer<br />
Standard<br />
Workgroup</p>
<p>SQL Server 2005 SP4 includes SQL Server 2005 SP3 cumulative update 1 to 11, customer requested fixes, along with instances of the SQL Server 2005 SP4 database Engine support for DAC operations.</p>
<p><a href="http://www.linkedin.com/redirect?url=http%3A%2F%2Fwww%2Emicrosoft%2Ecom%2Fdownloads%2Fen%2Fdetails%2Easpx%3FFamilyID%3Db953e84f-9307-405e-bceb-47bd345baece%26displaylang%3Den&amp;urlhash=z_Sx&amp;_t=tracking_anet" target="blank">http://www.microsoft.com/downloads/en/details.aspx?FamilyID=b953e84f-9307-405e-bceb-47bd345baece&amp;displaylang=en</a></p>
]]></content:encoded>
			<wfw:commentRss>http://sqlknowledge.com/2010/12/microsoft-sql-server-2005-service-pack-4-rtm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get Notification as soon as SQL Services are restarted</title>
		<link>http://sqlknowledge.com/2010/09/get-notification-as-soon-as-sql-services-are-restarted/</link>
		<comments>http://sqlknowledge.com/2010/09/get-notification-as-soon-as-sql-services-are-restarted/#comments</comments>
		<pubDate>Fri, 17 Sep 2010 18:20:00 +0000</pubDate>
		<dc:creator>Deepak</dc:creator>
				<category><![CDATA[Scripts]]></category>
		<category><![CDATA[SQL DBA]]></category>
		<category><![CDATA[SQL Dev]]></category>
		<category><![CDATA[alarm]]></category>
		<category><![CDATA[DBA]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[notification]]></category>
		<category><![CDATA[restart]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[sql notification]]></category>
		<category><![CDATA[sql restarted]]></category>
		<category><![CDATA[sql service restart]]></category>
		<category><![CDATA[sqldba]]></category>

		<guid isPermaLink="false">http://sqlknowledge.com/?p=22</guid>
		<description><![CDATA[Being production DBA and responsible for a dozen to 100+ SQL Servers running in your organization or datacenter, Sometimes, you must be wondering that how you can make sure you are fully aware what is going when you are not at work. There is an easy way to stay in touch with your SQL Server(s), [...]]]></description>
			<content:encoded><![CDATA[<p>Being production DBA and responsible for a dozen to 100+ SQL Servers running in your organization or datacenter, Sometimes, you must be wondering that how you can make sure you are fully aware what is going when you are not at work. There is an easy way to stay in touch with your SQL Server(s), you can create a SQL job on the server, relax and hope you never get such alarm. yup, as soon as SQL Services will restart, the first thing its going to do is send you an email for restart notification.</p>
<p>&nbsp;</p>
<div class="csharpcode">
<pre class="alt"><span class="kwrd">DECLARE</span> @UpTimeDays <span class="kwrd">int</span></pre>
<pre><span class="kwrd">DECLARE</span> @SQLSvcStarted <span class="kwrd">varchar</span>(20)</pre>
<pre class="alt"><span class="kwrd">DECLARE</span> @rc <span class="kwrd">int</span></pre>
<pre><span class="kwrd">DECLARE</span> @msg <span class="kwrd">varchar</span>(1000)</pre>
<pre class="alt"><span class="kwrd">SET</span> @UpTimeDays=(<span class="kwrd">select</span> DateDiff(D, CrDate, GetDate()) <span class="kwrd">from</span> master..sysdatabases <span class="kwrd">where</span> name=<span class="str">'tempdb'</span>)</pre>
<pre><span class="kwrd">IF</span> @UpTimeDays = 0</pre>
<pre class="alt"><span class="kwrd">BEGIN</span></pre>
<pre><span class="kwrd">SET</span> @SQLSvcStarted = (<span class="kwrd">select</span> <span class="kwrd">convert</span>(<span class="kwrd">varchar</span>(20), CrDate, 113) </pre>
<pre class="alt"><span class="kwrd">from</span> master..sysdatabases <span class="kwrd">where</span> name = <span class="str">'tempdb'</span>)</pre>
<pre><span class="kwrd">SET</span> @msg=<span class="str">'The SQL Services on &lt;b&gt;'</span>+@@SERVERNAME+<span class="str">'&lt;/b&gt; was restarted on &lt;b&gt;'</span>+@SQLSvcStarted +<span class="str">'&lt;/b&gt;'</span></pre>
<pre class="alt"><span class="kwrd">EXEC</span> @rc = msdb.dbo.sp_send_dbmail</pre>
<pre>@profile_name = <span class="str">'SQLMailProfileName'</span>,</pre>
<pre class="alt">@recipients = <span class="str">'dk@sqlknowledge.com'</span>,</pre>
<pre>@importance = <span class="str">'high'</span>,</pre>
<pre class="alt">@subject = <span class="str">'SQL Server Restart Notification!'</span>,</pre>
<pre>@body_format = <span class="str">'html'</span>,</pre>
<pre class="alt">@body = @msg,</pre>
<pre>@exclude_query_output = 1</pre>
<pre class="alt"><span class="kwrd">IF</span> @rc = 1 <span class="kwrd">RAISERROR</span>(<span class="str">'xp_smtp_sendmail Failed'</span>, 16, 1)</pre>
<pre><span class="kwrd">END</span></pre>
</div>
<style type="text/css">.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
</style>
]]></content:encoded>
			<wfw:commentRss>http://sqlknowledge.com/2010/09/get-notification-as-soon-as-sql-services-are-restarted/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>List of Undocumented DBCC command..</title>
		<link>http://sqlknowledge.com/2010/03/list-of-undocumented-dbcc-command/</link>
		<comments>http://sqlknowledge.com/2010/03/list-of-undocumented-dbcc-command/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 18:21:00 +0000</pubDate>
		<dc:creator>Deepak</dc:creator>
				<category><![CDATA[Scripts]]></category>
		<category><![CDATA[SQL DBA]]></category>
		<category><![CDATA[SQL Dev]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[buffer]]></category>
		<category><![CDATA[cachestats]]></category>
		<category><![CDATA[checkalloc]]></category>
		<category><![CDATA[checkdb]]></category>
		<category><![CDATA[DBA]]></category>
		<category><![CDATA[dbcc]]></category>
		<category><![CDATA[dbcc page]]></category>
		<category><![CDATA[shrinkfile]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[sqldba]]></category>
		<category><![CDATA[sqlperf]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[useplan]]></category>

		<guid isPermaLink="false">http://sqlknowledge.com/?p=31</guid>
		<description><![CDATA[List of Undocumented DBCC command.. DBCC activecursors [(spid)] DBCC addextendedproc (function_name, dll_name) DBCC addinstance (objectname, instancename) DBCC adduserobject (name) DBCC auditevent (eventclass, eventsubclass, success, loginname, rolename, dbusername, loginid) DBCC autopilot (typeid, dbid, tabid, indid, pages [,flag]) DBCC balancefactor (variance_percent) DBCC bufcount [(number_of_buffers)] DBCC buffer ( {&#8216;dbname&#8217; &#124; dbid} [, objid [, number [, printopt={0&#124;1&#124;2} ][, [...]]]></description>
			<content:encoded><![CDATA[<p><strong>List of Undocumented DBCC command..</strong></p>
<p>DBCC activecursors [(spid)]</p>
<p>DBCC addextendedproc (function_name, dll_name)</p>
<p>DBCC addinstance (objectname, instancename)</p>
<p>DBCC adduserobject (name)</p>
<p>DBCC auditevent (eventclass, eventsubclass, success, loginname, rolename, dbusername, loginid)</p>
<p>DBCC autopilot (typeid, dbid, tabid, indid, pages [,flag])</p>
<p>DBCC balancefactor (variance_percent)</p>
<p>DBCC bufcount [(number_of_buffers)]</p>
<p>DBCC buffer ( {&#8216;dbname&#8217; | dbid} [, objid [, number [, printopt={0|1|2} ][, dirty | io | kept | rlock | ioerr | hashed ]]])</p>
<p>DBCC bytes ( startaddress, length )</p>
<p>DBCC cachestats</p>
<p>DBCC callfulltext</p>
<p>DBCC checkalloc [('database_name'[, NOINDEX | REPAIR])] [WITH NO_INFOMSGS[, ALL_ERRORMSGS][, ESTIMATEONLY]]</p>
<p>DBCC checkcatalog [('database_name')] [WITH NO_INFOMSGS]</p>
<p>DBCC checkconstraints [( 'tab_name' | tab_id | 'constraint_name' | constraint_id )] [WITH ALL_CONSTRAINTS | ALL_ERRORMSGS]</p>
<p>DBCC checkdb [('database_name'[, NOINDEX | REPAIR])] [WITH NO_INFOMSGS[, ALL_ERRORMSGS][, PHYSICAL_ONLY][, ESTIMATEONLY][, DBCC TABLOCK]</p>
<p>DBCC checkdbts (dbid, newTimestamp)]</p>
<p>DBCC checkfilegroup [( [ {'filegroup_name' | filegroup_id} ] [, NOINDEX] )] [WITH NO_INFOMSGS[, ALL_ERRORMSGS][, PHYSICAL_ONLY][, ESTIMATEONLY][, TABLOCK]]</p>
<p>DBCC checkident (&#8216;table_name&#8217;[, { NORESEED | {RESEED [, new_reseed_value] } } ] )</p>
<p>DBCC checkprimaryfile ( {&#8216;FileName&#8217;} [, opt={0|1|2|3} ])</p>
<p>DBCC checktable (&#8216;table_name&#8217;[, {NOINDEX | index_id | REPAIR}]) [WITH NO_INFOMSGS[, ALL_ERRORMSGS][, PHYSICAL_ONLY][, ESTIMATEONLY][, TABLOCK]]</p>
<p>DBCC cleantable (&#8216;database_name&#8217;|database_id, &#8216;table_name&#8217;|table_id, [batch_size])</p>
<p>DBCC cacheprofile [( {actionid} [, bucketid])</p>
<p>DBCC clearspacecaches (&#8216;database_name&#8217;|database_id, &#8216;table_name&#8217;|table_id, &#8216;index_name&#8217;|index_id)</p>
<p>DBCC collectstats (on | off)</p>
<p>DBCC concurrencyviolation (reset | display | startlog | stoplog)</p>
<p>DBCC config</p>
<p>DBCC cursorstats ([spid [,'clear']])</p>
<p>DBCC dbinfo [('dbname')]</p>
<p>DBCC dbrecover (dbname [, IgnoreErrors])</p>
<p>DBCC dbreindex (&#8216;table_name&#8217; [, index_name [, fillfactor ]]) [WITH NO_INFOMSGS]</p>
<p>DBCC dbreindexall (db_name/db_id, type_bitmap)</p>
<p>DBCC dbrepair (&#8216;dbname&#8217;, DROPDB [, NOINIT])</p>
<p>DBCC dbtable [({'dbname' | dbid})]</p>
<p>DBCC debugbreak</p>
<p>DBCC deleteinstance (objectname, instancename)</p>
<p>DBCC des [( {'dbname' | dbid} [, {'objname' | objid} ])]</p>
<p>DBCC detachdb [( 'dbname' )]</p>
<p>DBCC dropcleanbuffers</p>
<p>DBCC dropextendedproc (function_name)</p>
<p>DBCC dropuserobject (&#8216;object_name&#8217;)</p>
<p>DBCC dumptrigger ({&#8216;BREAK&#8217;, {0 | 1}} | &#8216;DISPLAY&#8217; | {&#8216;SET&#8217;, exception_number} | {&#8216;CLEAR&#8217;, exception_number})</p>
<p>DBCC errorlog</p>
<p>DBCC extentinfo [({'database_name'| dbid | 0} [, {'table_name' | table_id} [, {'index_name' | index_id | -1}]])]</p>
<p>DBCC fileheader [( {'dbname' | dbid} [, fileid])</p>
<p>DBCC fixallocation [({'ADD' | 'REMOVE'}, {'PAGE' | 'SINGLEPAGE' | 'EXTENT' | 'MIXEDEXTENT'}, filenum, pagenum [, objectid, indid])</p>
<p>DBCC flush (&#8216;data&#8217; | &#8216;log&#8217;, dbid)</p>
<p>DBCC flushprocindb (database)</p>
<p>DBCC free dll_name (FREE)</p>
<p>DBCC freeproccache</p>
<p>DBCC freeze_io (db)</p>
<p>DBCC getvalue (name)</p>
<p>DBCC help (&#8216;dbcc_command&#8217; | &#8216;?&#8217;)</p>
<p>DBCC icecapquery (&#8216;dbname&#8217;, stored_proc_name [, #_times_to_icecap&nbsp; (-1 infinite, 0 turns off)]) Use &#8216;dbcc icecapquery (printlist)&#8217; to see list of SP&#8217;s to profile. Use &#8216;dbcc icecapquery (icecapall)&#8217; to profile all SP&#8217;s.</p>
<p>DBCC incrementinstance (objectname, countername, instancename, value)</p>
<p>DBCC ind ( { &#8216;dbname&#8217; | dbid }, { &#8216;objname&#8217; | objid }, { indid | 0 | -1 | -2 } )</p>
<p>DBCC indexdefrag ({dbid | dbname | 0}, {tableid | tablename}, {indid | indname})</p>
<p>DBCC inputbuffer (spid)</p>
<p>DBCC invalidate_textptr (textptr)</p>
<p>DBCC invalidate_textptr_objid (objid)</p>
<p>DBCC iotrace ( { &#8216;dbname&#8217; | dbid | 0 | -1 }, { fileid | 0 }, bufsize, [ { numIOs | -1 } [, { timeout (sec) | -1 } [, printopt={ 0 | 1 }]]] )</p>
<p>DBCC latch ( address [, 'owners'] [, 'stackdumps'])</p>
<p>DBCC lock ([{'DUMPTABLE' | 'DUMPSTATS' | 'RESETSTATS' | 'HASH'}]|[{'STALLREPORTTHESHOLD', stallthreshold}])</p>
<p>DBCC lockobjectschema (&#8216;object_name&#8217;)</p>
<p>DBCC log ([dbid[,{0|1|2|3|4}[,['lsn','[0x]x:y:z&#8217;]|['numrecs',num]|['xdesid','x:y']|['extent','x:y']|['pageid','x:y']|['objid',{x,'y'}]|['logrecs',{'lop'|op}...]|['output',x,['filename','x']]&#8230;]]])</p>
<p>DBCC loginfo [({'database_name' | dbid})]</p>
<p>DBCC matview ({&#8216;PERSIST&#8217; | &#8216;ENDPERSIST&#8217; | &#8216;FREE&#8217; | &#8216;USE&#8217; | &#8216;ENDUSE&#8217;})</p>
<p>DBCC memobjlist [(memory object)]</p>
<p>DBCC memorymap</p>
<p>DBCC memorystatus</p>
<p>DBCC memospy</p>
<p>DBCC memusage ([IDS | NAMES], [Number of rows to output])</p>
<p>DBCC monitorevents (&#8216;sink&#8217; [, 'filter-expression'])</p>
<p>DBCC newalloc &#8211; please use checkalloc instead</p>
<p>DBCC no_textptr (table_id , max_inline)</p>
<p>DBCC opentran [({'dbname'| dbid})] [WITH TABLERESULTS[,NO_INFOMSGS]]</p>
<p>DBCC outputbuffer (spid)</p>
<p>DBCC page ( {&#8216;dbname&#8217; | dbid}, filenum, pagenum [, printopt={0|1|2|3} ][, cache={0|1} ])</p>
<p>DBCC perflog</p>
<p>DBCC perfmon</p>
<p>DBCC pglinkage (dbid, startfile, startpg, number, printopt={0|1|2}, targetfile, targetpg, order={1|0})</p>
<p>DBCC pintable (database_id, table_id)</p>
<p>DBCC procbuf [({'dbname' | dbid}[, {'objname' | objid}[, nbufs[, printopt = { 0 | 1 } ]]] )]</p>
<p>DBCC proccache</p>
<p>DBCC prtipage (dbid, objid, indexid [, [{{level, 0} | {filenum, pagenum}}] [,printopt]])</p>
<p>DBCC pss [(uid[, spid[, printopt = { 1 | 0 }]] )]</p>
<p>DBCC readpage ({ dbid, &#8216;dbname&#8217; }, fileid, pageid, formatstr [, printopt = { 0 | 1} ])</p>
<p>DBCC rebuild_log (dbname [, filename])</p>
<p>DBCC renamecolumn (object_name, old_name, new_name)</p>
<p>DBCC resource</p>
<p>DBCC row_lock (dbid, tableid, set) &#8211; Not Needed</p>
<p>DBCC ruleoff ({ rulenum | rulestring } [, { rulenum | rulestring } ]+)</p>
<p>DBCC ruleon (&nbsp; rulenum | rulestring } [, { rulenum | rulestring } ]+)</p>
<p>DBCC setcpuweight (weight)</p>
<p>DBCC setinstance (objectname, countername, instancename, value)</p>
<p>DBCC setioweight (weight)</p>
<p>DBCC show_statistics (&#8216;table_name&#8217;, &#8216;target_name&#8217;)</p>
<p>DBCC showcontig (table_id | table_name [, index_id | index_name] [WITH FAST, ALL_INDEXES, TABLERESULTS [,ALL_LEVELS]])</p>
<p>DBCC showdbaffinity</p>
<p>DBCC showfilestats [(file_num)]</p>
<p>DBCC showoffrules</p>
<p>DBCC showonrules</p>
<p>DBCC showtableaffinity (table)</p>
<p>DBCC showtext (&#8216;dbname&#8217;, {textpointer | {fileid, pageid, slotid [,option]}})</p>
<p>DBCC showweights</p>
<p>DBCC shrinkdatabase ({dbid | &#8216;dbname&#8217;}, [freespace_percentage [, {NOTRUNCATE | TRUNCATEONLY}]])</p>
<p>DBCC shrinkdb&nbsp; is no longer supported. Please use shrinkdatabase instead</p>
<p>DBCC shrinkfile ({fileid | &#8216;filename&#8217;}, [compress_size [, {NOTRUNCATE | TRUNCATEONLY | EMPTYFILE}]])</p>
<p>DBCC sqlmgrstats</p>
<p>DBCC sqlperf (LOGSPACE)({IOSTATS | LRUSTATS | NETSTATS | RASTATS [, CLEAR]} | {THREADS} | {LOGSPACE})</p>
<p>DBCC stackdump [( {uid[, spid[, ecid]} | {threadId, &#8216;THREADID&#8217;}] )]</p>
<p>DBCC tab ( dbid, objid )</p>
<p>DBCC tape_control {&#8216;query&#8217; | &#8216;release&#8217;}[,('\\.\tape&lt;n&gt;')]</p>
<p>DBCC tec [( uid[, spid[, ecid]] )]</p>
<p>DBCC textall [({'database_name'|database_id}[, 'FULL' | FAST] )]</p>
<p>DBCC textalloc ({&#8216;table_name&#8217;|table_id}[, 'FULL' | FAST])</p>
<p>DBCC thaw_io (db)</p>
<p>DBCC traceoff [( tracenum [, tracenum ... ] )]</p>
<p>DBCC traceon [( tracenum [, tracenum ... ] )]</p>
<p>DBCC tracestatus (trace# [, ...trace#])</p>
<p>DBCC unpintable (dbid, table_id)</p>
<p>DBCC updateusage ({&#8216;database_name&#8217;| 0} [, 'table_name' [, index_id]]) [WITH [NO_INFOMSGS] [,] COUNT_ROWS]</p>
<p>DBCC upgradedb (db)</p>
<p>DBCC usagegovernor (command, value)</p>
<p>DBCC useplan [(number_of_plan)]</p>
<p>DBCC useroptions</p>
<p>DBCC wakeup (spid)</p>
<p>DBCC writepage ({ dbid, &#8216;dbname&#8217; }, fileid, pageid, offset, length, data)</p>
]]></content:encoded>
			<wfw:commentRss>http://sqlknowledge.com/2010/03/list-of-undocumented-dbcc-command/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

