<?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:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Journey to SQL Authority with Pinal Dave</title>
	<atom:link href="http://blog.sqlauthority.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com</link>
	<description>Notes of a SQL Server MVP and Database Administrator</description>
	<lastBuildDate>Sat, 04 Jul 2009 03:23:17 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<image>
		<url>http://www.gravatar.com/blavatar/08e35387c05b61340e885b1763a69d9f?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Journey to SQL Authority with Pinal Dave</title>
		<link>http://blog.sqlauthority.com</link>
	</image>
			<item>
		<title>SQL SERVER &#8211; Disk Partition Alignment Best Practices</title>
		<link>http://blog.sqlauthority.com/2009/07/04/sql-server-disk-partition-alignment-best-practices/</link>
		<comments>http://blog.sqlauthority.com/2009/07/04/sql-server-disk-partition-alignment-best-practices/#comments</comments>
		<pubDate>Sat, 04 Jul 2009 01:30:57 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Documentation]]></category>
		<category><![CDATA[SQL Download]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[SQL White Papers]]></category>
		<category><![CDATA[SQLAuthority News]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5809</guid>
		<description><![CDATA[Disk partition alignment is a powerful tool for improving SQL Server performance. Configuring optimal disk performance is often viewed as much art as science. A best practice that is essential yet often overlooked is disk partition alignment. Windows Server 2008 attempts to align new partitions out-of-the-box, yet disk partition alignment remains a relevant technology for [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=5809&subd=sqlauthority&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="text-align:justify;"><span>Disk partition alignment is a powerful tool for improving SQL Server performance. Configuring optimal disk performance is often viewed as much art as science. A best practice that is essential yet often overlooked is disk partition alignment. Windows Server 2008 attempts to align new partitions out-of-the-box, yet disk partition alignment remains a relevant technology for partitions created on prior versions of Windows. This paper documents performance for aligned and nonaligned storage and why nonaligned partitions can negatively impact I/O performance; it explains disk partition alignment for storage configured on Windows Server 2003, including analysis, diagnosis, and remediation; and it describes how Windows Server 2008 attempts to remedy challenges related to partition alignment for new partitions yet does not correct the configuration of preexisting partitions. The following topics are also included: background information, implementation, vendor considerations, two essential correlations, valid starting partition offsets, and the simple protocol to align partitions, define file allocation unit size, and assign drive letters. It includes results from tests that show how partition alignment can affect performance for SQL Server 2008. </span></p>
<h3 style="text-align:justify;"><a href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;FamilyID=5b343389-f7c9-43d0-9892-ddcf55890529" target="_blank"><span>Download </span>Disk Partition Alignment Best Practices for SQL Server</a></h3>
<p style="text-align:justify;">Reference : <strong>Pinal Dave (</strong><a href="http://blog.sqlauthority.com/" target="_blank"><strong>http://blog.SQLAuthority.com</strong></a><strong>)</strong></p>
Posted in SQL, SQL Authority, SQL Documentation, SQL Download, SQL Query, SQL Server, SQL Tips and Tricks, SQL White Papers, SQLAuthority News, T SQL, Technology  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/5809/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/5809/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/5809/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/5809/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/5809/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/5809/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/5809/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/5809/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/5809/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/5809/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=5809&subd=sqlauthority&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2009/07/04/sql-server-disk-partition-alignment-best-practices/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>
	</item>
		<item>
		<title>SQLAuthority News &#8211; Book Review &#8211; The Rational Guide to Building Technical User Communities (Rational Guides)</title>
		<link>http://blog.sqlauthority.com/2009/07/03/sqlauthority-news-book-review-the-rational-guide-to-building-technical-user-communities-rational-guides/</link>
		<comments>http://blog.sqlauthority.com/2009/07/03/sqlauthority-news-book-review-the-rational-guide-to-building-technical-user-communities-rational-guides/#comments</comments>
		<pubDate>Fri, 03 Jul 2009 01:30:14 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[SQL User Group]]></category>
		<category><![CDATA[SQLAuthority Book Review]]></category>
		<category><![CDATA[SQLAuthority News]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5779</guid>
		<description><![CDATA[The Rational Guide to Building Technical User Communities (Rational Guides) (Paperback)
by Greg Low 

Short Review : A Great, one-of-its-kind book for everybody who is interested in building technical user community. There is no other book written on this subject but after this comprehensive book no further reading will be required.

Link to Amazon
Detailed Review :
This is [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=5779&subd=sqlauthority&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="text-align:justify;"><strong>The Rational Guide to Building Technical User Communities (Rational Guides) (Paperback)<br />
by Greg Low </strong>
</p>
<p style="text-align:justify;"><strong>Short Review :</strong> A Great, one-of-its-kind book for everybody who is interested in building technical user community. There is no other book written on this subject but after this comprehensive book no further reading will be required.</p>
<p style="text-align:justify;"><img class="alignnone" src="http://www.pinaldave.com/bimg/ralbook.jpg" alt="" width="185" height="277" /></p>
<p style="text-align:justify;"><strong><a href="http://www.amazon.com/dp/1932577327" target="_blank">Link to Amazon</a></strong></p>
<p style="text-align:justify;"><strong>Detailed Review :</strong></p>
<p style="text-align:justify;">This is for the first time in my book review, instead of talking about the book or author, I will introduce myself in a couple of lines to explain why and how this book is helpful to those interested in building community. I am a Microsoft MVP and the founder of SQLAuthority.com. I am actively involved with Technical User Group Community  all over the world and have been helping many user groups to start, grow and continuously expand successfully. I am helping user groups in capacity of their mentor to overcome any obstacles they face while running the user group.</p>
<p style="text-align:justify;">Author <strong>Greg Low</strong> is the most experienced person when it comes to community and people. He is a Microsoft Regional Director as well as mentor for Solid Quality Australia. For over a decade, he organized several <strong>Queensland User Groups</strong>. Greg is looked upon for guidance when User Groups are in need of the most appropriate advice. He is a very renowned person in technical community and does not need any further introduction.</p>
<p style="text-align:justify;">This book focuses on the most important lessons learned by Greg over decades of involvement in technical communities. It provides practical advice on establishing, sustaining and growing these communities. This books is focused on helping user group leaders to deal with any potential pitfalls and contains workaround as well. The book is not limited to only user group leaders. In fact, this book is for everybody who is interested in community. If you are already a member of a community, this book is a perfect guide to help you get the most out of your membership.</p>
<p style="text-align:justify;">The first chapter, which is appropriately named as &#8211; &#8220;<strong>People, Not Technology,</strong>&#8221; sets the pace and keeps up the concept live till the end of the book. In community, staying in focus is very important for people as everything revolves around it. No matter how knowledgeable  or renowned a person is in the domain of technology, if he is not a people&#8217;s person, he cannot become an integral part of community and can never grow. For any technology to survive, support from people is required. Community provides combined power of people to lend strong support to community.Throughout the book, this key concept is cherished and explored.</p>
<p style="text-align:justify;">Greg talks about two very important challenges for any technical community. <strong>1) Finding Speaker and 2) Finding Operational Funds</strong>. If these two things are done appropriately the heart of any community, which is &#8220;Finding People,&#8221; comes to shape on its own. I run few User Groups and they are growing tremendously. Recently, we have been discussing about lots of legal issues. That was the prime reason why I chose to read this book. After reading this book through and through, I presented the valuable ideas from this book to my fellow leaders , and we all agreed on them right away. The rich experience that Greg  shares with his readers can effectively  solve their problems. Because of this book, we were no longer required to spend money on lawyer and instead we will now divert that fund toward our scholarship program.</p>
<p style="text-align:justify;">Each chapter of this book is build to stand alone and it covers the subject with sufficient breadth. I really liked the real-life examples from Greg, where he talks about his friends, fellow MVPs, SQL Server Groups Leaders and other important people of community. As each chapter is written to have independent read, same topics have been covered  twice. But what I liked about it is that same subject conveys different meaning when it is presented in a different consent. This particular aspect of the book, makes it a genuine must-read book.</p>
<p style="text-align:justify;">One negative aspect of this book is that a very important checklist of the book is only given to those who will register online. If you have a friend who owns this book and has already  registered online, you can ask that friend to pass this important stuff to you. One more thing, I would like to request Greg to include his latest learning from  his experience as a <strong>Global Community Development of PASS</strong>, in the next version of his book. I am sure that more information about international technical user groups can be now included.</p>
<p style="text-align:justify;"><strong>Rating : 5 Stars</strong></p>
<p style="text-align:justify;"><strong>Summary :</strong> A must-have book for everybody who is involved with technical community in any capacity. This is a unique book on this subject.</p>
<p style="text-align:justify;"><strong>PS :</strong> I read this book while I was traveling from Kerala to Gujarat after attending a TechEd Event.</p>
<p style="text-align:justify;"><img class="alignnone" src="http://www.pinaldave.com/bimg/ralbook2.jpg" alt="" width="500" height="375" /></p>
<p style="text-align:justify;">Reference : <strong>Pinal Dave (</strong><a href="http://blog.sqlauthority.com/" target="_blank"><strong>http://blog.SQLAuthority.com</strong></a><strong>)</strong></p>
Posted in Pinal Dave, SQL, SQL Authority, SQL Query, SQL Server, SQL Tips and Tricks, SQL User Group, SQLAuthority Book Review, SQLAuthority News, T SQL, Technology  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/5779/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/5779/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/5779/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/5779/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/5779/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/5779/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/5779/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/5779/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/5779/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/5779/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=5779&subd=sqlauthority&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2009/07/03/sqlauthority-news-book-review-the-rational-guide-to-building-technical-user-communities-rational-guides/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>

		<media:content url="http://www.pinaldave.com/bimg/ralbook.jpg" medium="image" />

		<media:content url="http://www.pinaldave.com/bimg/ralbook2.jpg" medium="image" />
	</item>
		<item>
		<title>SQLAuthority News &#8211; MVP Award Renewed</title>
		<link>http://blog.sqlauthority.com/2009/07/02/sqlauthority-news-mvp-award-renewed/</link>
		<comments>http://blog.sqlauthority.com/2009/07/02/sqlauthority-news-mvp-award-renewed/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 01:30:03 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[About Me]]></category>
		<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[SQLAuthority News]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5793</guid>
		<description><![CDATA[Year ago, it was a great, perhaps the proudest moment of my professional life. I was awarded Most Valuable Professional (MVP) for SQL Server by Microsoft.
Today, I received an email informing me that I have been re-awarded SQL Server MVP status by Microsoft in recognition of my community contributions. It’s yet another proud moment for [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=5793&subd=sqlauthority&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="text-align:justify;"><a href="http://blog.sqlauthority.com/2008/07/01/sqlauthority-news-microsoft-most-valuable-professional-award-for-sql-server-mvp/" target="_blank">Year ago</a>, it was a great, perhaps the proudest moment of my professional life. I was awarded Most Valuable Professional (MVP) for SQL Server by Microsoft.</p>
<p style="text-align:justify;">Today, I received an email informing me that I have been re-awarded SQL Server MVP status by Microsoft in recognition of my community contributions. It’s yet another proud moment for me. I’m very happy and excited that my hard work is being recognized.  I hope to work even harder and serve my community better!</p>
<p style="text-align:justify;"><strong>Microsoft Thank You!</strong> There’s a huge list of people I would like to thank for this award. However, instead of listing their names here, I will be sending personal note to them to express my thanks.</p>
<p style="text-align:justify;"><img class="alignleft" style="margin:0 5px;" src="http://www.pinaldave.com/images/MVP.jpg" alt="" width="141" height="57" /><strong>Pinal Dave </strong><br />
SQL SERVER MVP<br />
pinal &#8220;at&#8221; sqlauthority.com
</p>
<p style="text-align:justify;">Please feel free to contact me for any help.</p>
<p style="text-align:justify;"><img class="alignnone" src="http://www.pinaldave.com/bimg/pinaldave-mvp.JPG" alt="" width="500" height="375" /></p>
<p style="text-align:justify;">Reference : <strong>Pinal Dave (<a href="http://blog.sqlauthority.com/" target="_blank">http://blog.SQLAuthority.com</a>)</strong></p>
Posted in About Me, Pinal Dave, SQL, SQL Authority, SQL Query, SQL Server, SQL Tips and Tricks, SQLAuthority News, T SQL, Technology  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/5793/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/5793/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/5793/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/5793/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/5793/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/5793/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/5793/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/5793/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/5793/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/5793/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=5793&subd=sqlauthority&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2009/07/02/sqlauthority-news-mvp-award-renewed/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>

		<media:content url="http://www.pinaldave.com/images/MVP.jpg" medium="image" />

		<media:content url="http://www.pinaldave.com/bimg/pinaldave-mvp.JPG" medium="image" />
	</item>
		<item>
		<title>SQL SERVER &#8211; Difference between Line Feed (\n) and Carriage Return (\r) &#8211; T-SQL New Line Char</title>
		<link>http://blog.sqlauthority.com/2009/07/01/sql-server-difference-between-line-feed-n-and-carriage-return-r-t-sql-new-line-char/</link>
		<comments>http://blog.sqlauthority.com/2009/07/01/sql-server-difference-between-line-feed-n-and-carriage-return-r-t-sql-new-line-char/#comments</comments>
		<pubDate>Wed, 01 Jul 2009 01:30:11 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Scripts]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[SQL Utility]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5775</guid>
		<description><![CDATA[Today, we will examine something very simple and very generic that can apply to hordes of programming languages. Let’s take a common question that is frequently discussed &#8211; What is difference between Line Feed (\n) and Carriage Return (\r)?
Prior to continuing with this article let us first look into few synonyms for LF and CR.
Line [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=5775&subd=sqlauthority&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="text-align:justify;">Today, we will examine something very simple and very generic that can apply to hordes of programming languages. Let’s take a common question that is frequently discussed &#8211; <strong>What is difference between Line Feed (\n) and Carriage Return (\r)?</strong></p>
<p style="text-align:justify;">Prior to continuing with this article let us first look into few synonyms for LF and CR.</p>
<p style="text-align:justify;">Line Feed &#8211; LF &#8211; \n &#8211; 0&#215;0a &#8211; 10 (decimal)</p>
<p style="text-align:justify;">Carriage Return &#8211; CR &#8211; \r &#8211; 0&#215;0D &#8211; 13 (decimal)</p>
<p style="text-align:justify;">Now that we have understood that we have two different options to get new line, the question that arises is &#8211; why is it so?</p>
<p style="text-align:justify;">The reason is simple. Different operating systems have a different way of understanding new line. Mac only understands &#8216;\r&#8217; as new line, while Unix and Linux understand &#8216;\n&#8217; as new line character. Our favorite OS windows needs both the characters together to interpret as new line, which is &#8216;\r\n&#8217;. This is the reason why a file created in one OS does not open properly in another OS and makes it messy.</p>
<p style="text-align:justify;">Now, let us see how we can create a new line in SQL Server. It is a very simple script yet very useful when we have to do run print something or generate scripts. I have illustrated two examples below that are very easy to understand. In the first example, there are no new line chars inserted and for the same, everything is displayed in a single line. However, in the second example, new line char is inserted and the lines are separated with a new line.</p>
<p style="text-align:justify;"><strong>Example 1: No new line feed char</strong></p>
<p style="text-align:justify;"><code style="font-size:12px;"><span style="color:blue;">DECLARE </span><span style="color:#434343;">@NewLineChar </span><span style="color:blue;">AS CHAR</span><span style="color:gray;">(</span><span style="color:black;">2</span><span style="color:gray;">) </span><span style="color:blue;">= CHAR</span><span style="color:gray;">(</span><span style="color:black;">13</span><span style="color:gray;">) + </span><span style="color:blue;">CHAR</span><span style="color:gray;">(</span><span style="color:black;">10</span><span style="color:gray;">)<br />
</span><span style="color:blue;">PRINT </span><span style="color:gray;">(</span><span style="color:red;">'SELECT FirstLine AS FL SELECT SecondLine AS SL' </span><span style="color:gray;">)<br />
</span><span style="color:black;">GO</span></code></p>
<p style="text-align:justify;"><span style="color:black;"><img class="alignnone" src="http://www.pinaldave.com/bimg/lf1.png" alt="" width="494" height="144" /><br />
</span>
</p>
<p style="text-align:justify;"><strong>Example 2: With new line feed char</strong></p>
<p style="text-align:left;"><code style="font-size:12px;"><span style="color:blue;">DECLARE </span><span style="color:#434343;">@NewLineChar </span><span style="color:blue;">AS CHAR</span><span style="color:gray;">(</span><span style="color:black;">2</span><span style="color:gray;">) </span><span style="color:blue;">= CHAR</span><span style="color:gray;">(</span><span style="color:black;">13</span><span style="color:gray;">) + </span><span style="color:blue;">CHAR</span><span style="color:gray;">(</span><span style="color:black;">10</span><span style="color:gray;">)<br />
</span><span style="color:blue;">PRINT </span><span style="color:gray;">(</span><span style="color:red;">'SELECT FirstLine AS FL ' </span><span style="color:gray;">+</span><span style="color:#434343;">@NewLineChar </span><span style="color:gray;">+ </span><span style="color:red;">'SELECT SecondLine AS SL' </span><span style="color:gray;">)<br />
</span><span style="color:black;">GO<br />
</span></code>
</p>
<p style="text-align:justify;"><img class="alignnone" src="http://www.pinaldave.com/bimg/lf2.png" alt="" width="476" height="174" /></p>
<p style="text-align:justify;">I hope my examples make things more clear to you all. Let me have your feedback on this article.</p>
<p style="text-align:justify;">Reference : <strong>Pinal Dave (<a href="http://blog.sqlauthority.com/" target="_blank">http://blog.SQLAuthority.com</a>)</strong></p>
Posted in Pinal Dave, SQL, SQL Authority, SQL Query, SQL Scripts, SQL Server, SQL Tips and Tricks, SQL Utility, T SQL, Technology  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/5775/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/5775/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/5775/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/5775/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/5775/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/5775/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/5775/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/5775/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/5775/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/5775/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=5775&subd=sqlauthority&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2009/07/01/sql-server-difference-between-line-feed-n-and-carriage-return-r-t-sql-new-line-char/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>

		<media:content url="http://www.pinaldave.com/bimg/lf1.png" medium="image" />

		<media:content url="http://www.pinaldave.com/bimg/lf2.png" medium="image" />
	</item>
		<item>
		<title>SQL SERVER &#8211; 2008 &#8211; Policy-Based Management &#8211; Create, Evaluate and Fix Policies</title>
		<link>http://blog.sqlauthority.com/2009/06/30/sql-server-2008-policy-based-management-create-evaluate-and-fix-policies/</link>
		<comments>http://blog.sqlauthority.com/2009/06/30/sql-server-2008-policy-based-management-create-evaluate-and-fix-policies/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 01:30:44 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Scripts]]></category>
		<category><![CDATA[SQL Security]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Policy Management]]></category>

		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5771</guid>
		<description><![CDATA[This article will cover the most spectacular feature of SQL 2008 &#8211; Policy-based management and how the configuration of SQL Server with policy-based management architecture can make a powerful difference. Policy based management is loaded with several advantages. It can help you implement various policies for reliable configuration of the system. It also provides additional [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=5771&subd=sqlauthority&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="text-align:justify;">This article will cover the most spectacular feature of SQL 2008 &#8211; Policy-based management and how the configuration of SQL Server with policy-based management architecture can make a powerful difference. Policy based management is loaded with several advantages. It can help you implement various policies for reliable configuration of the system. It also provides additional administration assistance to DBAs and helps them effortlessly manage various tasks of SQL Server across the enterprise.</p>
<p style="text-align:justify;">1 Introduction<br />
2 Basics of Policy Management<br />
3 Policy Management Terms<br />
4 Practical Example of Policy Management<br />
4.1 Exploring of Facets<br />
4.2 Create a Condition<br />
4.3 Create a Policy<br />
4.4 Evaluate a Policy<br />
4.5 Fix Non-complying Policy<br />
5 Summary</p>
<h3 style="text-align:justify;"><a href="http://dotnetslackers.com/articles/sql/Policy-Based-Management-Create-Evaluate-and-Fix-Policies.aspx" target="_blank">Read complete article here.</a></h3>
</p>
<p style="text-align:justify;">Reference : <strong>Pinal Dave (<a href="http://blog.sqlauthority.com/" target="_blank">http://blog.SQLAuthority.com</a>)</strong></p>
Posted in Pinal Dave, SQL, SQL Authority, SQL Query, SQL Scripts, SQL Security, SQL Server, SQL Tips and Tricks, T SQL, Technology Tagged: Policy Management <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/5771/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/5771/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/5771/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/5771/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/5771/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/5771/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/5771/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/5771/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/5771/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/5771/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=5771&subd=sqlauthority&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2009/06/30/sql-server-2008-policy-based-management-create-evaluate-and-fix-policies/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL SERVER &#8211; Maximum Number of Index per Table</title>
		<link>http://blog.sqlauthority.com/2009/06/29/sql-server-maximum-number-of-index-per-table/</link>
		<comments>http://blog.sqlauthority.com/2009/06/29/sql-server-maximum-number-of-index-per-table/#comments</comments>
		<pubDate>Mon, 29 Jun 2009 01:30:05 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[Readers Contribution]]></category>
		<category><![CDATA[Readers Question]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Index]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5733</guid>
		<description><![CDATA[TechEd on Road Ahmedabad, June 20, 2009, was a huge success. This grand event saw over 200 attendees actively participating in the sessions. We had attendees traveling from far and wide, including Delhi, Mumbai, Jaipur, Kerala, Baroda, Himmatnagar, Rajkot, among other cities from India. This enthusiastic participation made the event truly grand. It was a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=5733&subd=sqlauthority&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="text-align:justify;"><strong><a href="http://blog.sqlauthority.com/2009/06/22/sqlauthority-news-teched-on-road-ahmedabad-june-20-2009-an-astounding-success/" target="_blank">TechEd on Road Ahmedabad</a></strong>, June 20, 2009, was a huge success. This grand event saw over 200 attendees actively participating in the sessions. We had attendees traveling from far and wide, including Delhi, Mumbai, Jaipur, Kerala, Baroda, Himmatnagar, Rajkot, among other cities from India. This enthusiastic participation made the event truly grand. It was a moment of bliss for me as I had not anticipated such tremendous positive response!</p>
<p style="text-align:justify;">Although the Official time to commence the event was at 1:45 PM we were really excited to see the attendees entering the hall before the official time. We were more than happy to quickly arrange a special session for those attendees who came in early to keep them engaged. They won loads of gifts while waiting for the official sessions to start. We had a brainstorming quiz session. I was happy to see that people in Ahmedabad are now taking keen interest in enhancing their knowledge.</p>
<p style="text-align:justify;">One of the questions was &#8211; <strong>What is the maximum number of Index per table? </strong>I received lots of answers to this question but only two answers are correct. Let us now take a look at them.</p>
<p style="text-align:justify;"><strong>For SQL Server 2005:</strong><br />
1 Clustered Index + 249 Nonclustered Index = 250 Index<br />
<a href="http://msdn.microsoft.com/en-us/library/ms143432(SQL.90).aspx" target="_blank">http://msdn.microsoft.com/en-us/library/ms143432(SQL.90).aspx</a></p>
<p style="text-align:justify;"><strong>For SQL Server 2008:</strong><br />
1 Clustered Index + 999 Nonclustered Index = 1000 Index<br />
<a href="http://msdn.microsoft.com/en-us/library/ms143432.aspx" target="_blank">http://msdn.microsoft.com/en-us/library/ms143432.aspx</a>
</p>
<p style="text-align:justify;">I would like to thank one of the attendees of Ahmedabad TechEd Kruti Kansara for the above comment.</p>
<p style="text-align:justify;">Reference : <strong>Pinal Dave (<a href="http://blog.sqlauthority.com/" target="_blank">http://blog.SQLAuthority.com</a>)</strong></p>
Posted in Pinal Dave, Readers Contribution, Readers Question, SQL, SQL Authority, SQL Index, SQL Query, SQL Server, SQL Tips and Tricks, T SQL, Technology  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/5733/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/5733/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/5733/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/5733/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/5733/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/5733/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/5733/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/5733/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/5733/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/5733/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=5733&subd=sqlauthority&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2009/06/29/sql-server-maximum-number-of-index-per-table/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL SERVER &#8211; 2008 &#8211; Management Studio New Features</title>
		<link>http://blog.sqlauthority.com/2009/06/28/sql-server-2008-management-studio-new-features-2/</link>
		<comments>http://blog.sqlauthority.com/2009/06/28/sql-server-2008-management-studio-new-features-2/#comments</comments>
		<pubDate>Sun, 28 Jun 2009 01:30:57 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Scripts]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server Management Studio]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5706</guid>
		<description><![CDATA[This article describes the top 5 features of SQL Server Management Studio 2008. With the release of SQL Server 2008 Microsoft has upgraded SSMS with many new features as well as added tons of new functionalities requested by DBAs for long time.
SQL Server 2008 has been released for a year now. In SQL Server 2000, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=5706&subd=sqlauthority&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="text-align:justify;">This article describes the top 5 features of SQL Server Management Studio 2008. With the release of SQL Server 2008 Microsoft has upgraded SSMS with many new features as well as added tons of new functionalities requested by DBAs for long time.</p>
<p style="text-align:justify;">SQL Server 2008 has been released for a year now. In SQL Server 2000, DBA had to use two different tools to maintain the database as well as the query database, specifically SQL Server Enterprise Manager and SQL Server Query Analyzer. With the release of SQL Server 2005 both of these tools are combined into one tool: SQL Server Management Studio. For a while DBA who were fan of Query Analyzer requested to bring it back but as they keep on using SQL Server Management Studio (SSMS) they realized that it was much more convenient if every task related to SQL Server could be accomplished using SSMS. With the release of SQL Server 2008 Microsoft has upgraded SSMS with many new features as well as added tons of new functionalities requested by DBAs for long time.</p>
<p style="text-align:justify;">Let us go over a few of the important new features of the SSMS 2008. The list of SQL Server 2008 SSMS improvements is very long. I have selected my favorite 5 features and we will go over them.</p>
<ol style="text-align:justify;">
<li>IntelliSense for Query Editing</li>
<li>Multi Server Query</li>
<li>Query Editor Regions</li>
<li>Object Explorer Enhancements</li>
<li>Activity Monitors</li>
</ol>
<h3 style="text-align:justify;">IntelliSense for Query Editing</h3>
<p style="text-align:justify;">This is my favorite feature so far. If you have used Visual Studio before, this feature may not be new to you. Implementation of IntelliSense is not as advanced as in Visual Studio but it is still very useful and well implemented.</p>
<p style="text-align:justify;"><img src="http://www.pinaldave.com/bimg/sql-features-1.jpg" alt="" width="354" height="264" /></p>
<p style="text-align:justify;">After implementing IntelliSense, DBAs and developers will not have to remember all the syntax or browse online references. IntelliSense offers a few additional features besides just completing the world. You can see those option from SSMS Menu &gt;&gt; Edit &gt;&gt; IntelliSense &gt;&gt; (See the available options)</p>
<p style="text-align:justify;"><img src="http://www.pinaldave.com/bimg/sql-features-2.jpg" alt="" width="463" height="456" /></p>
<p style="text-align:justify;">There are a total of five options available in Edit Menu. I suggest to experiment with all of them while playing with IntelliSense.</p>
<ol style="text-align:justify;">
<li>List Members</li>
<li>Parameter Info</li>
<li>Quick Info</li>
<li>Complete Word</li>
<li>Refresh Local Cache</li>
</ol>
<p style="text-align:justify;">If your IntelliSense does not bring up recently created objects, try “Refresh Local Cache” as described above, or press CTRL + SHIFT + R.</p>
<p style="text-align:justify;">IntelliSense is a new feature and it will take some time to get adjusted to it. If any developer does not like this option, it can be turned off from Menu &gt;&gt; Query &gt;&gt; (deselect) Enable IntelliSense.</p>
<h3 style="text-align:justify;"><strong>MultiServer Query</strong></h3>
<p style="text-align:justify;">Usually DBA don’t manage only one database; they have many servers to manage. There are cases when DBA has to check the status of all the servers. I have seen one of the DBA who used to manage 400 servers, writing query using XML_CMDSHELL where he wanted to find out what the status of fullback up on all the servers was. In one of the recent consultancy job, when I had to find out if all the three servers were upgraded with Services Packs (SP), I ran a query to find version information on all the three instance separately in three windows.</p>
<p style="text-align:justify;">SSMS 2008 has a feature to run a query on different servers from one query editor window. First of all make sure that you registered all the servers under your registered server. Once they are registered Right Click on server group name and click New Query as shown in the image below.</p>
<p style="text-align:justify;"><img src="http://www.pinaldave.com/bimg/sql-features-3.jpg" alt="" /></p>
<p style="text-align:justify;">Now in the opened query window run the following query (you can find it in the sample code for this article):</p>
<p style="text-align:justify;"><code style="font-size:12px;"><span style="color:blue;">SELECT<br />
</span><span style="color:magenta;">SERVERPROPERTY</span><span style="color:gray;">(</span><span style="color:red;">'Edition'</span><span style="color:gray;">) </span><span style="color:blue;">AS </span><span style="color:black;">Edition</span><span style="color:gray;">,<br />
</span><span style="color:magenta;">SERVERPROPERTY</span><span style="color:gray;">(</span><span style="color:red;">'ProductLevel'</span><span style="color:gray;">) </span><span style="color:blue;">AS </span><span style="color:black;">ProductLevel</span><span style="color:gray;">,<br />
</span><span style="color:magenta;">SERVERPROPERTY</span><span style="color:gray;">(</span><span style="color:red;">'ProductVersion'</span><span style="color:gray;">) </span><span style="color:blue;">AS </span><span style="color:black;">ProductVersion</span></code>
</p>
<p style="text-align:justify;">Query above will give the result shown in the image below. Note that we have only three columns in the SELECT but our output contains four columns. The very first column is the “Server Name” and it is added by SQL Server to indentify rows belonging to a specific server.</p>
<p style="text-align:justify;"><img src="http://www.pinaldave.com/bimg/sql-features-4.jpg" alt="" /></p>
<p style="text-align:justify;">If all of the above servers are registered with “central server” &#8211; the option which is right below it, other administrators can also register to those entire servers by simple registering one central server.</p>
<h3 style="text-align:justify;"><strong>Query Editor Regions</strong></h3>
<p style="text-align:justify;">This feature exists in many programming languages already but now it is newly introduced in SSMS 2008. The reason I am highlighting this feature is because there are cases when T-SQL code is longer than hundreds of lines and after a while it keeps on getting confusing.</p>
<p style="text-align:justify;">The regions are defined by the following hierarchy:</p>
<ol style="text-align:justify;">
<li>From first GO command to next GO command.</li>
<li>Statements between BEGIN – END, BEGIN TRY – END TRY, BEGIN CATCH – END CATCH</li>
<li>Multiline statements</li>
</ol>
<p style="text-align:justify;">In the following code snippet I have reported an example which has five coding regions (you can find it in the sample code for this article). I have made small comment besides them describing their region type.</p>
<p style="text-align:justify;"><code style="font-size:12px;"><span style="color:blue;">CREATE PROCEDURE </span><span style="color:black;">MyTest </span><span style="color:green;">-- Region Type 1<br />
</span><span style="color:blue;">AS<br />
BEGIN </span><span style="color:green;">-- Region Type 2<br />
</span><span style="color:blue;">SELECT </span><span style="color:black;">1<br />
</span><span style="color:blue;">BEGIN </span><span style="color:green;">-- Region Type 2<br />
</span><span style="color:blue;">SELECT </span><span style="color:black;">2</span><span style="color:gray;">;<br />
</span><span style="color:blue;">SELECT </span><span style="color:gray;">* </span><span style="color:green;">-- Region Type 3<br />
</span><span style="color:blue;">FROM </span><span style="color:black;">sys.objects</span><span style="color:gray;">;<br />
</span><span style="color:blue;">SELECT </span><span style="color:gray;">* </span><span style="color:green;">-- Region Type 3<br />
</span><span style="color:blue;">FROM </span><span style="color:black;">sys.columns</span><span style="color:gray;">;<br />
</span><span style="color:blue;">SELECT </span><span style="color:black;">3</span><span style="color:gray;">;<br />
</span><span style="color:blue;">END<br />
END<br />
</span><span style="color:black;">GO </span></code><code style="font-size:12px;"><span style="color:black;"><br />
</span></code><code style="font-size:12px;"></code><code style="font-size:12px;"></code>
</p>
<p style="text-align:justify;">Regions can be collapsed as well as expanded by clicking the small sign of ‘-’ or ‘+’ besides them. The following image shows a fully expanded region code snippet and a fully collapsed code snippet.</p>
<p style="text-align:justify;"><img src="http://www.pinaldave.com/bimg/sql-features-5.jpg" alt="" /></p>
<p style="text-align:justify;">If there is any single-line statement, it does not qualify for a coding region.</p>
<h3 style="text-align:justify;">Object Explorer Enhancements</h3>
<p style="text-align:justify;">Object Explorer Detail initially looks the same as the previous version but when right clicked on the bar with labels it reveals what it can do. This feature looks the same as the Vista OS folder option but when looked at how it is implemented for SQL Server data, it is really amazing. Object Explorer Detail view can be enabled by either going to Menu &gt;&gt; View &gt;&gt; Object Explorer Detail or pressing F7.</p>
<p style="text-align:justify;"><img src="http://www.pinaldave.com/bimg/sql-features-6.jpg" alt="" /></p>
<p style="text-align:justify;">In Object Explorer Detail the new feature is Object Search. Enter any object name in the object search box and the searched result will be displayed in the same window as Object Explorer Detail.</p>
<p style="text-align:justify;"><img src="http://www.pinaldave.com/bimg/sql-features-7.jpg" alt="" /></p>
<p style="text-align:justify;">Additionally, there are new wizards which help you perform several tasks, from policy management to disk monitoring. One cool thing is that everything displayed in the object explorer details screen can be right away copied and pasted to Excel without any formatting issue.</p>
<h3 style="text-align:justify;">Activity Monitors</h3>
<p style="text-align:justify;">This feature is totally revamped in SSMS 2008. When opening “Activity Monitor” it shows a screen similar to the following image.</p>
<p style="text-align:justify;"><img src="http://www.pinaldave.com/bimg/sql-features-8.jpg" alt="" /></p>
<p style="text-align:justify;">There are four graphs 1) % Processor Time, 2) Waiting Tasks, 3) Database I/O, 4) Batch Requests/Sec</p>
<p style="text-align:justify;">Additionally, there are four tabs which also reflect some statistics of the above four graphs 1) Processes, 2) Resource Waits, 3) Data File I/O, 4) Recent Expensive Queries. Clicking on the tables will expand the tabs as shown in the following image.</p>
<p style="text-align:justify;">All the four tabs provide very important information, however the one which I refer most is ‘Recent Expensive Queries’. Whenever I find my server running slow or having any performance related issues my first reaction is to open this tab and see which query is running slow. I usually look at the query with the highest number for Average Duration. The Recent Expensive Queries monitors only show queries which are in the SQL Server cache at that moment.</p>
<p style="text-align:justify;"><img src="http://www.pinaldave.com/bimg/sql-features-9.jpg" alt="" /></p>
<h3 style="text-align:justify;">Summary</h3>
<p style="text-align:justify;">There are lots of new features of SSMS 2008. The ones I have listed today are the most prominent and my personal favorites.</p>
<p style="text-align:justify;">Reference : <strong>Pinal Dave (<a href="http://blog.sqlauthority.com/" target="_blank">http://blog.SQLAuthority.com</a>), </strong><a href="http://dotnetslackers.com/articles/sql/SQL-Server-2008-Management-Studio-New-Features.aspx" target="_blank">dotnetslackers </a></p>
Posted in Pinal Dave, SQL, SQL Authority, SQL Query, SQL Scripts, SQL Server, SQL Server Management Studio, SQL Tips and Tricks, T SQL, Technology  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/5706/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/5706/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/5706/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/5706/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/5706/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/5706/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/5706/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/5706/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/5706/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/5706/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=5706&subd=sqlauthority&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2009/06/28/sql-server-2008-management-studio-new-features-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>

		<media:content url="http://www.pinaldave.com/bimg/sql-features-1.jpg" medium="image" />

		<media:content url="http://www.pinaldave.com/bimg/sql-features-2.jpg" medium="image" />

		<media:content url="http://www.pinaldave.com/bimg/sql-features-3.jpg" medium="image" />

		<media:content url="http://www.pinaldave.com/bimg/sql-features-4.jpg" medium="image" />

		<media:content url="http://www.pinaldave.com/bimg/sql-features-5.jpg" medium="image" />

		<media:content url="http://www.pinaldave.com/bimg/sql-features-6.jpg" medium="image" />

		<media:content url="http://www.pinaldave.com/bimg/sql-features-7.jpg" medium="image" />

		<media:content url="http://www.pinaldave.com/bimg/sql-features-8.jpg" medium="image" />

		<media:content url="http://www.pinaldave.com/bimg/sql-features-9.jpg" medium="image" />
	</item>
		<item>
		<title>SQL SERVER &#8211; Fix : Error : 17892 Logon failed for login due to trigger execution. Changed database context to &#8216;master&#8217;.</title>
		<link>http://blog.sqlauthority.com/2009/06/27/sql-server-fix-error-17892-logon-failed-for-login-due-to-trigger-execution-changed-database-context-to-master/</link>
		<comments>http://blog.sqlauthority.com/2009/06/27/sql-server-fix-error-17892-logon-failed-for-login-due-to-trigger-execution-changed-database-context-to-master/#comments</comments>
		<pubDate>Sat, 27 Jun 2009 01:30:17 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[Readers Question]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Error Messages]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Scripts]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[SQL Trigger]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[DAC]]></category>
		<category><![CDATA[sqlcmd]]></category>

		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5722</guid>
		<description><![CDATA[I had previously written two articles about an intriguing observation of triggers online.
SQL SERVER – Interesting Observation of Logon Trigger On All Servers
SQL SERVER &#8211; Interesting Observation of Logon Trigger On All Servers &#8211; Solution
If you are wondering what made me write yet another article on logon trigger then let me tell you the story [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=5722&subd=sqlauthority&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="text-align:justify;">I had previously written two articles about an intriguing observation of triggers online.</p>
<p style="text-align:justify;"><a href="http://blog.sqlauthority.com/2009/05/27/sql-server-interesting-observation-of-logon-trigger-on-all-servers/" target="_blank">SQL SERVER – Interesting Observation of Logon Trigger On All Servers</a></p>
<p style="text-align:justify;"><a href="http://blog.sqlauthority.com/2009/06/26/sql-server-interesting-observation-of-logon-trigger-on-all-servers-solution" target="_blank">SQL SERVER &#8211; Interesting Observation of Logon Trigger On All Servers &#8211; Solution</a></p>
<p>If you are wondering what made me write yet another article on logon trigger then let me tell you the story behind it. One of my readers encountered a situation where he dropped the database created in the above two articles and he was unable to logon to the system after that.</p>
<p>Let us recreate the scenario first and attempt to solve the problem.</p>
<p style="text-align:justify;"><code style="font-size:12px;"><span style="color:green;">/* Create Audit Database */<br />
</span><span style="color:blue;">CREATE DATABASE </span><span style="color:black;">AuditDb<br />
GO<br />
</span><span style="color:blue;">USE </span><span style="color:black;">AuditDb<br />
GO<br />
</span><span style="color:green;">/* Create Audit Table */<br />
</span><span style="color:blue;">CREATE TABLE </span><span style="color:black;">ServerLogonHistory<br />
</span><span style="color:gray;">(</span><span style="color:black;">SystemUser </span><span style="color:blue;">VARCHAR</span><span style="color:gray;">(</span><span style="color:black;">512</span><span style="color:gray;">),<br />
</span><span style="color:black;">DBUser </span><span style="color:blue;">VARCHAR</span><span style="color:gray;">(</span><span style="color:black;">512</span><span style="color:gray;">),<br />
</span><span style="color:black;">SPID </span><span style="color:blue;">INT</span><span style="color:gray;">,<br />
</span><span style="color:black;">LogonTime DATETIME</span><span style="color:gray;">)<br />
</span><span style="color:black;">GO<br />
</span><span style="color:green;">/* Create Logon Trigger */<br />
</span><span style="color:blue;">CREATE TRIGGER </span><span style="color:black;">Tr_ServerLogon<br />
</span><span style="color:blue;">ON </span><span style="color:gray;">ALL </span><span style="color:black;">SERVER </span><span style="color:blue;">FOR </span><span style="color:black;">LOGON<br />
</span><span style="color:blue;">AS<br />
BEGIN<br />
INSERT INTO </span><span style="color:black;">AuditDb.dbo.ServerLogonHistory<br />
</span><span style="color:blue;">SELECT </span><span style="color:magenta;">SYSTEM_USER</span><span style="color:gray;">,</span><span style="color:magenta;">USER</span><span style="color:gray;">,</span><span style="color:#434343;">@@SPID</span><span style="color:gray;">,</span><span style="color:magenta;">GETDATE</span><span style="color:gray;">()<br />
</span><span style="color:blue;">END<br />
</span><span style="color:black;">GO<br />
</span><span style="color:green;">/* Dropping Database AuditDB */<br />
/* Please note login to Server again will<br />
Produce Errors */<br />
</span><span style="color:blue;">USE </span><span style="color:black;">master<br />
GO<br />
</span><span style="color:blue;">DROP DATABASE </span><span style="color:black;">AuditDB<br />
GO</span></code>
</p>
<p style="text-align:justify;">After the database is dropped and we try to login again the following error will be displayed.</p>
<p style="text-align:justify;"><span style="color:#ff0000;">Logon failed for login &#8216;SQL\Pinal&#8217; due to trigger execution.<br />
Changed database context to &#8216;master&#8217;.<br />
Changed language setting to us_english. (Microsoft SQL Server, Error: 17892)</span>
</p>
<p style="text-align:justify;"><img class="alignnone" src="http://www.pinaldave.com/bimg/errortrigger.png" alt="" width="555" height="469" /></p>
<p style="text-align:justify;">This error could have been evaded if the Trigger was dropped prior to dropping database.</p>
<p style="text-align:justify;"><code style="font-size:12px;"><span style="color:blue;">USE </span><span style="color:black;">master<br />
GO<br />
</span><span style="color:blue;">DROP TRIGGER </span><span style="color:black;">Tr_ServerLogon </span><span style="color:blue;">ON </span><span style="color:gray;">ALL </span><span style="color:black;">SERVER<br />
GO</span></code>
</p>
<p style="text-align:justify;">Now, it will not be possible to logon to the database using SQL Server Management Studio. The only way to fix this problem is using DAC. Read more details about DAC  <a href="http://blog.sqlauthority.com/2009/01/09/sql-server-sqlcmd-using-a-dedicated-administrator-connection-to-kill-currently-running-query/" target="_blank">Using a Dedicated Administrator Connection to Kill Currently Running Query</a>. Now let us take a look at the example in our case where I am using windows authentication to logon to the system.</p>
<p style="text-align:justify;">Connect SQL Server using sqlcmd and -A option, which will establish DAC. Running the following command on command prompt will allow you to login once again in the database. I am specifying argument <em><strong>-d master</strong></em> which will directly enable me to logon to master database when DAC is connected.</p>
<p style="text-align:justify;"><strong>C:\Users\Pinal&gt;sqlcmd -S LocalHost -d master -A<br />
1&gt; DROP TRIGGER Tr_ServerLogon ON ALL SERVER<br />
2&gt; GO</strong>
</p>
<p style="text-align:justify;"><img class="alignnone" src="http://www.pinaldave.com/bimg/sqlcmddac.png" alt="" width="477" height="333" /></p>
<p style="text-align:justify;">I hope my explanation on logon triggers, DAC, and sqlcmd is clear to everyone. Let me have your thoughts about my present article.</p>
<p style="text-align:justify;">Reference : <strong>Pinal Dave (<a href="http://blog.sqlauthority.com/" target="_blank">http://blog.SQLAuthority.com</a>)</strong></p>
Posted in Pinal Dave, Readers Question, SQL, SQL Authority, SQL Error Messages, SQL Query, SQL Scripts, SQL Server, SQL Tips and Tricks, SQL Trigger, T SQL, Technology Tagged: DAC, sqlcmd <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/5722/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/5722/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/5722/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/5722/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/5722/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/5722/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/5722/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/5722/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/5722/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/5722/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=5722&subd=sqlauthority&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2009/06/27/sql-server-fix-error-17892-logon-failed-for-login-due-to-trigger-execution-changed-database-context-to-master/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>

		<media:content url="http://www.pinaldave.com/bimg/errortrigger.png" medium="image" />

		<media:content url="http://www.pinaldave.com/bimg/sqlcmddac.png" medium="image" />
	</item>
		<item>
		<title>SQL SERVER &#8211; Interesting Observation of Logon Trigger On All Servers &#8211; Solution</title>
		<link>http://blog.sqlauthority.com/2009/06/26/sql-server-interesting-observation-of-logon-trigger-on-all-servers-solution/</link>
		<comments>http://blog.sqlauthority.com/2009/06/26/sql-server-interesting-observation-of-logon-trigger-on-all-servers-solution/#comments</comments>
		<pubDate>Fri, 26 Jun 2009 01:30:14 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[Readers Contribution]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Puzzle]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Scripts]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[SQL Trigger]]></category>
		<category><![CDATA[SQLServer]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5718</guid>
		<description><![CDATA[Does the title of this post trigger your mind? If you all remember, a few days back I had written an article on my interesting observation regarding logon triggers. I would advise you to first read SQL SERVER – Interesting Observation of Logon Trigger On All Servers before continuing with this article further to have [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=5718&subd=sqlauthority&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="text-align:justify;">Does the title of this post trigger your mind? If you all remember, a few days back I had written an article on my interesting observation regarding logon triggers. I would advise you to first read <strong><a href="http://blog.sqlauthority.com/2009/05/27/sql-server-interesting-observation-of-logon-trigger-on-all-servers/" target="_blank">SQL SERVER – Interesting Observation of Logon Trigger On All Servers</a></strong> before continuing with this article further to have a complete idea of the subject.</p>
<p style="text-align:justify;">The question I put forth in my previous article was &#8211; In single login why the trigger fires multiple times; it should be fired only once. I received numerous answers in thread as well as in my MVP private news group. Now, let us discuss the answer for the same.</p>
<p style="text-align:justify;">The answer is – <strong>It happens because multiple SQL Server services are running as well as intellisense is turned on. </strong></p>
<p style="text-align:justify;">Let us verify the above answer.</p>
<p style="text-align:justify;">First, run the following script to create database and logon Audit table.</p>
<p style="text-align:justify;"><code style="font-size:12px;"><span style="color:green;">/* Create Audit Database */<br />
</span><span style="color:blue;">CREATE DATABASE </span><span style="color:black;">AuditDb<br />
GO<br />
</span><span style="color:blue;">USE </span><span style="color:black;">AuditDb<br />
GO<br />
</span><span style="color:green;">/* Create Audit Table */<br />
</span><span style="color:blue;">CREATE TABLE </span><span style="color:black;">ServerLogonHistory<br />
</span><span style="color:gray;">(</span><span style="color:black;">SystemUser </span><span style="color:blue;">VARCHAR</span><span style="color:gray;">(</span><span style="color:black;">512</span><span style="color:gray;">),<br />
</span><span style="color:black;">DBUser </span><span style="color:blue;">VARCHAR</span><span style="color:gray;">(</span><span style="color:black;">512</span><span style="color:gray;">),<br />
</span><span style="color:black;">SPID </span><span style="color:blue;">INT</span><span style="color:gray;">,<br />
</span><span style="color:black;">LogonTime DATETIME</span><span style="color:gray;">)<br />
</span><span style="color:black;">GO<br />
</span><span style="color:green;">/* Create Logon Trigger */<br />
</span><span style="color:blue;">CREATE TRIGGER </span><span style="color:black;">Tr_ServerLogon<br />
</span><span style="color:blue;">ON </span><span style="color:gray;">ALL </span><span style="color:black;">SERVER </span><span style="color:blue;">FOR </span><span style="color:black;">LOGON<br />
</span><span style="color:blue;">AS<br />
BEGIN<br />
INSERT INTO </span><span style="color:black;">AuditDb.dbo.ServerLogonHistory<br />
</span><span style="color:blue;">SELECT </span><span style="color:magenta;">SYSTEM_USER</span><span style="color:gray;">,</span><span style="color:magenta;">USER</span><span style="color:gray;">,</span><span style="color:#434343;">@@SPID</span><span style="color:gray;">,</span><span style="color:magenta;">GETDATE</span><span style="color:gray;">()<br />
</span><span style="color:blue;">END<br />
</span><span style="color:black;">GO<br />
</span></code>
</p>
<p style="text-align:justify;">After that, disable all the other SQL Server Services as delineated in the image below using SQL Server Configuration Manager.</p>
<p style="text-align:justify;"><img class="alignnone" src="http://www.pinaldave.com/bimg/disableservices.png" alt="" width="456" height="277" /></p>
<p style="text-align:justify;">Next, try to logon to the system only one more time.</p>
<p style="text-align:justify;"><img class="alignnone" src="http://www.pinaldave.com/bimg/loginscreen.png" alt="" width="426" height="319" /></p>
<p style="text-align:justify;">Check the audit table again to verify if there is a single entry for single login.</p>
<p style="text-align:justify;"><img class="alignnone" src="http://www.pinaldave.com/bimg/singlelogin.png" alt="" width="428" height="594" /></p>
<p style="text-align:justify;">I would once again like to thank all of you for active participation and coming up with wonderful suggestions and answers. Let me have your opinion on this observation.</p>
<p style="text-align:justify;">Reference : <strong>Pinal Dave (<a href="http://blog.sqlauthority.com/" target="_blank">http://blog.SQLAuthority.com</a>)</strong></p>
Posted in Pinal Dave, Readers Contribution, SQL, SQL Authority, SQL Puzzle, SQL Query, SQL Scripts, SQL Server, SQL Tips and Tricks, SQL Trigger, SQLServer, T SQL, Technology  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/5718/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/5718/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/5718/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/5718/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/5718/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/5718/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/5718/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/5718/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/5718/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/5718/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=5718&subd=sqlauthority&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2009/06/26/sql-server-interesting-observation-of-logon-trigger-on-all-servers-solution/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>

		<media:content url="http://www.pinaldave.com/bimg/disableservices.png" medium="image" />

		<media:content url="http://www.pinaldave.com/bimg/loginscreen.png" medium="image" />

		<media:content url="http://www.pinaldave.com/bimg/singlelogin.png" medium="image" />
	</item>
		<item>
		<title>SQLAuthority News &#8211; Authors Visit &#8211; K-MUG TechEd Trivandrum on June 27, 2009</title>
		<link>http://blog.sqlauthority.com/2009/06/25/sqlauthority-news-authors-visit-k-mug-teched-trivandrum-on-june-27-2009/</link>
		<comments>http://blog.sqlauthority.com/2009/06/25/sqlauthority-news-authors-visit-k-mug-teched-trivandrum-on-june-27-2009/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 01:30:45 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[MVP]]></category>
		<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[SQLAuthority Author Visit]]></category>
		<category><![CDATA[SQLAuthority News]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[TechEd]]></category>
		<category><![CDATA[TechEdIn]]></category>

		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5734</guid>
		<description><![CDATA[K-MUG is organizing TechEd Trivandrum on 27th June, 2009. Not just this, they are launching an official PASS Chapter in Trivandrum. The Agenda of the event is here and if you are around Trivandrum do not miss the opportunity to be a part of this upcoming great event. If you are keen to know what [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=5734&subd=sqlauthority&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="text-align:justify;"><a href="http://k-mug.org/content/teched.aspx">K-MUG</a> is organizing TechEd Trivandrum on 27th June, 2009. Not just this, they are launching an official PASS Chapter in Trivandrum. The <a href="http://k-mug.org/content/teched.aspx" target="_blank">Agenda</a> of the event is here and if you are around Trivandrum do not miss the opportunity to be a part of this upcoming great event. If you are keen to know what this event holds in store for you then read about TechEd in Ahmedabad, which saw a huge number of attendees and was a grand success.  Jacob Sebastian and Pinal Dave had presented two solid SQL Sessions and created lots of buzz about Microsoft.</p>
<p style="text-align:justify;">
<p style="text-align:justify;"><a href="http://blog.sqlauthority.com/2009/06/22/sqlauthority-news-teched-on-road-ahmedabad-june-20-2009-an-astounding-success/" target="_blank">Click here for Review of Pinal Dave</a></p>
<p style="text-align:justify;"><a href="http://beyondrelational.com/blogs/jacob/archive/2009/06/23/tech-ed-ahmedabad-2009-event-summary.aspx" target="_blank">Click here for Review of Jacob Sebastian</a></p>
<p style="text-align:justify;">I will be at TechEd and will present a session on ‘<strong>SQL Server Best Practices’</strong>. This session will mainly focus on SQL Server best practices that are not commonly known. There is a huge gamut of information which can drastically enhance the performance of a system, but these are not widely known to users. I will share with you all those brilliant tips through demo to help to develop clear idea.</p>
<p style="text-align:justify;"><a href="http://beyondrelational.com/blogs/jacob/" target="_blank">Jacob Sebastian</a>, my friend and a SQL Server MVP, will also be there to support this event. He will present a session on ‘<strong>Logical Query Execution Flow</strong>’ where he will discuss how a given T-SQL Query is processed and executed. A comprehensive understanding of the query execution flow will help you solve several common problems and will help you answer a number of baffling questions that you often come across. Believe me this session was very much applauded at TechEd in Ahmedabad. I highly recommend this session to everyone interested in technology.</p>
<p style="text-align:justify;">Jacob Sebastian will also give away his book ‘<a href="http://beyondrelational.com/blogs/jacob/archive/2009/04/26/my-latest-book-the-art-of-xsd-sql-server-xml-schema-collections-available-for-free-download.aspx">The Art of XSD – SQL Server XML Schema Collections’</a> at K-Mug TechEd.  This unique book deals with the subject of XSD, which is very crucial to understand if you want to explore the potential of XML. This topic is hardly well covered in any other book, which makes this book a must-have if you want to explore SQL Server Beyond Relational. Please <strong><a href="http://beyondrelational.com/blogs/jacob/archive/2009/06/24/see-you-at-tech-ed-trivandrum-on-27th-june-2009.aspx" target="_blank">read post</a></strong> by Jacob regarding how one can win his famous book <strong><a href="http://beyondrelational.com/blogs/jacob/archive/2009/06/24/see-you-at-tech-ed-trivandrum-on-27th-june-2009.aspx" target="_blank">here</a></strong>.</p>
<p style="text-align:justify;">
<p style="text-align:justify;">If any of you is interested in attending this event and meeting Jacob and me then do let me know. I will be staying an extra day at Trivandrum on Sunday, 28th June, so we can meet on that day as well.</p>
<p style="text-align:justify;">Again, those of you who have requested for <a href="http://www.pinaldave.com/best-sql-server-download.cfm?download=SQL-SERVER-Cheat-Sheet" target="_blank">SQL Server Cheat Sheet</a>, I will have one copy for all of you who will attend this event.</p>
<p style="text-align:justify;">Reference : <strong>Pinal Dave (<a href="http://blog.sqlauthority.com/" target="_blank">http://blog.SQLAuthority.com</a>)</strong></p>
<p style="text-align:justify;">
Posted in MVP, Pinal Dave, SQL, SQL Authority, SQL Query, SQL Server, SQL Tips and Tricks, SQLAuthority Author Visit, SQLAuthority News, T SQL, Technology Tagged: TechEd, TechEdIn <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/5734/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/5734/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/5734/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/5734/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/5734/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/5734/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/5734/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/5734/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/5734/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/5734/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=5734&subd=sqlauthority&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2009/06/25/sqlauthority-news-authors-visit-k-mug-teched-trivandrum-on-june-27-2009/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>
	</item>
		<item>
		<title>SQLAuthority News &#8211; Update on pinaldave.com and SQLAuthority.com</title>
		<link>http://blog.sqlauthority.com/2009/06/24/sqlauthority-news-update-on-pinaldave-com-and-sqlauthority-com/</link>
		<comments>http://blog.sqlauthority.com/2009/06/24/sqlauthority-news-update-on-pinaldave-com-and-sqlauthority-com/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 01:30:31 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[SQLAuthority News]]></category>
		<category><![CDATA[SQLServer]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5701</guid>
		<description><![CDATA[Problem: SQLAuthority.com site was not allowed in some browsers as pinaldave.com site was marked as malware or badware distributing third party site.
Status: SQLAuthority.com and pinaldave.com both the sites are safe now and there is no threat to your computer. Feel free to click on the links.
Since the last two mornings I have received over 200 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=5701&subd=sqlauthority&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="text-align:justify;"><strong>Problem:</strong> SQLAuthority.com site was not allowed in some browsers as pinaldave.com site was marked as malware or badware distributing third party site.</p>
<p style="text-align:justify;"><strong>Status:</strong> <strong><a href="http://blog.SQLAuthority.com" target="_blank">SQLAuthority.com</a></strong> and <strong><a href="http://www.pinaldave.com" target="_blank">pinaldave.com</a></strong> both the sites are safe now and there is no threat to your computer. Feel free to click on the links.</p>
<p style="text-align:justify;">Since the last two mornings I have received over 200 emails querying about the error my sites were generating. I encountered countless questions and worst of all I was thrown verbal abuse for not getting my own site up right away and for being careless. I’m much relieved today as everything is back to normal and I forgive those who abused me. There are few explanations I have been demanded numerous times by my several regular readers. Many readers send me question on twitter demanding to know what actually happened.</p>
<p style="text-align:justify;"><strong>Question : What is the current status of your site?</strong><br />
Answer : All well, no problem. Business is as usual.</p>
<p style="text-align:justify;"><strong>Q: What exactly happened?</strong><br />
A: I host my blog on a supreme blog platform <a href="http://wordpress.com/" target="_blank">wordpress.com</a>. All the images that are displayed in this blog I host at my other hosting facility where I host my website pinaldave.com. All the images, photos and code come from pinaldave.com.
</p>
<p style="text-align:justify;">This was done to facilitate cross posting any blog at anytime on any platform without any hassle with one mouse click.</p>
<p style="text-align:justify;">My host where I hosted pinaldave.com got affected by some kind of virus and trojon. Because of the same reason, all the websites which were hosted on that server were adversely affected with malwares and badwares. My site saw this impact too and all the browsers and anti virus started to report it as unsafe site.</p>
<p style="text-align:justify;">My blog site SQLAuthority.com contains lots of images and photos from pinaldave.com, so it was marked as a site containing links to malwares. Commutatively, both my sites were as marked as malicious sites and browsers started to prevent displaying them.</p>
<p style="text-align:justify;"><strong>Q: How did you fix the problem?</strong><br />
A: I had to change my webhost to a new one and re-uploaded my site.</p>
<p style="text-align:justify;"><strong>Q: Why did you change your webhost?</strong><br />
A: Yes, I tried to inform my webhost about this attack but to my utter disappointment they did not take this issue seriously. I tried to call them up multiple times and explained them the problem. For all my efforts, I received verbal abuse from their supervisor.
</p>
<p style="text-align:justify;">This is not the first time where I faced such grave issue with my previous host. This is the third major issue in the past two months. Previously, their SQL Server 2008 was down for two days straight so my site was also down for the same duration. Just a month ago, I faces problem with my email account; it stopped working for two full days. As my site was down for almost five days in the past 60 days and to top this I faced verbal abused by the supervisor, I decided to move on to a new host.</p>
<p style="text-align:justify;"><strong>Q: Who was your previous host?</strong><br />
A: I do not want to talk about them any more. They used to <em><strong>host my site</strong></em> for long time. After I reported the problem they did not care to respond to me and did not fix the problem for over 24 hours.</p>
<p style="text-align:justify;"><strong>Q: Are you angry with your previous host?</strong><br />
A: Not at all. Such things do happen so I’m chilled. However, when I was politely reporting a problem to them I did not expect to hear abusive language from their customer support. It came as a shock to me but now I’m out of it. After all, I have to move on.</p>
<p style="text-align:justify;"><strong>Q: Who is your new host?<br />
</strong>A: <em><strong>GoDaddy.com</strong></em> and they are doing great! Most of the people think of Danica Patrik when GoDaddy is mentioned, I think of  <a href="http://blog.sqlauthority.com/2009/04/04/sql-server-automated-index-defragmentation-script/" target="_blank">Index De-Fragmentation Script of SQLFool</a>.</p>
<p style="text-align:justify;"><strong>Q: What&#8217;s next?</strong><br />
A: Please spread the words that everything is alright now.
</p>
<p style="text-align:justify;">Reference : <strong>Pinal Dave (</strong><a href="http://blog.sqlauthority.com/" target="_blank"><strong>http://blog.SQLAuthority.com</strong></a><strong>)</strong></p>
Posted in Database, Pinal Dave, SQL, SQL Authority, SQL Query, SQL Server, SQL Tips and Tricks, SQLAuthority News, SQLServer, T SQL, Technology  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/5701/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/5701/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/5701/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/5701/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/5701/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/5701/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/5701/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/5701/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/5701/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/5701/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=5701&subd=sqlauthority&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2009/06/24/sqlauthority-news-update-on-pinaldave-com-and-sqlauthority-com/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL SERVER &#8211; 2005 &#8211; 2008 &#8211; Delete Duplicate Rows</title>
		<link>http://blog.sqlauthority.com/2009/06/23/sql-server-2005-2008-delete-duplicate-rows/</link>
		<comments>http://blog.sqlauthority.com/2009/06/23/sql-server-2005-2008-delete-duplicate-rows/#comments</comments>
		<pubDate>Tue, 23 Jun 2009 01:30:01 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Function]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Scripts]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Duplicate Records]]></category>

		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5631</guid>
		<description><![CDATA[I had previously penned down two popular snippets regarding deleting duplicate rows and counting duplicate rows. Today, we will examine another very quick code snippet where we will delete duplicate rows using CTE and ROW_NUMBER() feature of SQL Server 2005 and SQL Server 2008.
This method is improved over the earlier method as it not only [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=5631&subd=sqlauthority&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="text-align:justify;">I had previously penned down two popular snippets regarding deleting duplicate rows and counting duplicate rows. Today, we will examine another very quick code snippet where we will delete duplicate rows using CTE and ROW_NUMBER() feature of SQL Server 2005 and SQL Server 2008.</p>
<p style="text-align:justify;">This method is improved over the earlier method as it not only uses CTE and ROW_NUMBER, but also demonstrates the power of CTE with DELETE statement. We will have a comprehensive discussion about it later in this article. For now, let us first create a sample table from which we will delete records.</p>
<p style="text-align:justify;"><code style="font-size:12px;"><span style="color:green;">/* Create Table with 7 entries - 3 are duplicate entries */<br />
</span><span style="color:blue;">CREATE TABLE </span><span style="color:black;">DuplicateRcordTable </span><span style="color:gray;">(</span><span style="color:black;">Col1 </span><span style="color:blue;">INT</span><span style="color:gray;">, </span><span style="color:black;">Col2 </span><span style="color:blue;">INT</span><span style="color:gray;">)<br />
</span><span style="color:blue;">INSERT INTO </span><span style="color:black;">DuplicateRcordTable<br />
</span><span style="color:blue;">SELECT </span><span style="color:black;">1</span><span style="color:gray;">, </span><span style="color:black;">1<br />
</span><span style="color:blue;">UNION </span><span style="color:gray;">ALL<br />
</span><span style="color:blue;">SELECT </span><span style="color:black;">1</span><span style="color:gray;">, </span><span style="color:black;">1 </span><span style="color:green;">--duplicate<br />
</span><span style="color:blue;">UNION </span><span style="color:gray;">ALL<br />
</span><span style="color:blue;">SELECT </span><span style="color:black;">1</span><span style="color:gray;">, </span><span style="color:black;">1 </span><span style="color:green;">--duplicate<br />
</span><span style="color:blue;">UNION </span><span style="color:gray;">ALL<br />
</span><span style="color:blue;">SELECT </span><span style="color:black;">1</span><span style="color:gray;">, </span><span style="color:black;">2<br />
</span><span style="color:blue;">UNION </span><span style="color:gray;">ALL<br />
</span><span style="color:blue;">SELECT </span><span style="color:black;">1</span><span style="color:gray;">, </span><span style="color:black;">2 </span><span style="color:green;">--duplicate<br />
</span><span style="color:blue;">UNION </span><span style="color:gray;">ALL<br />
</span><span style="color:blue;">SELECT </span><span style="color:black;">1</span><span style="color:gray;">, </span><span style="color:black;">3<br />
</span><span style="color:blue;">UNION </span><span style="color:gray;">ALL<br />
</span><span style="color:blue;">SELECT </span><span style="color:black;">1</span><span style="color:gray;">, </span><span style="color:black;">4<br />
GO</span></code>
</p>
<p style="text-align:justify;">The above table has total 7 records, out of which 3 are duplicate records. Once the duplicates are removed we will have only 4 records left.</p>
<p style="text-align:justify;"><code style="font-size:12px;"><span style="color:green;">/* It should give you 7 rows */<br />
</span><span style="color:blue;">SELECT </span><span style="color:gray;">*<br />
</span><span style="color:blue;">FROM </span><span style="color:black;">DuplicateRcordTable<br />
GO</span></code></p>
<p style="text-align:justify;"><span style="color:black;"><img class="alignnone" src="http://www.pinaldave.com/bimg/dup1.png" alt="" width="299" height="290" /><br />
</span>
</p>
<p style="text-align:justify;">The most interesting part of this is yet to come. We will use CTE that will re-generate the same table with additional column, which is row number. In our case, we have Col1 and Col2 and both the columns qualify as duplicate rows. It may be a different set of rows for each different query like this. Another point to note here is that once CTE is created  DELETE statement can be run on it. We will put a condition here &#8211; when we receive more than one rows of record, we will remove the row which is not the first one. When DELETE command is executed over CTE it in fact deletes from the base table used in CTE.</p>
<p style="text-align:justify;"><code style="font-size:12px;"><span style="color:green;">/* Delete Duplicate records */<br />
</span><span style="color:blue;">WITH </span><span style="color:black;">CTE </span><span style="color:gray;">(</span><span style="color:black;">COl1</span><span style="color:gray;">,</span><span style="color:black;">Col2</span><span style="color:gray;">, </span><span style="color:black;">DuplicateCount</span><span style="color:gray;">)<br />
</span><span style="color:blue;">AS<br />
</span><span style="color:gray;">(<br />
</span><span style="color:blue;">SELECT </span><span style="color:black;">COl1</span><span style="color:gray;">,</span><span style="color:black;">Col2</span><span style="color:gray;">,<br />
</span><span style="color:black;">ROW_NUMBER</span><span style="color:gray;">() </span><span style="color:blue;">OVER</span><span style="color:gray;">(</span><span style="color:black;">PARTITION </span><span style="color:blue;">BY </span><span style="color:black;">COl1</span><span style="color:gray;">,</span><span style="color:black;">Col2 </span><span style="color:blue;">ORDER BY </span><span style="color:black;">Col1</span><span style="color:gray;">) </span><span style="color:blue;">AS </span><span style="color:black;">DuplicateCount<br />
</span><span style="color:blue;">FROM </span><span style="color:black;">DuplicateRcordTable<br />
</span><span style="color:gray;">)<br />
</span><span style="color:blue;">DELETE<br />
FROM </span><span style="color:black;">CTE<br />
</span><span style="color:blue;">WHERE </span><span style="color:black;">DuplicateCount </span><span style="color:gray;">&gt; </span><span style="color:black;">1<br />
GO</span></code>
</p>
<p style="text-align:justify;">It is apparent that after delete command has been run, we will have only 4 records, which is almost the same result which we would have got with DISTINCT, with this resultset. If we had more than 2 columns and we had to run unique on only two columns, our distinct might have not worked here . In this case, we would have to use above the mentioned method.</p>
<p style="text-align:justify;"><code style="font-size:12px;"><span style="color:green;">/* It should give you Distinct 4 records */<br />
</span><span style="color:blue;">SELECT </span><span style="color:gray;">*<br />
</span><span style="color:blue;">FROM </span><span style="color:black;">DuplicateRcordTable<br />
GO</span></code></p>
<p style="text-align:justify;"><span style="color:black;"><img class="alignnone" src="http://www.pinaldave.com/bimg/dup2.png" alt="" width="379" height="228" /><br />
</span>
</p>
<p style="text-align:justify;">This method is a breeze and we can use this for SQL Server version 2005 and the later versions.</p>
<p style="text-align:justify;">Reference : <strong>Pinal Dave (<a href="http://blog.sqlauthority.com/" target="_blank">http://blog.SQLAuthority.com</a>)</strong></p>
Posted in Pinal Dave, SQL, SQL Authority, SQL Function, SQL Query, SQL Scripts, SQL Server, SQL Tips and Tricks, T SQL, Technology Tagged: Duplicate Records <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/5631/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/5631/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/5631/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/5631/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/5631/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/5631/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/5631/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/5631/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/5631/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/5631/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=5631&subd=sqlauthority&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2009/06/23/sql-server-2005-2008-delete-duplicate-rows/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>

		<media:content url="http://www.pinaldave.com/bimg/dup1.png" medium="image" />

		<media:content url="http://www.pinaldave.com/bimg/dup2.png" medium="image" />
	</item>
		<item>
		<title>SQLAuthority News &#8211; TechEd on Road Ahmedabad June 20, 2009 &#8211; An Astounding Success</title>
		<link>http://blog.sqlauthority.com/2009/06/22/sqlauthority-news-teched-on-road-ahmedabad-june-20-2009-an-astounding-success/</link>
		<comments>http://blog.sqlauthority.com/2009/06/22/sqlauthority-news-teched-on-road-ahmedabad-june-20-2009-an-astounding-success/#comments</comments>
		<pubDate>Mon, 22 Jun 2009 01:30:29 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[MVP]]></category>
		<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[SQL User Group]]></category>
		<category><![CDATA[SQLAuthority Author Visit]]></category>
		<category><![CDATA[SQLAuthority News]]></category>
		<category><![CDATA[SQLServer]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[TechEd]]></category>
		<category><![CDATA[TechEdIn]]></category>

		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5655</guid>
		<description><![CDATA[TechEd on Road Ahmedabad
In India, TechEd was held in Hyderabad in the month of May. You can read my TechEd summary article here. A similar event will be organized in 10 major cities in India.
Ahmedabad saw its first TechEd on Road and it was wholeheartedly welcomed by technology enthusiasts. The event was held at Rock [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=5655&subd=sqlauthority&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><h2 style="text-align:justify;">TechEd on Road Ahmedabad</h2>
<p style="text-align:justify;">In India, TechEd was held in Hyderabad in the month of May. You can read my<strong> </strong><a href="http://blog.sqlauthority.com/2009/06/02/sqlauthority-news-summary-of-teched-india-2009-a-grand-event/" target="_blank"><strong>TechEd summary article</strong></a> here. A similar event will be organized in 10 major cities in India.</p>
<p style="text-align:justify;">Ahmedabad saw its first TechEd on Road and it was wholeheartedly welcomed by technology enthusiasts. The event was held at Rock regency, in the heart of Ahmedabad on June 20, 2009. We had attendees traveling over 500 miles to attend the event. We had attendees from <strong><em>Delhi, Mumbai, Jaipur, Kerala, Baroda, Himmatnagar, Rajkot,</em></strong> among other cities from India. It was a joyous and overwhelming experience for me to see them travel all the way from different parts of India to participate in TechEd event. Hats Off to you all!</p>
<p style="text-align:justify;">TechEd event was attended by <span style="color:#0000ff;"><strong>200+ attendees</strong></span>. One of the reasons why this event had created lots of anticipation, which eventually lead to oversubscribed event, was two back to back SQL sessions by SQL Server MVPs. <a href="http://blog.sqlauthority.com/" target="_blank"><strong>Pinal Dave</strong></a> and <a href="http://blog.beyondrelational.com/" target="_blank"><strong>Jacob Sebastian</strong></a><strong>;</strong> both are renowned for their technical sessions and their unique style of presentation.</p>
<p style="text-align:justify;"><strong>Scroll down at the end of this article for photographs of the event.</strong></p>
<h2 style="text-align:justify;"><strong>Technical Sessions</strong></h2>
<p style="text-align:justify;">The Official time to commence the event was at 1:45 PM but we had attendees pouring into the hall since 12:00 PM. We held a special session for attendees who came in early to keep them engaged. We provided them the opportunity to win loads of gifts while they waited for the official sessions to start. I must express special thanks to our event coordinator Dipen Shah, a bright young man who has just graduated as a Computer Engineering from a prestigious engineering collage for his excellent quiz master skills. It’s great to see that next generation has so much passion for technology.</p>
<p style="text-align:justify;">The most awaited event started sharp at 1:45 PM with Keynote where in the beginning Dipen explained what is TechEd and why this event is held. Pinal Dave known for his distinctive humorous style, started the keynote from the history of Microsoft Windows and the history of SQL Server. It was a 15-mins session where everybody thoroughly enjoyed and learned the root of technology and how it evolved with changing times. All the attendees enthusiastically participated during the keynote by Pinal Dave, and lots of gifts were given away. Jacob Sebastian picked up the keynote by Pinal Dave and continued the session. Pinal explained the history while Jacob explained the future. He explained how Microsoft is doing in terms of beyond relations and on other technological fronts. The audience really enjoyed learning about how technology progressed and how is it going and growing.</p>
<p style="text-align:justify;">Jacob’s remark “ <strong><a href="http://blog.sqlauthority.com/2008/07/30/sqlauthority-news-author-birthday-sql-server-birthday/" target="_blank">SQL Server being now 21 years old</a></strong> and can get married” created a riot of laughter!</p>
<p style="text-align:justify;">The first session was by <strong>Pinal Dave</strong> on <strong>SQL Server Best Practices</strong>.</p>
<p style="text-align:justify;">The second session was by <strong>Jacob Sebastian</strong> on <strong>Understanding Query Execution Flow and Optimization Tips</strong>.</p>
<p style="text-align:justify;">If you want to know more about the technical details for these two sessions, then do not wait for my blog article. Attend our next user group meeting, which will be announced soon. The same session will be delivered by these two experts on request. Here, I can only say that these two sessions were very well appreciated by the attendees and everybody was extremely happy to be a part of this event.  The event lived up to everybody’s expectations!</p>
<h2 style="text-align:justify;"><strong>Event Sponsors</strong></h2>
<p style="text-align:justify;">I must thank all my sponsors for their support &#8211; <a href="http://www.microsoft.com/" target="_blank">Microsoft</a>, <a href="http://sqlpass.org/" target="_blank">PASS</a>, <a href="http://www.solidq.in/" target="_blank">Solid QualityMentors</a>, <a href="http://digi-corp.com/" target="_blank">Digicorp</a>, <a href="http://quest.com">Quest </a>and <a href="http://excellenceinfonet.com/" target="_blank">Excellence Infonet</a>. Ahmedabad is fast catching up as a technology hub and growing very fast. We got our registration full in less than 36 hours. We opened up stand by tickets and which were full by 100%.</p>
<p style="text-align:justify;">When I expressed my situation to <strong>Rushabh Mehta</strong> of <a href="http://solidq.in/" target="_blank"><strong>Solid Quality India</strong></a> and told him that the event is oversubscribed by 200% on the day prior to the event, he right away told me that he does not want anybody from the community to turn away from door disappointed and miss the wonderful opportunity to learn from this event. Rushabh promised to cover all additional costs to accommodate the additional attendees. Not only this, he sponsored <a href="http://www.pinaldave.com/best-sql-server-download.cfm?download=SQL-SERVER-Cheat-Sheet" target="_blank"><strong>SQL Server Cheat Sheets</strong></a> for all the attendees. Rushabh, special thanks to you! Because of your support we were able to accommodate everybody who wanted to attend this event.</p>
<p style="text-align:justify;"><a href="http://aryamandesai.com/" target="_blank"><strong>Arya Events</strong></a> did a wonderful job of making this large scale event a very smooth flowing event. There were no queues and no claustrophobic feelings. We hope to have them for all of our future events. All the graphic designs and logistics were provided by <a href="http://digi-corp.com/" target="_blank">Digicorp</a> &#8211; a vibrant young company from Ahmedabad. USB drives were provided by <a href="http://excellenceinfonet.com/" target="_blank">Excellence Infonet</a>.</p>
<p style="text-align:justify;"><strong>Miscellaneous Details</strong></p>
<ul style="text-align:justify;">
<li>Pinal Dave got awarded for      being the winner of <a href="http://beyondrelational.com/blogs/tc/" target="_blank">T-SQL Challenge</a> by Jacob Sebastian.</li>
<li>New book of Jacob Sebastian &#8211;      &#8220;<a href="http://beyondrelational.com/blogs/jacob/archive/2009/04/26/my-latest-book-the-art-of-xsd-sql-server-xml-schema-collections-available-for-free-download.aspx" target="_blank">The Art of XSD</a>&#8221; was available in print.</li>
<li><strong><a href="http://www.pinaldave.com/best-sql-server-download.cfm?download=SQL-SERVER-Cheat-Sheet" target="_blank">SQL Server Cheat Sheets</a></strong> were      very much in demand.</li>
<li>We ordered 50 more chairs while      the event was going on, as we ran out of them again (this is third time in      row &#8211; when we needed more chairs)</li>
<li>.NET MVP Kaushal Parik attended      and encouraged every participant.</li>
<li>Four directors of <a href="http://digi-corp.com/" target="_blank">Digicorp </a>- Abhishek, Nachiket, Kuntal and Sanket were present at the event to give      their support.</li>
<li>Ritesh Shah of <a href="http://sqlhug.com/" target="_blank">SQLHub</a> performed really well and answered almost all the questions and won the highest number      of gifts.</li>
<li>Mahesh Dhola announced his next event.</li>
<li>Kaushal Bhavsar Microsoft Student Partner was present throughout the event.</li>
</ul>
<h2 style="text-align:justify;"><strong>Giveaways</strong></h2>
<p style="text-align:justify;">This event had so many giveaways that almost all the attendees got something. One of the attendees told me that he received 7 goodies today. Well, undoubtedly it was fun to share some of the nice things with all attendees.</p>
<ul style="text-align:justify;">
<li>18 T-shirts</li>
<li>3 Solid Quality Learning Polo Premium Shirts</li>
<li>9 USB drives</li>
<li>10 stress balls</li>
<li>3 technology books</li>
<li>33 high quality pens</li>
<li>300 SQL Server Cheat Sheets</li>
<li>200 Query Execution Flow Chart</li>
<li>200+ SQLAuthority.com and      BeyondRelations.com Stickers</li>
</ul>
<h2 style="text-align:justify;">Photos</h2>
<div class="wp-caption alignnone" style="width: 510px"><img title="TechEd On Road Ahmedabad" src="http://www.pinaldave.com/bimg/TechEdIn/Ahmedabad/1.jpg" alt="TechEd On Road Ahmedabad" width="500" height="375" /><p class="wp-caption-text">TechEd On Road Ahmedabad</p></div>
<div class="mceTemp" style="text-align:justify;">
<dl class="wp-caption alignnone">
<dt class="wp-caption-dt"><img title="Pinal Dave at TechEd on Road Ahmedabad" src="http://www.pinaldave.com/bimg/TechEdIn/Ahmedabad/2.jpg" alt="" width="500" height="375" /></dt>
<dd class="wp-caption-dd">Pinal Dave at TechEd on Road Ahmedabad</dd>
</dl>
</div>
<div class="mceTemp" style="text-align:justify;">
<dl class="wp-caption alignnone">
<dt class="wp-caption-dt"><img title="Pinal and Jacob" src="http://www.pinaldave.com/bimg/TechEdIn/Ahmedabad/3.jpg" alt="" width="500" height="375" /></dt>
<dd class="wp-caption-dd">Pinal and Jacob</dd>
</dl>
</div>
<div class="mceTemp" style="text-align:justify;">
<dl class="wp-caption alignnone">
<dt class="wp-caption-dt"><img title="Pinal Dave from SQLAuthority.com" src="http://www.pinaldave.com/bimg/TechEdIn/Ahmedabad/4.jpg" alt="" width="500" height="375" /></dt>
<dd class="wp-caption-dd">Pinal Dave from SQLAuthority.com</dd>
</dl>
</div>
<div class="mceTemp" style="text-align:justify;">
<dl class="wp-caption alignnone">
<dt class="wp-caption-dt"><img title="Jacob Sebastian from BeyondRelational.com" src="http://www.pinaldave.com/bimg/TechEdIn/Ahmedabad/5.jpg" alt="" width="500" height="375" /></dt>
<dd class="wp-caption-dd">Jacob Sebastian from BeyondRelational.com</dd>
</dl>
</div>
<div class="mceTemp" style="text-align:justify;">
<dl class="wp-caption alignnone">
<dt class="wp-caption-dt"><img title="Pinal Dave at TechEd on Road Ahmedabad" src="http://www.pinaldave.com/bimg/TechEdIn/Ahmedabad/6.jpg" alt="" width="500" height="375" /></dt>
<dd class="wp-caption-dd">Pinal Dave at TechEd on Road Ahmedabad</dd>
</dl>
</div>
<div class="mceTemp" style="text-align:justify;">
<dl class="wp-caption alignnone">
<dt class="wp-caption-dt"><img title="Jacob Sebastian at TechEd on Road hmedabad" src="http://www.pinaldave.com/bimg/TechEdIn/Ahmedabad/7.jpg" alt="" width="500" height="375" /></dt>
<dd class="wp-caption-dd">Jacob Sebastian at TechEd on Road hmedabad</dd>
</dl>
</div>
<div class="mceTemp" style="text-align:justify;">
<dl class="wp-caption alignnone">
<dt class="wp-caption-dt"><img title="Pinal and Jacob" src="http://www.pinaldave.com/bimg/TechEdIn/Ahmedabad/8.jpg" alt="" width="500" height="375" /></dt>
<dd class="wp-caption-dd">Pinal and Jacob</dd>
</dl>
</div>
<div class="wp-caption alignnone" style="width: 510px"><img title="Dipen Shah (Microsoft Student Partner)" src="http://www.pinaldave.com/bimg/TechEdIn/Ahmedabad/13.jpg" alt="Dipen Shah (Microsoft Student Partner)" width="500" height="375" /><p class="wp-caption-text">Dipen Shah (Microsoft Student Partner)</p></div>
<div class="mceTemp" style="text-align:justify;">
<dl class="wp-caption alignnone">
<dt class="wp-caption-dt"><img title="Pinal and Kaushal (MVP)" src="http://www.pinaldave.com/bimg/TechEdIn/Ahmedabad/12.jpg" alt="Pinal and Kaushal (MVP)" width="500" height="375" /></dt>
<dd class="wp-caption-dd">Pinal and Kaushal (MVP)</dd>
</dl>
</div>
<div class="mceTemp" style="text-align:justify;">
<dl class="wp-caption alignnone">
<dt class="wp-caption-dt"><img title="Pinal and Abhishek (Digicorp)" src="http://www.pinaldave.com/bimg/TechEdIn/Ahmedabad/9.jpg" alt="" width="500" height="375" /></dt>
<dd class="wp-caption-dd">Pinal and Abhishek (Digicorp)</dd>
</dl>
</div>
<div class="mceTemp" style="text-align:justify;">
<dl class="wp-caption alignnone">
<dt class="wp-caption-dt"><img title="Pinal and Ritesh (SQLHub)" src="http://www.pinaldave.com/bimg/TechEdIn/Ahmedabad/10.jpg" alt="" width="500" height="375" /></dt>
<dd class="wp-caption-dd">Pinal and Ritesh (SQLHub)</dd>
</dl>
</div>
<div class="wp-caption alignnone" style="width: 510px"><img title="Pinal (SQLAuthority.com), Aryaman (Arya Events), Jacob (BeyondRelational.com)" src="http://www.pinaldave.com/bimg/TechEdIn/Ahmedabad/14.jpg" alt="Pinal (SQLAuthority.com), Aryaman (Arya Events), Jacob (BeyondRelational.com)" width="500" height="375" /><p class="wp-caption-text">Pinal (SQLAuthority.com), Aryaman (Arya Events), Jacob (BeyondRelational.com)</p></div>
<div class="mceTemp" style="text-align:justify;">
<dl class="wp-caption alignnone">
<dt class="wp-caption-dt"><img title="Nupur and Pinal - SolidQ and SQLAuthority Crew" src="http://www.pinaldave.com/bimg/TechEdIn/Ahmedabad/11.jpg" alt="" width="500" height="375" /></dt>
<dd class="wp-caption-dd">Nupur and Pinal &#8211; SolidQ and SQLAuthority Crew</dd>
</dl>
</div>
<p style="text-align:justify;"><strong>Please note: </strong>I have a few SQL Server stickers as well as SQL Server Cheat Sheets still left with me. If you want them then please send me email at pinal &#8216;at&#8217; sqlauthority.com with your name, address and telephone number.</p>
<p style="text-align:justify;">Reference : <strong>Pinal Dave (<a href="http://blog.sqlauthority.com/" target="_blank">http://blog.SQLAuthority.com</a>)</strong></p>
<p style="text-align:justify;">
Posted in MVP, Pinal Dave, SQL, SQL Authority, SQL Query, SQL Server, SQL Tips and Tricks, SQL User Group, SQLAuthority Author Visit, SQLAuthority News, SQLServer, T SQL, Technology Tagged: TechEd, TechEdIn <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/5655/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/5655/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/5655/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/5655/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/5655/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/5655/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/5655/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/5655/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/5655/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/5655/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=5655&subd=sqlauthority&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2009/06/22/sqlauthority-news-teched-on-road-ahmedabad-june-20-2009-an-astounding-success/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>

		<media:content url="http://www.pinaldave.com/bimg/TechEdIn/Ahmedabad/1.jpg" medium="image">
			<media:title type="html">TechEd On Road Ahmedabad</media:title>
		</media:content>

		<media:content url="http://www.pinaldave.com/bimg/TechEdIn/Ahmedabad/2.jpg" medium="image">
			<media:title type="html">Pinal Dave at TechEd on Road Ahmedabad</media:title>
		</media:content>

		<media:content url="http://www.pinaldave.com/bimg/TechEdIn/Ahmedabad/3.jpg" medium="image">
			<media:title type="html">Pinal and Jacob</media:title>
		</media:content>

		<media:content url="http://www.pinaldave.com/bimg/TechEdIn/Ahmedabad/4.jpg" medium="image">
			<media:title type="html">Pinal Dave from SQLAuthority.com</media:title>
		</media:content>

		<media:content url="http://www.pinaldave.com/bimg/TechEdIn/Ahmedabad/5.jpg" medium="image">
			<media:title type="html">Jacob Sebastian from BeyondRelational.com</media:title>
		</media:content>

		<media:content url="http://www.pinaldave.com/bimg/TechEdIn/Ahmedabad/6.jpg" medium="image">
			<media:title type="html">Pinal Dave at TechEd on Road Ahmedabad</media:title>
		</media:content>

		<media:content url="http://www.pinaldave.com/bimg/TechEdIn/Ahmedabad/7.jpg" medium="image">
			<media:title type="html">Jacob Sebastian at TechEd on Road hmedabad</media:title>
		</media:content>

		<media:content url="http://www.pinaldave.com/bimg/TechEdIn/Ahmedabad/8.jpg" medium="image">
			<media:title type="html">Pinal and Jacob</media:title>
		</media:content>

		<media:content url="http://www.pinaldave.com/bimg/TechEdIn/Ahmedabad/13.jpg" medium="image">
			<media:title type="html">Dipen Shah (Microsoft Student Partner)</media:title>
		</media:content>

		<media:content url="http://www.pinaldave.com/bimg/TechEdIn/Ahmedabad/12.jpg" medium="image">
			<media:title type="html">Pinal and Kaushal (MVP)</media:title>
		</media:content>

		<media:content url="http://www.pinaldave.com/bimg/TechEdIn/Ahmedabad/9.jpg" medium="image">
			<media:title type="html">Pinal and Abhishek (Digicorp)</media:title>
		</media:content>

		<media:content url="http://www.pinaldave.com/bimg/TechEdIn/Ahmedabad/10.jpg" medium="image">
			<media:title type="html">Pinal and Ritesh (SQLHub)</media:title>
		</media:content>

		<media:content url="http://www.pinaldave.com/bimg/TechEdIn/Ahmedabad/14.jpg" medium="image">
			<media:title type="html">Pinal (SQLAuthority.com), Aryaman (Arya Events), Jacob (BeyondRelational.com)</media:title>
		</media:content>

		<media:content url="http://www.pinaldave.com/bimg/TechEdIn/Ahmedabad/11.jpg" medium="image">
			<media:title type="html">Nupur and Pinal - SolidQ and SQLAuthority Crew</media:title>
		</media:content>
	</item>
		<item>
		<title>SQLAuthority News &#8211; Risk and Health Assessment Program for Microsoft SQL Server – Scoping Tool v1.1</title>
		<link>http://blog.sqlauthority.com/2009/06/21/sqlauthority-news-risk-and-health-assessment-program-for-microsoft-sql-server-%e2%80%93-scoping-tool-v1-1/</link>
		<comments>http://blog.sqlauthority.com/2009/06/21/sqlauthority-news-risk-and-health-assessment-program-for-microsoft-sql-server-%e2%80%93-scoping-tool-v1-1/#comments</comments>
		<pubDate>Sun, 21 Jun 2009 01:30:19 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[SQL Utility]]></category>
		<category><![CDATA[SQLAuthority News]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5652</guid>
		<description><![CDATA[Risk and Health Assessment Program for Microsoft SQL Server – Scoping Tool v1.1 is a practical download package intended exclusively for Microsoft Premier Customers. This package paraphernalia includes all the scoping tools required to prepare and qualify your environment to receive a Risk and Health Assessment Program for Microsoft SQL Server.
Getting started with it is [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=5652&subd=sqlauthority&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="text-align:justify;">Risk and Health Assessment Program for Microsoft SQL Server – Scoping Tool v1.1 is a practical download package intended exclusively for Microsoft Premier Customers. This package paraphernalia includes all the scoping tools required to prepare and qualify your environment to receive a Risk and Health Assessment Program for Microsoft SQL Server.</p>
<p style="text-align:justify;">Getting started with it is very easy. First, extract the Scoping Tool zip package to the tools server that will be used during the RAP engagement. Next, refer to Instructions.txt in the Scoping Tool folder for exhaustive instructions on executing the tool and gathering the results.</p>
<p style="text-align:justify;"><strong>Phases of the Risk and Health Assessment Program for Microsoft SQL Server</strong><br />
Phase 1: Data Gathering<br />
Phase 2: Data Analysis<br />
Phase 3: Reporting and Knowledge Transfer
</p>
<p style="text-align:justify;"><strong>Key Benefits of the Assessment Approach</strong></p>
<ul>
<li>Maintain Optimum Efficiency</li>
<li>Reduce Support Costs</li>
<li>Maximize the Value of Your IT Investment</li>
<li>Enhance Business Confidence</li>
</ul>
<p style="text-align:justify;">
<p style="text-align:justify;"><strong><a href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;FamilyID=7edc8686-89f6-4076-bff4-dba53c7639e7" target="_blank">Download Risk and Health Assessment Utility</a></strong></p>
<p style="text-align:justify;">Reference : <strong>Pinal Dave (</strong><a href="http://blog.sqlauthority.com/" target="_blank"><strong>http://blog.sqlauthority.com</strong></a><strong>)</strong></p>
<p style="text-align:justify;">
Posted in SQL, SQL Authority, SQL Query, SQL Server, SQL Tips and Tricks, SQL Utility, SQLAuthority News, T SQL, Technology  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/5652/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/5652/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/5652/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/5652/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/5652/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/5652/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/5652/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/5652/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/5652/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/5652/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=5652&subd=sqlauthority&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2009/06/21/sqlauthority-news-risk-and-health-assessment-program-for-microsoft-sql-server-%e2%80%93-scoping-tool-v1-1/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL Server &#8211; Understanding Table Hints with Examples</title>
		<link>http://blog.sqlauthority.com/2009/06/20/sql-server-%e2%80%93understanding-table-hints-with-examples/</link>
		<comments>http://blog.sqlauthority.com/2009/06/20/sql-server-%e2%80%93understanding-table-hints-with-examples/#comments</comments>
		<pubDate>Sat, 20 Jun 2009 01:30:44 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Joins]]></category>
		<category><![CDATA[SQL Optimization]]></category>
		<category><![CDATA[SQL Performance]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Scripts]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Query Hint]]></category>

		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5645</guid>
		<description><![CDATA[Today we have a very interesting subject to look at. I tried to look for help online but have not found any other documentation besides what we have from the Book Online.
Let us try to understand what are the different kinds of hints available in SQL Server and how they are helpful.
What is a Hint?
Hints [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=5645&subd=sqlauthority&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="text-align:justify;">Today we have a very interesting subject to look at. I tried to look for help online but have not found any other documentation besides what we have from the Book Online.</p>
<p style="text-align:justify;">Let us try to understand what are the different kinds of hints available in SQL Server and how they are helpful.</p>
<p style="text-align:justify;"><strong>What is a Hint?</strong></p>
<p style="text-align:justify;"><em>Hints </em> are options and strong suggestions specified for enforcement by the SQL Server query processor on DML statements. The hints override any execution plan the query optimizer might select for a query.</p>
<p style="text-align:justify;">Before we continue to explore this subject, we need to consider one very important fact and say some words of caution. SQL Server Query optimizer is a very smart tool and it makes a best selection of execution plan. Suggesting hints to the Query Optimizer should be attempted when absolutely necessary and by experienced developers who know exactly what they are doing (or in development as a way to experiment and learn).</p>
<p style="text-align:justify;">There are three different kinds of hints. Let us understand the basics of each of them separately.</p>
<h3 style="text-align:justify;"><a href="http://dotnetslackers.com/articles/sql/SQL-Server-Understanding-Table-Hints-with-examples.aspx" target="_blank">Please continue reading article here.</a></h3>
<p>Reference : <strong>Pinal Dave (</strong><a href="http://blog.sqlauthority.com/" target="_blank"><strong>http://blog.sqlauthority.com</strong></a><strong>)</strong></p>
Posted in Pinal Dave, SQL, SQL Authority, SQL Joins, SQL Optimization, SQL Performance, SQL Query, SQL Scripts, SQL Server, SQL Tips and Tricks, T SQL, Technology Tagged: Query Hint <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/5645/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/5645/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/5645/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/5645/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/5645/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/5645/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/5645/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/5645/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/5645/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/5645/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=5645&subd=sqlauthority&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2009/06/20/sql-server-%e2%80%93understanding-table-hints-with-examples/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL SERVER &#8211; Why You Should Attend PASS Summit Unite 2009- Seattle</title>
		<link>http://blog.sqlauthority.com/2009/06/19/sql-server-why-you-should-attend-pass-summit-unite-2009-seattle/</link>
		<comments>http://blog.sqlauthority.com/2009/06/19/sql-server-why-you-should-attend-pass-summit-unite-2009-seattle/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 01:30:29 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[MVP]]></category>
		<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[SQL User Group]]></category>
		<category><![CDATA[SQLAuthority News]]></category>
		<category><![CDATA[SQLServer]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[PASS]]></category>

		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5629</guid>
		<description><![CDATA[PASS Summit Unite 2009 &#8211; the premier event for SQL Server professionals &#8211; will be held in Seattle from November 2 to November 5. It is the largest and the most intensive Microsoft SQL Server conference in the world organized by SQL Server users for SQL Server users. This year marks the 10th Anniversary of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=5629&subd=sqlauthority&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="text-align:justify;"><a href="http://summit2009.sqlpass.org/" target="_blank"><strong>PASS Summit Unite</strong> </a><strong><a href="http://summit2009.sqlpass.org/" target="_blank">2009</a> &#8211; </strong>the premier event for SQL Server professionals &#8211; will be held in Seattle from November 2 to November 5. It is the largest and the most intensive Microsoft SQL Server conference in the world organized by SQL Server users for SQL Server users. This year marks the 10th Anniversary of PASS Community Summit, making the event even more special. Every year, this event sees a huge number of attendees, as apart from high quality technical sessions it provides unparalleled access to the Microsoft SQL Server development, SQL CAT, and Customer Service and Support teams.</p>
<p style="text-align:justify;"><img class="alignnone" src="http://www.pinaldave.com/bimg/DesktopWallpaperLight.jpg" alt="" width="500" height="316" /></p>
<p style="text-align:justify;">PASS Summit is an ideal conference for people who want to expand their knowledge. Here, sessions are available for all levels of users, from novices to experts. Specialized sessions are organized for SQL Server users who manage and support SQL Server data platforms; design, architect, and implement database solutions; architect and develop SQL Server applications; and architect, develop, and administer business intelligence solutions. So, if you are a database administrator, application developer, business intelligence and IT professional or consultant you will benefit with the latest and comprehensive SQL Server knowledge available through highest-rated technical sessions and speakers. At PASS Summit, you can choose to become a volunteer, Summit Ambassador, or even a Speaker!</p>
<p style="text-align:justify;"><img class="alignnone" src="http://www.pinaldave.com/bimg/DesktopWallpaperDark.jpg" alt="" width="500" height="316" /></p>
<p style="text-align:justify;"><strong>Why you should attend PASS Summit</strong></p>
<p style="text-align:justify;">There is not one or two but a number of reasons why you must be a part of PASS Summit. First, it is a good platform to <strong>learn the latest skills and strategies</strong> through over 160 expert-led technical sessions as well as pre/post-conference sessions, which will include every aspect of SQL Server. Here, you can sharpen your skills and stay up to date with the latest SQL Server topics and technologies. This knowledge will help you optimize SQL Server. It will also let you stay ahead of the curve as you will be among the first to learn about the latest advances, roadmaps, and plans for Microsoft SQL Server.</p>
<p style="text-align:justify;">You will get to <strong>learn SQL Server best practices</strong> from thousands of SQL Server MVPs, Microsoft team members, authors, experts, and peers who will attend the event. You can even equip yourself with the strategies and skills to improve the ROI of your SQL Server environment such as virtualization technologies, performance tuning and scaling, better hardware utilization, simplified management, need for better business intelligences, to name a few. Further, you can take advantage of the group discount and enhance the knowledge and skills of the entire team; you can send 5 employees and save.</p>
<p style="text-align:justify;">The three-day event will be marked by a lot of <strong>learning</strong>, <strong>sharing</strong>, and <strong>networking</strong>, which will help you grow both your knowledge and contacts. PASS Summit provides you a golden opportunity to build your network as well as identify and meet potential customers or employees. If you are a consultant, vendor, and are looking for better career opportunities, PASS Summit is the perfect platform to meet and show your skills to your potential new customers and employers. And if you are already employed at an organization, here you can get in touch with top-class SQL Server experts who can help you with any future needs. Moreover, breakfasts, lunches, and evening receptions, which are included with registration, are meant to provide more and more networking opportunities.</p>
<p style="text-align:justify;">Apart from gaining knowledge and networking PASS Summit is a good platform to <strong>solve high-priority, mission-critical SQL Server issues</strong> through Microsoft “<strong><em>Ask the Experts</em></strong>” Lounge and the CSS First Aid Station where you can have direct access to Microsoft developers, service and support, and MVPs.</p>
<p style="text-align:justify;">At PASS Summit, you will not just gain new ideas but will also be inspired from top professionals and experts. Learning new things about SQL Server, interacting with different kinds of professionals, and sharing issues and solutions will improve your understanding and turn you into a better SQL Server professional who can leverage and optimize SQL Server to improve business.</p>
<p style="text-align:justify;">You can find the details of the sessions here:</p>
<ul style="text-align:justify;">
<li><a href="http://summit2009.sqlpass.org/Agenda.aspx">PASS Summit 2009 Agenda</a></li>
<li><a href="http://summit2009.sqlpass.org/Agenda/AtAGlance.aspx">Agenda at a glance</a></li>
<li><a href="http://summit2009.sqlpass.org/Agenda/PrePostConferenceSessions.aspx">Pre/Post Conference Sessions</a></li>
<li><a href="http://summit2009.sqlpass.org/Agenda/SpotlightSessions.aspx">Spotlight Sessions</a></li>
<li><a href="http://summit2009.sqlpass.org/Agenda/ProgramSessions.aspx">Program Sessions</a></li>
</ul>
<p style="text-align:justify;">And last and final reason why you should visit PASS &#8211; <span style="color:#003366;"><strong>I will be there</strong></span>. Let us meet and talk SQL.</p>
<p style="text-align:justify;"><img class="alignnone" src="http://www.pinaldave.com/bimg/2009PASS_Signature02.gif" alt="" width="400" height="140" /></p>
<p style="text-align:justify;">Reference : <strong>Pinal Dave (</strong><a href="http://blog.sqlauthority.com/" target="_blank"><strong>http://blog.sqlauthority.com</strong></a><strong>)</strong></p>
Posted in MVP, Pinal Dave, SQL, SQL Authority, SQL Query, SQL Server, SQL Tips and Tricks, SQL User Group, SQLAuthority News, SQLServer, T SQL, Technology Tagged: PASS <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/5629/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/5629/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/5629/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/5629/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/5629/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/5629/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/5629/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/5629/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/5629/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/5629/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=5629&subd=sqlauthority&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2009/06/19/sql-server-why-you-should-attend-pass-summit-unite-2009-seattle/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>

		<media:content url="http://www.pinaldave.com/bimg/DesktopWallpaperLight.jpg" medium="image" />

		<media:content url="http://www.pinaldave.com/bimg/DesktopWallpaperDark.jpg" medium="image" />

		<media:content url="http://www.pinaldave.com/bimg/2009PASS_Signature02.gif" medium="image" />
	</item>
		<item>
		<title>SQL SERVER &#8211; Clustered Index on Separate Drive From Table Location</title>
		<link>http://blog.sqlauthority.com/2009/06/18/sql-server-clustered-index-on-separate-drive-from-table-location/</link>
		<comments>http://blog.sqlauthority.com/2009/06/18/sql-server-clustered-index-on-separate-drive-from-table-location/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 01:30:39 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Best Practices]]></category>
		<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Constraint and Keys]]></category>
		<category><![CDATA[SQL Index]]></category>
		<category><![CDATA[SQL Optimization]]></category>
		<category><![CDATA[SQL Performance]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5491</guid>
		<description><![CDATA[How to improve performance of SQL Server Queries is a common topic of discussion among many of us. Much has been said, much has been discussed. Few days back, I had an interesting discussion with one of the Junior developers regarding performance improvement of SQL Server Queries. We discussed on how by using a separate [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=5491&subd=sqlauthority&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="text-align:justify;"><strong>How to improve performance of SQL Server Queries</strong> is a common topic of discussion among many of us. Much has been said, much has been discussed. Few days back, I had an interesting discussion with one of the Junior developers regarding performance improvement of SQL Server Queries. We discussed on how by using a separate hard drive for several database objects can right away improve performance. I suggested him that non clustered index and tempdb can be created on a separate disk to improve performance.</p>
<p style="text-align:justify;">No sooner had I given my suggestion than I received a question &#8211; What will happen if we can create clustered index on a separate drive from the table on which it is built.</p>
<p style="text-align:justify;">My answer is : <strong>No! </strong>It is not possible at all.</p>
<p style="text-align:justify;">Let us first be clear about the difference between a clustered and a non clustered index.</p>
<p style="text-align:justify;"><strong>Clustered Index</strong></p>
<ul>
<li>Only 1 allowed per table</li>
<li>Physically rearranges data in the table to conform to the index constraints</li>
<li>For use on columns that are frequently searched for ranges of data</li>
<li>For use on columns with low selectivity</li>
</ul>
<p style="text-align:justify;"><strong>Non-Clustered Index</strong></p>
<ul>
<li>Up to 249 (for SQL Server 2005) and 999 (for SQL Server 2008) allowed per table</li>
<li>Creates a separate list of key values with pointers to the location of the data in the data pages</li>
<li>For use on columns that are searched for single values</li>
<li>For use on columns with high selectivity</li>
</ul>
<p style="text-align:justify;">A table devoid of primary key index is called heap, and here data is not arranged in a particular order, which gives rise to issues that adversely affect performance. Data must be stored in some kind of order. If we put clustered index on it then the order will be forced by that index and the data will be stored in that particular order.</p>
<p style="text-align:justify;">Reference : <strong>Pinal Dave (</strong><a href="http://blog.sqlauthority.com/" target="_blank"><strong>http://blog.sqlauthority.com</strong></a><strong>)</strong></p>
Posted in Best Practices, Pinal Dave, SQL, SQL Authority, SQL Constraint and Keys, SQL Index, SQL Optimization, SQL Performance, SQL Query, SQL Server, SQL Tips and Tricks, T SQL, Technology  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/5491/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/5491/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/5491/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/5491/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/5491/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/5491/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/5491/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/5491/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/5491/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/5491/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=5491&subd=sqlauthority&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2009/06/18/sql-server-clustered-index-on-separate-drive-from-table-location/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL SERVER &#8211; List Schema Name and Table Name for Database</title>
		<link>http://blog.sqlauthority.com/2009/06/17/sql-server-list-schema-name-and-table-name-for-database/</link>
		<comments>http://blog.sqlauthority.com/2009/06/17/sql-server-list-schema-name-and-table-name-for-database/#comments</comments>
		<pubDate>Wed, 17 Jun 2009 01:30:04 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Scripts]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5621</guid>
		<description><![CDATA[Just a day ago, I was looking for script which generates all the tables in database along with its schema name. I tried to Search@SQLAuthority.com but got too many results. For the same reason, I am going to write down today&#8217;s quick and small blog post and I will remember that I had written I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=5621&subd=sqlauthority&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="text-align:justify;">Just a day ago, I was looking for script which generates all the tables in database along with its schema name. I tried to <a href="http://search.sqlauthority.com" target="_blank">Search@SQLAuthority.com</a> but got too many results. For the same reason, I am going to write down today&#8217;s quick and small blog post and I will remember that I had written I wrote it after my <a href="http://blog.sqlauthority.com/2009/06/16/sqlauthority-news-1000th-article-milestone-8-millions-views-solid-quality-mentors/" target="_blank">1000th article</a>.</p>
<p style="text-align:justify;"><code style="font-size:12px;"><span style="color:blue;">SELECT </span><span style="color:red;">'['</span><span style="color:gray;">+</span><span style="color:black;">SCHEMA_NAME</span><span style="color:gray;">(</span><span style="color:black;">schema_id</span><span style="color:gray;">)+</span><span style="color:red;">'].['</span><span style="color:gray;">+</span><span style="color:black;">name</span><span style="color:gray;">+</span><span style="color:red;">']'<br />
</span><span style="color:blue;">AS </span><span style="color:black;">SchemaTable<br />
</span><span style="color:blue;">FROM </span><span style="color:black;">sys.tables</span></code>
</p>
<p style="text-align:justify;"><img class="alignnone" src="http://www.pinaldave.com/bimg/schematable.jpg" alt="" width="420" height="573" /></p>
<p style="text-align:justify;">Reference : <strong>Pinal Dave (</strong><a href="http://blog.sqlauthority.com/" target="_blank"><strong>http://blog.sqlauthority.com</strong></a><strong>)</strong></p>
Posted in Pinal Dave, SQL, SQL Authority, SQL Query, SQL Scripts, SQL Server, SQL Tips and Tricks, T SQL, Technology  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/5621/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/5621/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/5621/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/5621/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/5621/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/5621/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/5621/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/5621/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/5621/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/5621/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=5621&subd=sqlauthority&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2009/06/17/sql-server-list-schema-name-and-table-name-for-database/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>

		<media:content url="http://www.pinaldave.com/bimg/schematable.jpg" medium="image" />
	</item>
		<item>
		<title>SQLAuthority News &#8211; 1000th Article Milestone &#8211; 8 Millions Views &#8211; Solid Quality Mentors</title>
		<link>http://blog.sqlauthority.com/2009/06/16/sqlauthority-news-1000th-article-milestone-8-millions-views-solid-quality-mentors/</link>
		<comments>http://blog.sqlauthority.com/2009/06/16/sqlauthority-news-1000th-article-milestone-8-millions-views-solid-quality-mentors/#comments</comments>
		<pubDate>Tue, 16 Jun 2009 01:30:35 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[About Me]]></category>
		<category><![CDATA[MVP]]></category>
		<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[SQL User Group]]></category>
		<category><![CDATA[SQLAuthority News]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[SolidQ]]></category>
		<category><![CDATA[SQL Milestone]]></category>

		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5566</guid>
		<description><![CDATA[Achieving a milestone gives a great sense of accomplishment! Today, I am writing my 1000th Article on this blog. I am extremely happy and gratified.  It is indeed a long journey since I started a few years back and at that time I had no idea that within a short period I would attain so [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=5566&subd=sqlauthority&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="text-align:justify;">Achieving a milestone gives a great sense of accomplishment! Today, I am writing my<strong> 1000th Article </strong>on this blog. I am extremely happy and gratified.  It is indeed a long journey since I started a few years back and at that time I had no idea that within a short period I would attain so much appreciation and popularity.  I intend to continue my journey further and attain more milestones.</p>
<p style="text-align:justify;">I have always enjoyed learning, sharing and helping my community. Through this blog, I have met many wonderful people, made great friends and interacted with diverse readers from across the globe. My heartfelt thanks to my readers for their undeterred support and acceptance of my efforts wholeheartedly.</p>
<p style="text-align:justify;">Yesterday, this blog completed <strong>8 Million views</strong> and I am over the moon to find that there are so many regular visitors. Most of the visitors have subscribed to feed using  <a href="http://feedproxy.google.com/SQLAuthority" target="_blank">feedburner feed</a>. You can also receive posts by <a href="http://www.feedburner.com/fb/a/emailverifySubmit?feedId=872428" target="_blank">email subscription</a>.</p>
<p style="text-align:justify;">I have another reason to feel happy and proud. I would like to humbly announce that today I am taking a stepping stone towards fulfilling my passion of sharing on a different platform. I have joined a prestigious organization <a href="http://www.solidq.com/" target="_blank"><strong>Solid Quality Mentors</strong></a> as a Mentor. This is a great opportunity for me to work with experienced and talented people of BI fame like <strong><a href="http://www.solidq.com/na/MentorDetail.aspx?Id=11" target="_blank">Rushabh Mehta</a></strong> at <a href="http://www.solidq.in/" target="_blank">Solid Quality Mentors &#8211; India</a>.</p>
<p style="text-align:justify;">
<p style="text-align:justify;">
<p style="text-align:justify;">I do not want to give my milestone post a stereotyped ending with hundreds of lines revolving around my achievements.  I will end this article with the following quote expressing the importance of this event in my life and career.</p>
<p style="text-align:justify;"><strong><em>&#8220;I feel very privileged to be part of Solid Quality Mentors, Sharing my knowledge and experience with other database professionals has been a passion for me and is an integral part of my role as a SQL Server MVP. Now, Solid Quality Mentors is giving me a solid platform from which I can pursue my passion while working alongside such experienced and talented people as Rushabh Mehta. I look forward to my new role as Mentor, helping organizations make the most of their SQL Server technology, and adding value to the Solid Quality team in India.&#8221;</em></strong></p>
<p style="text-align:justify;">
<p style="text-align:justify;">Join me at <a href="http://techedahmedabad.eventbrite.com/" target="_blank">TechEd Ahmedabad</a> on SaturdayJun 20, 2009  at 2 PM.</p>
<p style="text-align:justify;"><em>Press Release 1 : </em><a href="http://www.pr.com/press-release/158696" target="_blank">Solid Quality Mentors Says ‘Namaste, India’ as It Opens Operations in Mumbai</a></p>
<p style="text-align:justify;"><em>Press Release 2 : </em><a href="http://www.pr.com/press-release/158734" target="_blank">SQL Server MVP Pinal Dave—the Voice of SQLAuthority.com—Joins Solid Quality Mentors in India</a></p>
<p style="text-align:justify;">Reference : <strong>Pinal Dave (</strong><a href="http://blog.sqlauthority.com/" target="_blank"><strong>http://blog.sqlauthority.com</strong></a><strong>)</strong></p>
Posted in About Me, MVP, Pinal Dave, SQL, SQL Authority, SQL Query, SQL Server, SQL Tips and Tricks, SQL User Group, SQLAuthority News, T SQL, Technology Tagged: SolidQ, SQL Milestone <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/5566/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/5566/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/5566/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/5566/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/5566/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/5566/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/5566/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/5566/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/5566/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/5566/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=5566&subd=sqlauthority&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2009/06/16/sqlauthority-news-1000th-article-milestone-8-millions-views-solid-quality-mentors/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL SERVER &#8211; Query Optimizer Hint ROBUST PLAN &#8211; Question to You</title>
		<link>http://blog.sqlauthority.com/2009/06/15/sql-server-query-optimizer-hint-robust-plan-question-to-you/</link>
		<comments>http://blog.sqlauthority.com/2009/06/15/sql-server-query-optimizer-hint-robust-plan-question-to-you/#comments</comments>
		<pubDate>Mon, 15 Jun 2009 01:30:28 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Optimization]]></category>
		<category><![CDATA[SQL Performance]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Scripts]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[SQLServer]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Query Hint]]></category>

		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5467</guid>
		<description><![CDATA[While cleaning up my bookmarks this week, I stumbled upon a very small interesting thing. I can proudly call myself a pro at finding stuffs, but after continuously hunting online I could not gather comprehensive information about this topic. I was actually looking for a practical example for Query Optimizer Hint &#8220;ROBUST PLAN&#8221;. Before I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=5467&subd=sqlauthority&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="text-align:justify;">While cleaning up my bookmarks this week, I stumbled upon a very small interesting thing. I can proudly call myself a pro at finding stuffs, but after continuously hunting online I could not gather comprehensive information about this topic. I was actually looking for a practical example for Query Optimizer Hint &#8220;ROBUST PLAN&#8221;. Before I seek help from you, let us first try to understand what query optimizer hints is and then we will move on to the concept of &#8220;ROBUST PLAN&#8221;.</p>
<p style="text-align:justify;">To put it simply, <strong>Query hints</strong> is a T-SQL clause which on running directs T-SQL query to run in a particular manner using suggested index, joins or other logic. Query hints can force the kind of execution plan SQL Server needs. In general, SQL Server query optimizer selects the best execution plan itself to run any query; it is a good idea to just keep it at its default setting.</p>
<p style="text-align:justify;"><strong>&#8220;ROBUST PLAN&#8221;</strong> is a kind of query hint which works quite differently than other hints. It does not improve join or force any indexes to use; it just makes sure that a query does not crash due to over the limit size of row. Let me elaborate upon it. In a table, there is an outsized row that crashes any operation going over it. T-SQL has specific query hint where query engine ignores such an outsized row which will potentially crash it and stop from working. Using ROBUST PLAN, query optimizer can be forced to ignore such errors that are generated because of outsized rows. This usually does not happen with SQL Server 2005 because of its tremendous capacity of row size (2 GB). However, here we are not talking about row size beyond the limit; we are talking about SQL operation that considers the given row to be too large for this operation, even if the row is in MB or less.</p>
<p style="text-align:justify;">Now, after having thoroughly gone through the above two explanations, I request you all to find out which operation can generate this error and compel us to use ROBUST PLAN hint. I am disappointed after my extensive online search. I could not find a single example or information by anyone where they have suggested that they needed this hint. According to me, this is a useful feature which can be used wisely, as this hint reduces the performance as well in some cases. For queries where the entire execution is not working, this is at least a better option where you can expect to obtain some answer<strong>.</strong></p>
<p style="text-align:justify;"><em><strong>I am looking for a query which runs fine with option &#8220;ROBUST PLAN&#8221; but without it the query fails to produce any result and generates error.</strong></em></p>
<p style="text-align:justify;">If you know the answer, then please share it with me. I will post your answer here with due credit.</p>
<p style="text-align:justify;">Reference : <strong>Pinal Dave (<a href="http://blog.sqlauthority.com/" target="_blank">http://blog.SQLAuthority.com</a>)</strong></p>
<p style="text-align:justify;"><em><strong><br />
</strong></em></p>
<div id="_mcePaste" style="overflow:hidden;position:absolute;left:-10000px;top:0;width:1px;height:1px;">While cleaning up my bookmarks this week, I stumbled upon a very small interesting thing. I can proudly call myself a pro at finding stuffs, but after continuously hunting online I could not gather comprehensive information about this topic. I was actually looking for a practical example for Query Optimizer Hint &#8220;ROBUST PLAN&#8221;. Before I seek help from you, let us first try to understand what query optimizer hints is and then we will move on to the concept of</div></p>
Posted in Pinal Dave, SQL, SQL Authority, SQL Optimization, SQL Performance, SQL Query, SQL Scripts, SQL Server, SQL Tips and Tricks, SQLServer, T SQL, Technology Tagged: Query Hint <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/5467/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/5467/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/5467/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/5467/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/5467/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/5467/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/5467/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/5467/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/5467/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/5467/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&blog=668536&post=5467&subd=sqlauthority&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2009/06/15/sql-server-query-optimizer-hint-robust-plan-question-to-you/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>
	</item>
	</channel>
</rss>