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

<channel>
	<title>SQL Server Journey with SQL Authority &#187; Readers Question</title>
	<atom:link href="http://blog.sqlauthority.com/category/readers-question/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Wed, 08 Feb 2012 13:09:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='blog.sqlauthority.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/08e35387c05b61340e885b1763a69d9f?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>SQL Server Journey with SQL Authority &#187; Readers Question</title>
		<link>http://blog.sqlauthority.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://blog.sqlauthority.com/osd.xml" title="SQL Server Journey with SQL Authority" />
	<atom:link rel='hub' href='http://blog.sqlauthority.com/?pushpress=hub'/>
		<item>
		<title>SQL SERVER &#8211; What is Slowly Changing Dimension &#8211; Quiz &#8211; Puzzle &#8211; 31 of 31</title>
		<link>http://blog.sqlauthority.com/2012/02/01/sql-server-what-is-slowly-changing-dimension-quiz-puzzle-31-of-31/</link>
		<comments>http://blog.sqlauthority.com/2012/02/01/sql-server-what-is-slowly-changing-dimension-quiz-puzzle-31-of-31/#comments</comments>
		<pubDate>Wed, 01 Feb 2012 01:30:23 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[PostADay]]></category>
		<category><![CDATA[Readers Contribution]]></category>
		<category><![CDATA[Readers Question]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Interview Questions and Answers]]></category>
		<category><![CDATA[SQL Puzzle]]></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=16651</guid>
		<description><![CDATA[Year 2011 was a year of learning and opportunity for me. My recent book, SQL Server Interview Questions and Answers, has received such overwhelming love and support from all of you. While writing the book, I had two simple goals: (1) Master the Basics and (2) Ignite Learning. There was a constant request from the Community to take the learning of these books to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=16651&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Year 2011 was a year of learning and opportunity for me. My recent book, <a href="http://blog.sqlauthority.com/sql-server-books/sql-server-interview-questions-and-answers-for-all-database-developers-and-developers-administrators/" target="_blank"><strong>SQL Server Interview Questions and Answers</strong></a>, has received such overwhelming love and support from all of you. While writing the book, I had <a href="http://blog.sqlauthority.com/2011/12/22/sql-server-mastering-the-basics-igniting-learning-a-unique-learning-experience/" target="_blank"><strong>two simple goals</strong></a>: (1) <strong><em>Master the Basics</em></strong> and (2) <strong><em>Ignite Learning</em></strong>. There was a constant request from the Community to take the learning of these books to the next level. Here is an article which discusses the <a href="http://blog.sqlauthority.com/2012/01/01/sql-server-interview-questions-and-answers-perspectives-of-an-author/" target="_blank"><strong>Author&#8217;s Perspective</strong></a>.</p>
<p style="text-align:justify;">Beyond Relational has come up with a very interesting concept &#8211; they have converted a few of the questions from my book into<strong> </strong>the<strong> </strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/default.aspx" target="_blank"><strong>SQL Quiz</strong></a>. The quiz is indeed focused on my two goals. In addition, it’s going to put the learning of the book to a higher stage. Looking at this novel concept, <a href="http://blogs.extremeexperts.com/" target="_blank"><strong>Vinod Kumar</strong></a> (Co-author) and I have decided to help every participant and reader by giving a few hints and suggestions to solve the quiz.</p>
<p style="text-align:justify;"><img class="alignnone" style="margin:2px;" src="http://www.pinaldave.com/bimg/num/31.jpg" alt="" width="500" height="500" /></p>
<h3 style="text-align:justify;">SQL Quiz</h3>
<p style="text-align:justify;">Reporting and analytics cannot be achieved without a very good data model at the background. And using Analysis services for reporting requirement is always something very common architecture to this. But getting data from relational engine and keeping data for analysis up to date is the challenge. Having these in mind, what is the concept of Slowly Changing Dimension? And what is a Hybrid Slowly Changing Dimension?</p>
<p style="text-align:justify;"><strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/questions/218/reporting-and-analytics-cannot-be-achieved-without-a-very-good-data-model-at-the-background.aspx" target="_blank">Link to participate in SQL Quiz</a></strong></p>
<h3 style="text-align:justify;">Notes of Vinod Kumar</h3>
<p style="text-align:justify;">Modeling can be a tricky activity. The way to load a <a href="http://msdn.microsoft.com/en-us/library/ms141715.aspx?WT.mc_id=aff-n-in-loc--pd" target="_blank">SCD </a> can be achieved interestingly via the SSIS route. Though the basics of SCD can be a larger discussion, tell us more about a thing or two on what you have learned so far in loading SCD.</p>
<h3 style="text-align:justify;">Notes of Pinal Dave</h3>
<p style="text-align:justify;">Let us talk about a product in a shop. Let us assume the product is newly launched. The price of the product is very high and it is put in the ‘newly arrived products’ section. After. a while the book becomes best seller and it is moved to the ‘best seller’ section. As time progresses, the rate of sales of the book declines, leading to it getting moved off the best sellers’ group to the ‘regular items’ section. Eventually, the same book is moved to the bargain section and with a very low price value. Well, this product life process is slow changing. If we consider the price of the book as well as the duration it spent in particular section, it is very much comparable to a slowly changing dimension in SQL Server. Now that you know this simple comparison, the quiz should be easier for you.</p>
<h3 style="text-align:justify;">Additional Notes</h3>
<p style="text-align:justify;">SQL Server Interview Questions and Answers ISBN: 1466405643 Page#179-180</p>
<h3 style="text-align:justify;">Prize</h3>
<p style="text-align:justify;">There are exciting prizes awaiting the winners. Click here for <a href="http://beyondrelational.com/quiz/sqlserver/general/2012/prizes.aspx" target="_blank">Prizes</a> and <a href="http://beyondrelational.com/quiz/faq.aspx" target="_blank">Frequently Asked Questions</a>.</p>
<p style="text-align:justify;"><strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/questions/218/reporting-and-analytics-cannot-be-achieved-without-a-very-good-data-model-at-the-background.aspx" target="_blank">Link to participate in SQL Quiz</a></strong></p>
<p style="text-align:justify;">Note: SQL Quiz, winners and prizes are administrated by Beyond Relational. The goal of this blog post is to provide additional learning pointers only.</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>
<br />Filed under: <a href='http://blog.sqlauthority.com/category/tech/pinal-dave/'>Pinal Dave</a>, <a href='http://blog.sqlauthority.com/category/technology/postaday/'>PostADay</a>, <a href='http://blog.sqlauthority.com/category/readers-contribution/'>Readers Contribution</a>, <a href='http://blog.sqlauthority.com/category/readers-question/'>Readers Question</a>, <a href='http://blog.sqlauthority.com/category/technology/sql/'>SQL</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-authority/'>SQL Authority</a>, <a href='http://blog.sqlauthority.com/category/sql-interview-questions-and-answers/'>SQL Interview Questions and Answers</a>, <a href='http://blog.sqlauthority.com/category/sql-puzzle/'>SQL Puzzle</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-query/'>SQL Query</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-server/'>SQL Server</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-tips-and-tricks/'>SQL Tips and Tricks</a>, <a href='http://blog.sqlauthority.com/category/technology/t-sql/'>T SQL</a>, <a href='http://blog.sqlauthority.com/category/technology/'>Technology</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/16651/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/16651/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/16651/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/16651/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sqlauthority.wordpress.com/16651/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sqlauthority.wordpress.com/16651/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sqlauthority.wordpress.com/16651/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sqlauthority.wordpress.com/16651/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/16651/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/16651/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/16651/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/16651/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/16651/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/16651/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=16651&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2012/02/01/sql-server-what-is-slowly-changing-dimension-quiz-puzzle-31-of-31/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/num/31.jpg" medium="image" />
	</item>
		<item>
		<title>SQL SERVER &#8211; Advantages of Partitioning &#8211; Quiz &#8211; Puzzle &#8211; 30 of 31</title>
		<link>http://blog.sqlauthority.com/2012/01/31/sql-server-advantages-of-partitioning-quiz-puzzle-30-of-31/</link>
		<comments>http://blog.sqlauthority.com/2012/01/31/sql-server-advantages-of-partitioning-quiz-puzzle-30-of-31/#comments</comments>
		<pubDate>Tue, 31 Jan 2012 01:30:43 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[PostADay]]></category>
		<category><![CDATA[Readers Contribution]]></category>
		<category><![CDATA[Readers Question]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Interview Questions and Answers]]></category>
		<category><![CDATA[SQL Puzzle]]></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=16648</guid>
		<description><![CDATA[Year 2011 was a year of learning and opportunity for me. My recent book, SQL Server Interview Questions and Answers, has received such overwhelming love and support from all of you. While writing the book, I had two simple goals: (1) Master the Basics and (2) Ignite Learning. There was a constant request from the Community to take the learning of these books to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=16648&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Year 2011 was a year of learning and opportunity for me. My recent book, <a href="http://blog.sqlauthority.com/sql-server-books/sql-server-interview-questions-and-answers-for-all-database-developers-and-developers-administrators/" target="_blank"><strong>SQL Server Interview Questions and Answers</strong></a>, has received such overwhelming love and support from all of you. While writing the book, I had <a href="http://blog.sqlauthority.com/2011/12/22/sql-server-mastering-the-basics-igniting-learning-a-unique-learning-experience/" target="_blank"><strong>two simple goals</strong></a>: (1) <strong><em>Master the Basics</em></strong> and (2) <strong><em>Ignite Learning</em></strong>. There was a constant request from the Community to take the learning of these books to the next level. Here is an article which discusses the <a href="http://blog.sqlauthority.com/2012/01/01/sql-server-interview-questions-and-answers-perspectives-of-an-author/" target="_blank"><strong>Author&#8217;s Perspective</strong></a>.</p>
<p style="text-align:justify;">Beyond Relational has come up with a very interesting concept &#8211; they have converted a few of the questions from my book into<strong> </strong>the<strong> </strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/default.aspx" target="_blank"><strong>SQL Quiz</strong></a>. The quiz is indeed focused on my two goals. In addition, it’s going to put the learning of the book to a higher stage. Looking at this novel concept, <a href="http://blogs.extremeexperts.com/" target="_blank"><strong>Vinod Kumar</strong></a> (Co-author) and I have decided to help every participant and reader by giving a few hints and suggestions to solve the quiz.</p>
<h3 style="text-align:justify;">SQL Quiz</h3>
<p style="text-align:justify;"><img class="alignleft" style="margin:2px;" src="http://www.pinaldave.com/bimg/num/30.jpg" alt="" />As databases volumes become bigger and bigger, the best way to optimize would be to take the huge problem and break it up into smaller chunks. During a large server deployment, a DBA used this advice; he suggested implementing an extensive partitioning for our transaction tables. In line with this, what are the basics of creating, managing and deploying SQL Server partitioning?</p>
<p style="text-align:justify;"><strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/questions/217/as-databases-volumes-become-big-and-big-the-best-way-to-optimize-would-be-take-the-big-problem.aspx" target="_blank">Link to participate in SQL Quiz</a></strong></p>
<h3 style="text-align:justify;">Notes of Vinod Kumar</h3>
<p style="text-align:justify;">There are several options when it comes to using partitioning concepts inside SQL Server. Here’s a <a href="http://msdn.microsoft.com/en-us/library/ms178148.aspx?WT.mc_id=aff-n-in-loc--pd" target="_blank">hint</a>: choose and explain what SQL Server introduced and what has been enhanced in SQL Server 2008 version.  In relation to this, can you tellm at Aligned Indexes are when it comes to partitioning?</p>
<h3 style="text-align:justify;">Notes of Pinal Dave</h3>
<p style="text-align:justify;">Partitioning is a very old concept, yet it has always been implemented indirectly. I remember durinv my very early career years, we used to create partitioning using the work around. When any table gets very huge and has an enormous amount of data into the table, we used to create new table by means of appending it with _1 or _2 value. After doing that, we created the view on the top of this table and selected the data from it. This way, we had to change a few parts of our code and we had to implement the concept of partitioning right away. Now, in SQL Server, we get the partitioning feature as a native feature, as well as means of getting a cool syntax to populate and remove data.</p>
<h3 style="text-align:justify;">Additional Notes</h3>
<p style="text-align:justify;">SQL Server Interview Questions and Answers ISBN: 1466405643 Page#168-170<br />
<a href="http://blog.sqlauthority.com/2008/01/25/sql-server-2005-database-table-partitioning-tutorial-how-to-horizontal-partition-database-table/" target="_blank">Database Table Partitioning Tutorial – How to Horizontal Partition Database Table</a><br />
<a href="http://blog.sqlauthority.com/2009/12/13/sql-server-white-paper-partitioned-table-and-index-strategies-using-sql-server-2008/" target="_blank">White Paper – Partitioned Table and Index Strategies Using SQL Server 2008</a></p>
<h3 style="text-align:justify;">Prize</h3>
<p style="text-align:justify;">There are exciting prizes awaiting the winners. Click here for <a href="http://beyondrelational.com/quiz/sqlserver/general/2012/prizes.aspx" target="_blank">Prizes</a> and <a href="http://beyondrelational.com/quiz/faq.aspx" target="_blank">Frequently Asked Questions</a>.</p>
<p style="text-align:justify;"><strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/questions/217/as-databases-volumes-become-big-and-big-the-best-way-to-optimize-would-be-take-the-big-problem.aspx" target="_blank">Link to participate in SQL Quiz</a></strong></p>
<p style="text-align:justify;">Note: SQL Quiz, winners and prizes are administrated by Beyond Relational. The goal of this blog post is to provide additional learning pointers only.</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>
<br />Filed under: <a href='http://blog.sqlauthority.com/category/tech/pinal-dave/'>Pinal Dave</a>, <a href='http://blog.sqlauthority.com/category/technology/postaday/'>PostADay</a>, <a href='http://blog.sqlauthority.com/category/readers-contribution/'>Readers Contribution</a>, <a href='http://blog.sqlauthority.com/category/readers-question/'>Readers Question</a>, <a href='http://blog.sqlauthority.com/category/technology/sql/'>SQL</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-authority/'>SQL Authority</a>, <a href='http://blog.sqlauthority.com/category/sql-interview-questions-and-answers/'>SQL Interview Questions and Answers</a>, <a href='http://blog.sqlauthority.com/category/sql-puzzle/'>SQL Puzzle</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-query/'>SQL Query</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-server/'>SQL Server</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-tips-and-tricks/'>SQL Tips and Tricks</a>, <a href='http://blog.sqlauthority.com/category/technology/t-sql/'>T SQL</a>, <a href='http://blog.sqlauthority.com/category/technology/'>Technology</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/16648/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/16648/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/16648/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/16648/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sqlauthority.wordpress.com/16648/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sqlauthority.wordpress.com/16648/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sqlauthority.wordpress.com/16648/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sqlauthority.wordpress.com/16648/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/16648/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/16648/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/16648/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/16648/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/16648/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/16648/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=16648&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2012/01/31/sql-server-advantages-of-partitioning-quiz-puzzle-30-of-31/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/num/30.jpg" medium="image" />
	</item>
		<item>
		<title>SQL SERVER &#8211; Data Collector Usage &#8211; Quiz &#8211; Puzzle &#8211; 29 of 31</title>
		<link>http://blog.sqlauthority.com/2012/01/30/sql-server-data-collector-usage-quiz-puzzle-29-of-31/</link>
		<comments>http://blog.sqlauthority.com/2012/01/30/sql-server-data-collector-usage-quiz-puzzle-29-of-31/#comments</comments>
		<pubDate>Mon, 30 Jan 2012 01:30:02 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[PostADay]]></category>
		<category><![CDATA[Readers Contribution]]></category>
		<category><![CDATA[Readers Question]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Interview Questions and Answers]]></category>
		<category><![CDATA[SQL Puzzle]]></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=16641</guid>
		<description><![CDATA[Year 2011 was a year of learning and opportunity for me. My recent book, SQL Server Interview Questions and Answers, has received such overwhelming love and support from all of you. While writing the book, I had two simple goals: (1) Master the Basics and (2) Ignite Learning. There was a constant request from the Community to take the learning of these books to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=16641&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Year 2011 was a year of learning and opportunity for me. My recent book, <a href="http://blog.sqlauthority.com/sql-server-books/sql-server-interview-questions-and-answers-for-all-database-developers-and-developers-administrators/" target="_blank"><strong>SQL Server Interview Questions and Answers</strong></a>, has received such overwhelming love and support from all of you. While writing the book, I had <a href="http://blog.sqlauthority.com/2011/12/22/sql-server-mastering-the-basics-igniting-learning-a-unique-learning-experience/" target="_blank"><strong>two simple goals</strong></a>: (1) <strong><em>Master the Basics</em></strong> and (2) <strong><em>Ignite Learning</em></strong>. There was a constant request from the Community to take the learning of these books to the next level. Here is an article which discusses the <a href="http://blog.sqlauthority.com/2012/01/01/sql-server-interview-questions-and-answers-perspectives-of-an-author/" target="_blank"><strong>Author&#8217;s Perspective</strong></a>.</p>
<p style="text-align:justify;">Beyond Relational has come up with a very interesting concept &#8211; they have converted a few of the questions from my book into<strong> </strong>the<strong> </strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/default.aspx" target="_blank"><strong>SQL Quiz</strong></a>. The quiz is indeed focused on my two goals. In addition, it’s going to put the learning of the book to a higher stage. Looking at this novel concept, <a href="http://blogs.extremeexperts.com/" target="_blank"><strong>Vinod Kumar</strong></a> (Co-author) and I have decided to help every participant and reader by giving a few hints and suggestions to solve the quiz.</p>
<h3 style="text-align:justify;">SQL Quiz</h3>
<p style="text-align:justify;"><img class="alignleft" style="margin:2px;" src="http://www.pinaldave.com/bimg/num/29.jpg" alt="" /></p>
<p style="text-align:justify;">From Perfmon to SQL Profiler to other third Party tools, there are a good number of performance troubleshooting tools which a DBA can use inside SQL Server. One of the hidden features of most troubleshooting tools is the Data Collector inside SQL Server. What is a Data Collector, anyway? What are the predefined collectors inside SQL Server which can be used?</p>
<p style="text-align:justify;"><strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/questions/216/there-are-multiple-performance-troubleshooting-tools-which-a-dba-can-use-inside-sql-server.aspx" target="_blank">Link to participate in SQL Quiz</a></strong></p>
<h3 style="text-align:justify;">Notes of Vinod Kumar</h3>
<p style="text-align:justify;">Data Collector is truly a hidden gem in SQL Server. <a href="http://msdn.microsoft.com/en-us/library/bb677248.aspx?WT.mc_id=aff-n-in-loc--pd" target="_blank">Data Collector</a> is a great tool to track what is happening inside the SQL Server. Are you using the Data Collector? Have you extended it by any chance? Let us hear your stories and how would you have implemented the same in SQL Server 2005 versions?</p>
<h3 style="text-align:justify;">Notes of Pinal Dave</h3>
<p style="text-align:justify;">Data Collection is our old habit. Isn&#8217;t that the very reason why we have reached this far? I think we might have started to count because we wanted to remember how much inventory we have (may be not &#8211; but you got the point). Now, collection of the data is not really helpful unless they are arranged, filtered, cleaned up and put together in a nice algorithm. These can make data start talking and reveal its various intelligence. Data Collector is a very important subject, but I often see it not getting the proper exposure as it deserves.</p>
<h3 style="text-align:justify;">Additional Notes</h3>
<p style="text-align:justify;">SQL Server Interview Questions and Answers ISBN: 1466405643 Page#144</p>
<h3 style="text-align:justify;">Prize</h3>
<p style="text-align:justify;">There are exciting prizes awaiting the winners. Click here for <a href="http://beyondrelational.com/quiz/sqlserver/general/2012/prizes.aspx" target="_blank">Prizes</a> and <a href="http://beyondrelational.com/quiz/faq.aspx" target="_blank">Frequently Asked Questions</a>.</p>
<p style="text-align:justify;"><strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/questions/216/there-are-multiple-performance-troubleshooting-tools-which-a-dba-can-use-inside-sql-server.aspx" target="_blank">Link to participate in SQL Quiz</a></strong></p>
<p style="text-align:justify;">Note: SQL Quiz, winners and prizes are administrated by Beyond Relational. The goal of this blog post is to provide additional learning pointers only.</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>
<br />Filed under: <a href='http://blog.sqlauthority.com/category/tech/pinal-dave/'>Pinal Dave</a>, <a href='http://blog.sqlauthority.com/category/technology/postaday/'>PostADay</a>, <a href='http://blog.sqlauthority.com/category/readers-contribution/'>Readers Contribution</a>, <a href='http://blog.sqlauthority.com/category/readers-question/'>Readers Question</a>, <a href='http://blog.sqlauthority.com/category/technology/sql/'>SQL</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-authority/'>SQL Authority</a>, <a href='http://blog.sqlauthority.com/category/sql-interview-questions-and-answers/'>SQL Interview Questions and Answers</a>, <a href='http://blog.sqlauthority.com/category/sql-puzzle/'>SQL Puzzle</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-query/'>SQL Query</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-server/'>SQL Server</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-tips-and-tricks/'>SQL Tips and Tricks</a>, <a href='http://blog.sqlauthority.com/category/technology/t-sql/'>T SQL</a>, <a href='http://blog.sqlauthority.com/category/technology/'>Technology</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/16641/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/16641/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/16641/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/16641/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sqlauthority.wordpress.com/16641/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sqlauthority.wordpress.com/16641/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sqlauthority.wordpress.com/16641/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sqlauthority.wordpress.com/16641/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/16641/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/16641/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/16641/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/16641/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/16641/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/16641/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=16641&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2012/01/30/sql-server-data-collector-usage-quiz-puzzle-29-of-31/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/num/29.jpg" medium="image" />
	</item>
		<item>
		<title>SQL SERVER &#8211; Reclaiming Space Back from Database &#8211; Quiz &#8211; Puzzle &#8211; 28 of 31</title>
		<link>http://blog.sqlauthority.com/2012/01/29/sql-server-reclaiming-space-back-from-database-quiz-puzzle-28-of-31/</link>
		<comments>http://blog.sqlauthority.com/2012/01/29/sql-server-reclaiming-space-back-from-database-quiz-puzzle-28-of-31/#comments</comments>
		<pubDate>Sun, 29 Jan 2012 01:30:36 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[PostADay]]></category>
		<category><![CDATA[Readers Contribution]]></category>
		<category><![CDATA[Readers Question]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Interview Questions and Answers]]></category>
		<category><![CDATA[SQL Puzzle]]></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=16640</guid>
		<description><![CDATA[Year 2011 was a year of learning and opportunity for me. My recent book, SQL Server Interview Questions and Answers, has received such overwhelming love and support from all of you. While writing the book, I had two simple goals: (1) Master the Basics and (2) Ignite Learning. There was a constant request from the Community to take the learning of these books to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=16640&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Year 2011 was a year of learning and opportunity for me. My recent book, <a href="http://blog.sqlauthority.com/sql-server-books/sql-server-interview-questions-and-answers-for-all-database-developers-and-developers-administrators/" target="_blank"><strong>SQL Server Interview Questions and Answers</strong></a>, has received such overwhelming love and support from all of you. While writing the book, I had <a href="http://blog.sqlauthority.com/2011/12/22/sql-server-mastering-the-basics-igniting-learning-a-unique-learning-experience/" target="_blank"><strong>two simple goals</strong></a>: (1) <strong><em>Master the Basics</em></strong> and (2) <strong><em>Ignite Learning</em></strong>. There was a constant request from the Community to take the learning of these books to the next level. Here is an article which discusses the <a href="http://blog.sqlauthority.com/2012/01/01/sql-server-interview-questions-and-answers-perspectives-of-an-author/" target="_blank"><strong>Author&#8217;s Perspective</strong></a>.</p>
<p style="text-align:justify;">Beyond Relational has come up with a very interesting concept &#8211; they have converted a few of the questions from my book into<strong> </strong>the<strong> </strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/default.aspx" target="_blank"><strong>SQL Quiz</strong></a>. The quiz is indeed focused on my two goals. In addition, it’s going to put the learning of the book to a higher stage. Looking at this novel concept, <a href="http://blogs.extremeexperts.com/" target="_blank"><strong>Vinod Kumar</strong></a> (Co-author) and I have decided to help every participant and reader by giving a few hints and suggestions to solve the quiz.</p>
<h3 style="text-align:justify;">SQL Quiz</h3>
<p style="text-align:justify;"><img class="alignleft" style="margin:2px;" src="http://www.pinaldave.com/bimg/num/28.jpg" alt="" /></p>
<p style="text-align:justify;">Recently, I was contacted by one of my friends who operated a large database. He told me he was running out of disk space because some tables with many indexes were unnecessarily created. Even after truncating the table, the space was not given back to the OS. When does SQL Server give the space back once data is deleted?</p>
<p style="text-align:justify;"><strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/questions/215/recently-i-was-contacted-by-one-of-my-friends-operating-a-large-database-that-he-was-running-out-of.aspx" target="_blank">Link to participate in SQL Quiz</a></strong></p>
<h3 style="text-align:justify;">Notes of Vinod Kumar</h3>
<p style="text-align:justify;">There are multiple options, but to get the space back, but what are your other options to explore to reclaim the space and yet not get into fragmentation problems. Let me give you a <a href="http://msdn.microsoft.com/en-us/library/ms189493.aspx" target="_blank">hint</a>.</p>
<h3 style="text-align:justify;">Notes of Pinal Dave</h3>
<p style="text-align:justify;">There was a time when hard drives were expensive and space was the most important asset. I remember having my very first computer with only 2 GB of hard drive and 16 MB of RAM. At that time, space was truly a very important concept. File splitter was very important as we needed to fit every thing in multiple floppies. But in the modern age we have today, the once-expensive hard drives became so much cheaper, which led the importance of the space to become not as much as it was years back. In spite of this, I still see lots of efforts in the database world to reclaim the space back from the database. I often come across people become worried about keeping the database size as small as possible. Their worries made them attempt DBCC ShrinkDB and other tricks that are seriously not recommended. I think today&#8217;s question is in this similar line. We all have faced a situation when the table is deleted and yet the space is not released to OS by SQL Server. Any idea why this occurs?</p>
<h3 style="text-align:justify;">Additional Notes</h3>
<p style="text-align:justify;">SQL Server Interview Questions and Answers ISBN: 1466405643 Page#136<br />
<a href="http://blog.sqlauthority.com/2010/08/12/sql-server-shrinkdatabase-for-every-database-in-the-sql-server/" target="_blank">SHRINKDATABASE For Every Database in the SQL Server</a><br />
<a href="http://blog.sqlauthority.com/2011/01/19/sql-server-shrinking-database-is-bad-increases-fragmentation-reduces-performance/" target="_blank">Shrinking Database is Bad – Increases Fragmentation – Reduces Performance</a><br />
<a href="http://blog.sqlauthority.com/2008/01/11/sql-server-reclaim-space-after-dropping-variable-length-columns-using-dbcc-cleantable/" target="_blank">Reclaim Space After Dropping Variable-Length Columns Using DBCC CLEANTABLE</a><br />
<a href="http://blog.sqlauthority.com/2010/03/01/sql-server-data-and-page-compressions-data-storage-and-io-improvement/" target="_blank">Data and Page Compressions – Data Storage and IO Improvement</a></p>
<h3 style="text-align:justify;">Prize</h3>
<p style="text-align:justify;">There are exciting prizes awaiting the winners. Click here for <a href="http://beyondrelational.com/quiz/sqlserver/general/2012/prizes.aspx" target="_blank">Prizes</a> and <a href="http://beyondrelational.com/quiz/faq.aspx" target="_blank">Frequently Asked Questions</a>.</p>
<p style="text-align:justify;"><strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/questions/215/recently-i-was-contacted-by-one-of-my-friends-operating-a-large-database-that-he-was-running-out-of.aspx" target="_blank">Link to participate in SQL Quiz</a></strong></p>
<p style="text-align:justify;">Note: SQL Quiz, winners and prizes are administrated by Beyond Relational. The goal of this blog post is to provide additional learning pointers only.</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>
<br />Filed under: <a href='http://blog.sqlauthority.com/category/tech/pinal-dave/'>Pinal Dave</a>, <a href='http://blog.sqlauthority.com/category/technology/postaday/'>PostADay</a>, <a href='http://blog.sqlauthority.com/category/readers-contribution/'>Readers Contribution</a>, <a href='http://blog.sqlauthority.com/category/readers-question/'>Readers Question</a>, <a href='http://blog.sqlauthority.com/category/technology/sql/'>SQL</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-authority/'>SQL Authority</a>, <a href='http://blog.sqlauthority.com/category/sql-interview-questions-and-answers/'>SQL Interview Questions and Answers</a>, <a href='http://blog.sqlauthority.com/category/sql-puzzle/'>SQL Puzzle</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-query/'>SQL Query</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-server/'>SQL Server</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-tips-and-tricks/'>SQL Tips and Tricks</a>, <a href='http://blog.sqlauthority.com/category/technology/t-sql/'>T SQL</a>, <a href='http://blog.sqlauthority.com/category/technology/'>Technology</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/16640/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/16640/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/16640/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/16640/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sqlauthority.wordpress.com/16640/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sqlauthority.wordpress.com/16640/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sqlauthority.wordpress.com/16640/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sqlauthority.wordpress.com/16640/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/16640/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/16640/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/16640/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/16640/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/16640/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/16640/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=16640&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2012/01/29/sql-server-reclaiming-space-back-from-database-quiz-puzzle-28-of-31/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/num/28.jpg" medium="image" />
	</item>
		<item>
		<title>SQL SERVER &#8211; Lots of Date Functions &#8211; Find Right One to Use &#8211; Quiz &#8211; Puzzle &#8211; 27 of 31</title>
		<link>http://blog.sqlauthority.com/2012/01/28/sql-server-lots-of-date-functions-find-right-one-to-use-quiz-puzzle-27-of-31/</link>
		<comments>http://blog.sqlauthority.com/2012/01/28/sql-server-lots-of-date-functions-find-right-one-to-use-quiz-puzzle-27-of-31/#comments</comments>
		<pubDate>Sat, 28 Jan 2012 01:30:43 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[PostADay]]></category>
		<category><![CDATA[Readers Contribution]]></category>
		<category><![CDATA[Readers Question]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Interview Questions and Answers]]></category>
		<category><![CDATA[SQL Puzzle]]></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=16637</guid>
		<description><![CDATA[Year 2011 was a year of learning and opportunity for me. My recent book, SQL Server Interview Questions and Answers, has received such overwhelming love and support from all of you. While writing the book, I had two simple goals: (1) Master the Basics and (2) Ignite Learning. There was a constant request from the Community to take the learning of these books to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=16637&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Year 2011 was a year of learning and opportunity for me. My recent book, <a href="http://blog.sqlauthority.com/sql-server-books/sql-server-interview-questions-and-answers-for-all-database-developers-and-developers-administrators/" target="_blank"><strong>SQL Server Interview Questions and Answers</strong></a>, has received such overwhelming love and support from all of you. While writing the book, I had <a href="http://blog.sqlauthority.com/2011/12/22/sql-server-mastering-the-basics-igniting-learning-a-unique-learning-experience/" target="_blank"><strong>two simple goals</strong></a>: (1) <strong><em>Master the Basics</em></strong> and (2) <strong><em>Ignite Learning</em></strong>. There was a constant request from the Community to take the learning of these books to the next level. Here is an article which discusses the <a href="http://blog.sqlauthority.com/2012/01/01/sql-server-interview-questions-and-answers-perspectives-of-an-author/" target="_blank"><strong>Author&#8217;s Perspective</strong></a>.</p>
<p style="text-align:justify;">Beyond Relational has come up with a very interesting concept &#8211; they have converted a few of the questions from my book into<strong> </strong>the<strong> </strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/default.aspx" target="_blank"><strong>SQL Quiz</strong></a>. The quiz is indeed focused on my two goals. In addition, it’s going to put the learning of the book to a higher stage. Looking at this novel concept, <a href="http://blogs.extremeexperts.com/" target="_blank"><strong>Vinod Kumar</strong></a> (Co-author) and I have decided to help every participant and reader by giving a few hints and suggestions to solve the quiz.</p>
<h3 style="text-align:justify;">SQL Quiz</h3>
<p style="text-align:justify;"><img class="alignleft" style="margin:2px;" src="http://www.pinaldave.com/bimg/num/27.jpg" alt="" />Using datetime functions inside SQL Server have always been a struggle even if there are multiple options. There have been interesting usages of GETDATE, but appealing functions like SYSDATETIME(), GETUTCDATE() and SYSYTCDATETIME() functions were also introduced. When would you use these functions and what are their differences?</p>
<p style="text-align:justify;"><strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/questions/214/using-datetime-functions-inside-sql-server-have-always-been-a-struggle-and-there-are-multiple-option.aspx" target="_blank">Link to participate in SQL Quiz</a></strong></p>
<h3 style="text-align:justify;">Notes of Vinod Kumar</h3>
<p style="text-align:justify;">GETDATE() from the SQL Server 2000 days has been a common function which developers started to utilize. To answer the question, <a href="http://msdn.microsoft.com/en-us/library/ms188383.aspx?WT.mc_id=aff-n-in-loc--pd" target="_blank">read the hint here</a>. The changes on usage are fascinating as the precision levels and storage needs of these can be altered drastically. Can you name some of these changes?</p>
<h3 style="text-align:justify;">Notes of Pinal Dave</h3>
<p style="text-align:justify;">I remember an old story told to me when I was just a beginning DBA. I had set up a job which was supposed to run at exact 12 AM (midnight). After a few runs, we realized that the job was running always 30 seconds earlier than the desired time. Every single day, at precisely 30 seconds before 12 AM, it would start to run. After a while, we had to create a complete investigation team on this subject. A senior DBA eventually figured it out &#8211; it was because we had used SMALLDATETIME datatype for a variable. This variable was storing the current datetime, and as precision of SMALLDATETIME is in terms of minutes, we had to face that issue. Our IT manager finally made all of us to go through every single datatype available in the SQL Server and get familiarized with all of them. I learned the lesson very well so now I want to share this experience with everybody.</p>
<h3 style="text-align:justify;">Additional Notes</h3>
<p style="text-align:justify;">SQL Server Interview Questions and Answers ISBN: 1466405643 Page#133<br />
<a href="http://blog.sqlauthority.com/2010/06/11/sql-server-difference-between-datetime-and-datetime2/" target="_blank">Difference Between DATETIME and DATETIME2</a><br />
<a href="http://blog.sqlauthority.com/2010/06/10/sql-server-difference-between-getdate-and-sysdatetime/" target="_blank">Difference Between GETDATE and SYSDATETIME</a><br />
<a href="http://blog.sqlauthority.com/2009/08/06/sql-server-get-time-in-hourminute-format-from-a-datetime-get-date-part-only-from-datetime/" target="_blank">Get Time in Hour:Minute Format from a Datetime – Get Date Part Only from Datetime</a><br />
<a href="http://blog.sqlauthority.com/2010/07/16/sql-server-datetime-function-todatetimeoffset-example/" target="_blank">Datetime Function TODATETIMEOFFSET Example</a><br />
<a href="http://blog.sqlauthority.com/2010/11/15/sql-server-information-related-to-datetime-and-datetime2/" target="_blank">Information Related to DATETIME and DATETIME2</a><br />
<a href="http://blog.sqlauthority.com/2010/07/15/sql-server-datetime-function-switchoffset-example/" target="_blank">Datetime Function SWITCHOFFSET Example</a><br />
<a href="http://blog.sqlauthority.com/2010/06/12/sql-server-difference-between-datetime-and-datetime2-with-getdate/" target="_blank">Difference Between DATETIME and DATETIME2 – WITH GETDATE</a><br />
<a href="http://blog.sqlauthority.com/2010/05/27/sql-server-date-and-time-in-sql-server-2008/" target="_blank">DATE and TIME in SQL Server 2008</a></p>
<h3 style="text-align:justify;">Prize</h3>
<p style="text-align:justify;">There are exciting prizes awaiting the winners. Click here for <a href="http://beyondrelational.com/quiz/sqlserver/general/2012/prizes.aspx" target="_blank">Prizes</a> and <a href="http://beyondrelational.com/quiz/faq.aspx" target="_blank">Frequently Asked Questions</a>.</p>
<p style="text-align:justify;"><strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/questions/214/using-datetime-functions-inside-sql-server-have-always-been-a-struggle-and-there-are-multiple-option.aspx" target="_blank">Link to participate in SQL Quiz</a></strong></p>
<p style="text-align:justify;">Note: SQL Quiz, winners and prizes are administrated by Beyond Relational. The goal of this blog post is to provide additional learning pointers only.</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>
<br />Filed under: <a href='http://blog.sqlauthority.com/category/tech/pinal-dave/'>Pinal Dave</a>, <a href='http://blog.sqlauthority.com/category/technology/postaday/'>PostADay</a>, <a href='http://blog.sqlauthority.com/category/readers-contribution/'>Readers Contribution</a>, <a href='http://blog.sqlauthority.com/category/readers-question/'>Readers Question</a>, <a href='http://blog.sqlauthority.com/category/technology/sql/'>SQL</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-authority/'>SQL Authority</a>, <a href='http://blog.sqlauthority.com/category/sql-interview-questions-and-answers/'>SQL Interview Questions and Answers</a>, <a href='http://blog.sqlauthority.com/category/sql-puzzle/'>SQL Puzzle</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-query/'>SQL Query</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-server/'>SQL Server</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-tips-and-tricks/'>SQL Tips and Tricks</a>, <a href='http://blog.sqlauthority.com/category/technology/t-sql/'>T SQL</a>, <a href='http://blog.sqlauthority.com/category/technology/'>Technology</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/16637/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/16637/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/16637/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/16637/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sqlauthority.wordpress.com/16637/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sqlauthority.wordpress.com/16637/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sqlauthority.wordpress.com/16637/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sqlauthority.wordpress.com/16637/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/16637/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/16637/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/16637/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/16637/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/16637/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/16637/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=16637&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2012/01/28/sql-server-lots-of-date-functions-find-right-one-to-use-quiz-puzzle-27-of-31/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/num/27.jpg" medium="image" />
	</item>
		<item>
		<title>SQL SERVER &#8211; Common Gotcha&#8217;s Associated with Common Table Expressions (CTE) &#8211; Quiz &#8211; Puzzle &#8211; 26 of 31</title>
		<link>http://blog.sqlauthority.com/2012/01/27/sql-server-common-gotchas-associated-with-common-table-expressions-cte-quiz-puzzle-26-of-31/</link>
		<comments>http://blog.sqlauthority.com/2012/01/27/sql-server-common-gotchas-associated-with-common-table-expressions-cte-quiz-puzzle-26-of-31/#comments</comments>
		<pubDate>Fri, 27 Jan 2012 01:30:27 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[PostADay]]></category>
		<category><![CDATA[Readers Contribution]]></category>
		<category><![CDATA[Readers Question]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Interview Questions and Answers]]></category>
		<category><![CDATA[SQL Puzzle]]></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=16634</guid>
		<description><![CDATA[Year 2011 was a year of learning and opportunity for me. My recent book, SQL Server Interview Questions and Answers, has received such overwhelming love and support from all of you. While writing the book, I had two simple goals: (1) Master the Basics and (2) Ignite Learning. There was a constant request from the Community to take the learning of these books to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=16634&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Year 2011 was a year of learning and opportunity for me. My recent book, <a href="http://blog.sqlauthority.com/sql-server-books/sql-server-interview-questions-and-answers-for-all-database-developers-and-developers-administrators/" target="_blank"><strong>SQL Server Interview Questions and Answers</strong></a>, has received such overwhelming love and support from all of you. While writing the book, I had <a href="http://blog.sqlauthority.com/2011/12/22/sql-server-mastering-the-basics-igniting-learning-a-unique-learning-experience/" target="_blank"><strong>two simple goals</strong></a>: (1) <strong><em>Master the Basics</em></strong> and (2) <strong><em>Ignite Learning</em></strong>. There was a constant request from the Community to take the learning of these books to the next level. Here is an article which discusses the <a href="http://blog.sqlauthority.com/2012/01/01/sql-server-interview-questions-and-answers-perspectives-of-an-author/" target="_blank"><strong>Author&#8217;s Perspective</strong></a>.</p>
<p style="text-align:justify;">Beyond Relational has come up with a very interesting concept &#8211; they have converted a few of the questions from my book into<strong> </strong>the<strong> </strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/default.aspx" target="_blank"><strong>SQL Quiz</strong></a>. The quiz is indeed focused on my two goals. In addition, it’s going to put the learning of the book to a higher stage. Looking at this novel concept, <a href="http://blogs.extremeexperts.com/" target="_blank"><strong>Vinod Kumar</strong></a> (Co-author) and I have decided to help every participant and reader by giving a few hints and suggestions to solve the quiz.</p>
<h3 style="text-align:justify;">SQL Quiz</h3>
<p style="text-align:justify;"><img class="alignleft" style="margin:2px;" src="http://www.pinaldave.com/bimg/num/26.jpg" alt="" />As part of performance tuning exercises, our developer always suggest to use SET based operations rather than procedural languages. One of the suggestions given as a substitute for hierarchical data structure was to use CTE. What are CTEs inside SQL Server, what are their advantages and how can you rewrite a subquery using CTEs?</p>
<p style="text-align:justify;"><strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/questions/213/as-part-of-performance-tuning-exercise-our-developer-always-suggested-to-use-set-based-operations.aspx" target="_blank">Link to participate in SQL Quiz</a></strong></p>
<h3 style="text-align:justify;">Notes of Vinod Kumar</h3>
<p style="text-align:justify;"><a href="http://msdn.microsoft.com/en-us/library/ms190766.aspx?WT.mc_id=aff-n-in-loc--pd" target="_blank">Common Table Expressions</a> a.k.a CTEs are an important addition to SQL Server. Though CTE is available as an alternative for Views, Subqueries, there is a special case scenario for using CTEs. Tell us, how innovatively have you used CTEs? Can there be recursive CTEs? If yes, have you ever tried them?</p>
<h3 style="text-align:justify;">Notes of Pinal Dave</h3>
<p style="text-align:justify;">CTEs are often confused with Temp Table and Subqueries, but there are more facts about this subject. While working with recursive CTEs, one has to make sure that they do not go into an infinite loop and stop after certain numbers of fixed iteration. SQL Server does have an option to limit the numbers of iteration; however, there is a default number which is associated with number of loops. CTEs are also very useful in terms of readability. I’ve started to use CTEs in many places, but before I began to practice CTEs, I made sure that I’d spend a good amount of time to learn about them, and so I did.</p>
<h3 style="text-align:justify;">Additional Notes</h3>
<p style="text-align:justify;">SQL Server Interview Questions and Answers ISBN: 1466405643 Page#109-112<br />
<a href="http://blog.sqlauthority.com/2011/05/10/sql-server-common-table-expression-cte-and-few-observation/" target="_blank">Common Table Expression (CTE) and Few Observation</a><br />
<a href="http://blog.sqlauthority.com/2009/08/08/sql-server-multiple-cte-in-one-select-statement-query/" target="_blank">Multiple CTE in One SELECT Statement Query</a><br />
<a href="http://blog.sqlauthority.com/2009/06/23/sql-server-2005-2008-delete-duplicate-rows/" target="_blank">Delete Duplicate Rows</a><br />
<a href="http://blog.sqlauthority.com/2008/07/28/sql-server-simple-example-of-recursive-cte/" target="_blank">Simple Example of Recursive CTE</a><br />
<a href="http://blog.sqlauthority.com/2008/07/29/sql-server-sql-server-simple-example-of-recursive-cte-part-2-maxrecursion-prevent-cte-infinite-loop/" target="_blank">SQL SERVER – Simple Example of Recursive CTE – Part 2 – MAXRECURSION – Prevent CTE Infinite Loop</a><br />
<a href="http://blog.sqlauthority.com/2007/06/11/sql-server-2005-t-sql-paging-query-technique-comparison-over-and-row_number-cte-vs-derived-table/" target="_blank">T-SQL Paging Query Technique Comparison (OVER and ROW_NUMBER()) – CTE vs. Derived Table</a></p>
<h3 style="text-align:justify;">Prize</h3>
<p style="text-align:justify;">There are exciting prizes awaiting the winners. Click here for <a href="http://beyondrelational.com/quiz/sqlserver/general/2012/prizes.aspx" target="_blank">Prizes</a> and <a href="http://beyondrelational.com/quiz/faq.aspx" target="_blank">Frequently Asked Questions</a>.</p>
<p style="text-align:justify;"><strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/questions/213/as-part-of-performance-tuning-exercise-our-developer-always-suggested-to-use-set-based-operations.aspx" target="_blank">Link to participate in SQL Quiz</a></strong></p>
<p style="text-align:justify;">Note: SQL Quiz, winners and prizes are administrated by Beyond Relational. The goal of this blog post is to provide additional learning pointers only.</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>
<br />Filed under: <a href='http://blog.sqlauthority.com/category/tech/pinal-dave/'>Pinal Dave</a>, <a href='http://blog.sqlauthority.com/category/technology/postaday/'>PostADay</a>, <a href='http://blog.sqlauthority.com/category/readers-contribution/'>Readers Contribution</a>, <a href='http://blog.sqlauthority.com/category/readers-question/'>Readers Question</a>, <a href='http://blog.sqlauthority.com/category/technology/sql/'>SQL</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-authority/'>SQL Authority</a>, <a href='http://blog.sqlauthority.com/category/sql-interview-questions-and-answers/'>SQL Interview Questions and Answers</a>, <a href='http://blog.sqlauthority.com/category/sql-puzzle/'>SQL Puzzle</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-query/'>SQL Query</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-server/'>SQL Server</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-tips-and-tricks/'>SQL Tips and Tricks</a>, <a href='http://blog.sqlauthority.com/category/technology/t-sql/'>T SQL</a>, <a href='http://blog.sqlauthority.com/category/technology/'>Technology</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/16634/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/16634/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/16634/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/16634/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sqlauthority.wordpress.com/16634/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sqlauthority.wordpress.com/16634/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sqlauthority.wordpress.com/16634/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sqlauthority.wordpress.com/16634/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/16634/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/16634/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/16634/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/16634/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/16634/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/16634/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=16634&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2012/01/27/sql-server-common-gotchas-associated-with-common-table-expressions-cte-quiz-puzzle-26-of-31/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>

		<media:content url="http://www.pinaldave.com/bimg/num/26.jpg" medium="image" />
	</item>
		<item>
		<title>SQL SERVER &#8211; Different Aspect of Policy Based Management &#8211; Quiz &#8211; Puzzle &#8211; 25 of 31</title>
		<link>http://blog.sqlauthority.com/2012/01/26/sql-server-different-aspect-of-policy-based-management-quiz-puzzle-25-of-31/</link>
		<comments>http://blog.sqlauthority.com/2012/01/26/sql-server-different-aspect-of-policy-based-management-quiz-puzzle-25-of-31/#comments</comments>
		<pubDate>Thu, 26 Jan 2012 01:30:33 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[PostADay]]></category>
		<category><![CDATA[Readers Contribution]]></category>
		<category><![CDATA[Readers Question]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Interview Questions and Answers]]></category>
		<category><![CDATA[SQL Puzzle]]></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=16631</guid>
		<description><![CDATA[Year 2011 was a year of learning and opportunity for me. My recent book, SQL Server Interview Questions and Answers, has received such overwhelming love and support from all of you. While writing the book, I had two simple goals: (1) Master the Basics and (2) Ignite Learning. There was a constant request from the Community to take the learning of these books to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=16631&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Year 2011 was a year of learning and opportunity for me. My recent book, <a href="http://blog.sqlauthority.com/sql-server-books/sql-server-interview-questions-and-answers-for-all-database-developers-and-developers-administrators/" target="_blank"><strong>SQL Server Interview Questions and Answers</strong></a>, has received such overwhelming love and support from all of you. While writing the book, I had <a href="http://blog.sqlauthority.com/2011/12/22/sql-server-mastering-the-basics-igniting-learning-a-unique-learning-experience/" target="_blank"><strong>two simple goals</strong></a>: (1) <strong><em>Master the Basics</em></strong> and (2) <strong><em>Ignite Learning</em></strong>. There was a constant request from the Community to take the learning of these books to the next level. Here is an article which discusses the <a href="http://blog.sqlauthority.com/2012/01/01/sql-server-interview-questions-and-answers-perspectives-of-an-author/" target="_blank"><strong>Author&#8217;s Perspective</strong></a>.</p>
<p style="text-align:justify;">Beyond Relational has come up with a very interesting concept &#8211; they have converted a few of the questions from my book into<strong> </strong>the<strong> </strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/default.aspx" target="_blank"><strong>SQL Quiz</strong></a>. The quiz is indeed focused on my two goals. In addition, it’s going to put the learning of the book to a higher stage. Looking at this novel concept, <a href="http://blogs.extremeexperts.com/" target="_blank"><strong>Vinod Kumar</strong></a> (Co-author) and I have decided to help every participant and reader by giving a few hints and suggestions to solve the quiz.</p>
<h3 style="text-align:justify;">SQL Quiz</h3>
<p style="text-align:justify;"><img class="alignleft" style="margin:2px;" src="http://www.pinaldave.com/bimg/num/25.jpg" alt="" />Compliance is one of the non-negotiable things in this era. SQL Server has had so many options like C2 Auditing since the SQL Server 2000 days. With the advent of Policy Based Management inside SQL Server 2005, what are the different aspects involving PBM one needs to know?</p>
<p style="text-align:justify;"><strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/questions/212/compliance-is-one-of-the-non-negotiable-in-this-era.aspx" target="_blank">Link to participate in SQL Quiz</a></strong></p>
<h3 style="text-align:justify;">Notes of Vinod Kumar</h3>
<p style="text-align:justify;">Tough Auditing is a great way to monitor SQL Server, but when you try to explore what all methods does the PBM give when compared to Auditing, <a href="http://msdn.microsoft.com/en-us/library/dd938891%28v=SQL.100%29.aspx?WT.mc_id=aff-n-in-loc--pd" target="_blank">Policy Based Management</a> can help you take the management of SQL Server to the next level better than Auditing. Also, there are some interesting ways to extend and make your own custom policy using special commands. To learn more, explore these concepts and tell us your views.</p>
<h3 style="text-align:justify;">Notes of Pinal Dave</h3>
<p style="text-align:justify;">Have you ever desired to know who has touched your data? In this tightly conformed world, it is very important to know who has an access to the data and which among the data has been accessed. There are important cases when some data are never accessed by anybody. Preventing data access is one story, while being a DBA who might have his best practices is another story. A DBA may never want the Auto Shrink to become activated in their databases. All these and more can be done using Policy Based Management.</p>
<h3 style="text-align:justify;">Additional Notes</h3>
<p style="text-align:justify;">SQL Server Interview Questions and Answers ISBN: 1466405643 Page#154-155<br />
<a href="http://blog.sqlauthority.com/2009/11/13/sql-server-policy-based-management-create-evaluate-and-fix-policies/" target="_blank">Policy Based Management – Create, Evaluate and Fix Policies</a><br />
<a href="http://blog.sqlauthority.com/2008/06/13/sql-server-2008-introduction-to-policy-management-enforcing-rules-on-sql-server/" target="_blank">Introduction to Policy Management – Enforcing Rules on SQL Server</a></p>
<h3 style="text-align:justify;">Prize</h3>
<p style="text-align:justify;">There are exciting prizes awaiting the winners. Click here for <a href="http://beyondrelational.com/quiz/sqlserver/general/2012/prizes.aspx" target="_blank">Prizes</a> and <a href="http://beyondrelational.com/quiz/faq.aspx" target="_blank">Frequently Asked Questions</a>.</p>
<p style="text-align:justify;"><strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/questions/212/compliance-is-one-of-the-non-negotiable-in-this-era.aspx" target="_blank">Link to participate in SQL Quiz</a></strong></p>
<p style="text-align:justify;">Note: SQL Quiz, winners and prizes are administrated by Beyond Relational. The goal of this blog post is to provide additional learning pointers only.</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>
<br />Filed under: <a href='http://blog.sqlauthority.com/category/tech/pinal-dave/'>Pinal Dave</a>, <a href='http://blog.sqlauthority.com/category/technology/postaday/'>PostADay</a>, <a href='http://blog.sqlauthority.com/category/readers-contribution/'>Readers Contribution</a>, <a href='http://blog.sqlauthority.com/category/readers-question/'>Readers Question</a>, <a href='http://blog.sqlauthority.com/category/technology/sql/'>SQL</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-authority/'>SQL Authority</a>, <a href='http://blog.sqlauthority.com/category/sql-interview-questions-and-answers/'>SQL Interview Questions and Answers</a>, <a href='http://blog.sqlauthority.com/category/sql-puzzle/'>SQL Puzzle</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-query/'>SQL Query</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-server/'>SQL Server</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-tips-and-tricks/'>SQL Tips and Tricks</a>, <a href='http://blog.sqlauthority.com/category/technology/t-sql/'>T SQL</a>, <a href='http://blog.sqlauthority.com/category/technology/'>Technology</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/16631/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/16631/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/16631/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/16631/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sqlauthority.wordpress.com/16631/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sqlauthority.wordpress.com/16631/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sqlauthority.wordpress.com/16631/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sqlauthority.wordpress.com/16631/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/16631/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/16631/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/16631/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/16631/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/16631/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/16631/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=16631&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2012/01/26/sql-server-different-aspect-of-policy-based-management-quiz-puzzle-25-of-31/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/num/25.jpg" medium="image" />
	</item>
		<item>
		<title>SQL SERVER &#8211; Correct Value for Fillfactor &#8211; Quiz &#8211; Puzzle &#8211; 24 of 31</title>
		<link>http://blog.sqlauthority.com/2012/01/25/sql-server-correct-value-for-fillfactor-quiz-puzzle-24-of-31/</link>
		<comments>http://blog.sqlauthority.com/2012/01/25/sql-server-correct-value-for-fillfactor-quiz-puzzle-24-of-31/#comments</comments>
		<pubDate>Wed, 25 Jan 2012 01:30:45 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[PostADay]]></category>
		<category><![CDATA[Readers Contribution]]></category>
		<category><![CDATA[Readers Question]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Interview Questions and Answers]]></category>
		<category><![CDATA[SQL Puzzle]]></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=16628</guid>
		<description><![CDATA[Year 2011 was a year of learning and opportunity for me. My recent book, SQL Server Interview Questions and Answers, has received such overwhelming love and support from all of you. While writing the book, I had two simple goals: (1) Master the Basics and (2) Ignite Learning. There was a constant request from the Community to take the learning of these books to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=16628&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Year 2011 was a year of learning and opportunity for me. My recent book, <a href="http://blog.sqlauthority.com/sql-server-books/sql-server-interview-questions-and-answers-for-all-database-developers-and-developers-administrators/" target="_blank"><strong>SQL Server Interview Questions and Answers</strong></a>, has received such overwhelming love and support from all of you. While writing the book, I had <a href="http://blog.sqlauthority.com/2011/12/22/sql-server-mastering-the-basics-igniting-learning-a-unique-learning-experience/" target="_blank"><strong>two simple goals</strong></a>: (1) <strong><em>Master the Basics</em></strong> and (2) <strong><em>Ignite Learning</em></strong>. There was a constant request from the Community to take the learning of these books to the next level. Here is an article which discusses the <a href="http://blog.sqlauthority.com/2012/01/01/sql-server-interview-questions-and-answers-perspectives-of-an-author/" target="_blank"><strong>Author&#8217;s Perspective</strong></a>.</p>
<p style="text-align:justify;">Beyond Relational has come up with a very interesting concept &#8211; they have converted a few of the questions from my book into<strong> </strong>the<strong> </strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/default.aspx" target="_blank"><strong>SQL Quiz</strong></a>. The quiz is indeed focused on my two goals. In addition, it’s going to put the learning of the book to a higher stage. Looking at this novel concept, <a href="http://blogs.extremeexperts.com/" target="_blank"><strong>Vinod Kumar</strong></a> (Co-author) and I have decided to help every participant and reader by giving a few hints and suggestions to solve the quiz.</p>
<h3 style="text-align:justify;">SQL Quiz</h3>
<p style="text-align:justify;"><img class="alignleft" style="margin:2px;" src="http://www.pinaldave.com/bimg/num/24.jpg" alt="" />Any database design can include only the Normal forms. But while a DBA performs a product deployment, it is critical to take care of certain factors for Index creation. With this noted, explain <em>FILL</em>FACTOR<em> </em>and<em> PAT</em>FACTOR inside SQL Server. What are their uses and when would you use each of them?</p>
<p style="text-align:justify;"><strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/questions/211/any-database-design-can-include-only-the-normal-forms.aspx" target="_blank">Link to participate in SQL Quiz</a></strong></p>
<h3 style="text-align:justify;">Notes of Vinod Kumar</h3>
<p style="text-align:justify;">Tough FILLFACTOR is used from the side of performance tuning techniques. It also has an impact on storage needs &#8211; the IO increases for Reads if done incorrectly. This <a href="http://msdn.microsoft.com/en-us/library/ms177459.aspx?WT.mc_id=aff-n-in-loc--pd" target="_blank">Hint</a> has the information related to these notes. Is there a skill that you use regarding this matter? Feel free to share.</p>
<h3 style="text-align:justify;">Notes of Pinal Dave</h3>
<p style="text-align:justify;">Fillfactor is an interesting concept. When I tell several DBA and developers that fillfactor 0 is the same as 100, I have seen them not believing what I said. An appropriate fillfactor can have a heavy impact on performance. The fillfactor can be adjusted at server level as well as at index level. A similar concept is PATFACTOR. I have seen it being abused, leading to a terrible performance on server. Aside from fillfactor, there are many additional performance tuning concepts one needs to master if performance is his primary concern for database.</p>
<h3 style="text-align:justify;">Additional Notes</h3>
<p style="text-align:justify;">SQL Server Interview Questions and Answers ISBN: 1466405643 Page#151-153<br />
<a href="http://blog.sqlauthority.com/2011/01/31/sql-server-what-is-fill-factor-and-what-is-the-best-value-for-fill-factor/" target="_blank">SQL SERVER – What is Fill Factor and What is the Best Value for Fill Factor</a><br />
<a href="http://blog.sqlauthority.com/2009/12/16/sql-server-fillfactor-index-and-in-depth-look-at-effect-on-performance/" target="_blank">Fillfactor, Index and In-depth Look at Effect on Performance</a><br />
<a href="http://blog.sqlauthority.com/2009/01/30/sql-server-2008-2005-rebuild-every-index-of-all-tables-of-database-rebuild-index-with-fillfactor/" target="_blank">Rebuild Every Index of All Tables of Database – Rebuild Index with FillFactor</a><br />
<a href="http://blog.sqlauthority.com/2007/05/25/sql-server-change-default-fill-factor-for-index/" target="_blank">Change Default Fill Factor For Index</a><br />
<a href="http://blog.sqlauthority.com/2007/06/24/sql-server-comparison-index-fragmentation-index-de-fragmentation-index-rebuild-sql-server-2000-and-sql-server-2005/" target="_blank">Comparison Index Fragmentation, Index De-Fragmentation, Index Rebuild – SQL SERVER 2000 and SQL SERVER 2005</a></p>
<h3 style="text-align:justify;">Prize</h3>
<p style="text-align:justify;">There are exciting prizes awaiting the winners. Click here for <a href="http://beyondrelational.com/quiz/sqlserver/general/2012/prizes.aspx" target="_blank">Prizes</a> and <a href="http://beyondrelational.com/quiz/faq.aspx" target="_blank">Frequently Asked Questions</a>.</p>
<p style="text-align:justify;"><strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/questions/211/any-database-design-can-include-only-the-normal-forms.aspx" target="_blank">Link to participate in SQL Quiz</a></strong></p>
<p style="text-align:justify;">Note: SQL Quiz, winners and prizes are administrated by Beyond Relational. The goal of this blog post is to provide additional learning pointers only.</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>
<br />Filed under: <a href='http://blog.sqlauthority.com/category/tech/pinal-dave/'>Pinal Dave</a>, <a href='http://blog.sqlauthority.com/category/technology/postaday/'>PostADay</a>, <a href='http://blog.sqlauthority.com/category/readers-contribution/'>Readers Contribution</a>, <a href='http://blog.sqlauthority.com/category/readers-question/'>Readers Question</a>, <a href='http://blog.sqlauthority.com/category/technology/sql/'>SQL</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-authority/'>SQL Authority</a>, <a href='http://blog.sqlauthority.com/category/sql-interview-questions-and-answers/'>SQL Interview Questions and Answers</a>, <a href='http://blog.sqlauthority.com/category/sql-puzzle/'>SQL Puzzle</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-query/'>SQL Query</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-server/'>SQL Server</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-tips-and-tricks/'>SQL Tips and Tricks</a>, <a href='http://blog.sqlauthority.com/category/technology/t-sql/'>T SQL</a>, <a href='http://blog.sqlauthority.com/category/technology/'>Technology</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/16628/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/16628/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/16628/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/16628/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sqlauthority.wordpress.com/16628/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sqlauthority.wordpress.com/16628/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sqlauthority.wordpress.com/16628/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sqlauthority.wordpress.com/16628/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/16628/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/16628/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/16628/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/16628/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/16628/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/16628/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=16628&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2012/01/25/sql-server-correct-value-for-fillfactor-quiz-puzzle-24-of-31/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/num/24.jpg" medium="image" />
	</item>
		<item>
		<title>SQL SERVER &#8211; Database Mirroring and Fine-Prints &#8211; Quiz &#8211; Puzzle &#8211; 23 of 31</title>
		<link>http://blog.sqlauthority.com/2012/01/24/sql-server-database-mirroring-and-fine-prints-quiz-puzzle-23-of-31/</link>
		<comments>http://blog.sqlauthority.com/2012/01/24/sql-server-database-mirroring-and-fine-prints-quiz-puzzle-23-of-31/#comments</comments>
		<pubDate>Tue, 24 Jan 2012 01:30:41 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[PostADay]]></category>
		<category><![CDATA[Readers Contribution]]></category>
		<category><![CDATA[Readers Question]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Interview Questions and Answers]]></category>
		<category><![CDATA[SQL Puzzle]]></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=16624</guid>
		<description><![CDATA[Year 2011 was a year of learning and opportunity for me. My recent book, SQL Server Interview Questions and Answers, has received such overwhelming love and support from all of you. While writing the book, I had two simple goals: (1) Master the Basics and (2) Ignite Learning. There was a constant request from the Community to take the learning of these books to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=16624&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Year 2011 was a year of learning and opportunity for me. My recent book, <a href="http://blog.sqlauthority.com/sql-server-books/sql-server-interview-questions-and-answers-for-all-database-developers-and-developers-administrators/" target="_blank"><strong>SQL Server Interview Questions and Answers</strong></a>, has received such overwhelming love and support from all of you. While writing the book, I had <a href="http://blog.sqlauthority.com/2011/12/22/sql-server-mastering-the-basics-igniting-learning-a-unique-learning-experience/" target="_blank"><strong>two simple goals</strong></a>: (1) <strong><em>Master the Basics</em></strong> and (2) <strong><em>Ignite Learning</em></strong>. There was a constant request from the Community to take the learning of these books to the next level. Here is an article which discusses the <a href="http://blog.sqlauthority.com/2012/01/01/sql-server-interview-questions-and-answers-perspectives-of-an-author/" target="_blank"><strong>Author&#8217;s Perspective</strong></a>.</p>
<p style="text-align:justify;">Beyond Relational has come up with a very interesting concept &#8211; they have converted a few of the questions from my book into<strong> </strong>the<strong> </strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/default.aspx" target="_blank"><strong>SQL Quiz</strong></a>. The quiz is indeed focused on my two goals. In addition, it’s going to put the learning of the book to a higher stage. Looking at this novel concept, <a href="http://blogs.extremeexperts.com/" target="_blank"><strong>Vinod Kumar</strong></a> (Co-author) and I have decided to help every participant and reader by giving a few hints and suggestions to solve the quiz.</p>
<h3 style="text-align:justify;">SQL Quiz</h3>
<p style="text-align:justify;"><img class="alignleft" style="margin:2px;" src="http://www.pinaldave.com/bimg/num/23.jpg" alt="" />Though high availability is something critical for all large database deployments, there are other multiple options one can use. For today’s discussion, what is database mirroring option? What are the Database Mirroring enhancements done in SQL Server 2008 R2 edition? How is it different from Log shipping?</p>
<p style="text-align:justify;"><strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/questions/210/though-high-availability-is-something-critical-for-all-large-database-deployments.aspx" target="_blank">Link to participate in SQL Quiz</a></strong></p>
<h3 style="text-align:justify;">Notes of Vinod Kumar</h3>
<p style="text-align:justify;">DBM is a very famous method of HA options that I have seen enterprises use in their environments. <a href="http://msdn.microsoft.com/en-us/library/bb934127.aspx?WT.mc_id=aff-n-in-loc--pd" target="_blank">The concepts</a> are simple and well-explained. There are also fine-prints when implementing DBM, which need special attention.</p>
<h3 style="text-align:justify;">Notes of Pinal Dave</h3>
<p style="text-align:justify;">&#8220;Is database mirroring a high-availability solution, or a disaster recovery solution?&#8221; When I ask this question, I keep on getting a different answer every single time. Database mirroring maintains two copies of a single database that must reside on different server instances of SQL Server Database Engine. Now, mirroring requires that the database has to be in full recovery mode and the database resides on different instances. A lesser known fact is that mirroring is also related to the Page Restore concept. Why not spend time to know what the main interesting factors related to database mirroring are? I’m sure it would be a worthwhile learning experience for you.</p>
<h3 style="text-align:justify;">Additional Notes</h3>
<p style="text-align:justify;">SQL Server Interview Questions and Answers ISBN: 1466405643 Page#158-159, 166<br />
<a href="http://blog.sqlauthority.com/2010/03/16/sql-server-quick-note-of-database-mirroring/" target="_blank">Quick Note of Database Mirroring</a><br />
<a href="http://blog.sqlauthority.com/2009/07/11/sql-server-standby-servers-and-types-of-standby-servers/" target="_blank">Standby Servers and Types of Standby Servers</a><br />
<a href="http://blog.sqlauthority.com/2010/03/18/sql-server-mirroring-configured-without-domain-the-server-network-address-tcpsqlservername5023-can-not-be-reached-or-does-not-exist/" target="_blank">Mirroring Configured Without Domain </a></p>
<h3 style="text-align:justify;">Prize</h3>
<p style="text-align:justify;">There are exciting prizes awaiting the winners. Click here for <a href="http://beyondrelational.com/quiz/sqlserver/general/2012/prizes.aspx" target="_blank">Prizes</a> and <a href="http://beyondrelational.com/quiz/faq.aspx" target="_blank">Frequently Asked Questions</a>.</p>
<p style="text-align:justify;"><strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/questions/210/though-high-availability-is-something-critical-for-all-large-database-deployments.aspx" target="_blank">Link to participate in SQL Quiz</a></strong></p>
<p style="text-align:justify;">Note: SQL Quiz, winners and prizes are administrated by Beyond Relational. The goal of this blog post is to provide additional learning pointers only.</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>
<br />Filed under: <a href='http://blog.sqlauthority.com/category/tech/pinal-dave/'>Pinal Dave</a>, <a href='http://blog.sqlauthority.com/category/technology/postaday/'>PostADay</a>, <a href='http://blog.sqlauthority.com/category/readers-contribution/'>Readers Contribution</a>, <a href='http://blog.sqlauthority.com/category/readers-question/'>Readers Question</a>, <a href='http://blog.sqlauthority.com/category/technology/sql/'>SQL</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-authority/'>SQL Authority</a>, <a href='http://blog.sqlauthority.com/category/sql-interview-questions-and-answers/'>SQL Interview Questions and Answers</a>, <a href='http://blog.sqlauthority.com/category/sql-puzzle/'>SQL Puzzle</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-query/'>SQL Query</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-server/'>SQL Server</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-tips-and-tricks/'>SQL Tips and Tricks</a>, <a href='http://blog.sqlauthority.com/category/technology/t-sql/'>T SQL</a>, <a href='http://blog.sqlauthority.com/category/technology/'>Technology</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/16624/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/16624/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/16624/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/16624/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sqlauthority.wordpress.com/16624/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sqlauthority.wordpress.com/16624/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sqlauthority.wordpress.com/16624/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sqlauthority.wordpress.com/16624/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/16624/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/16624/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/16624/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/16624/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/16624/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/16624/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=16624&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2012/01/24/sql-server-database-mirroring-and-fine-prints-quiz-puzzle-23-of-31/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/num/23.jpg" medium="image" />
	</item>
		<item>
		<title>SQL SERVER &#8211; What is Piecemeal Restore &#8211; Quiz &#8211; Puzzle &#8211; 22 of 31</title>
		<link>http://blog.sqlauthority.com/2012/01/23/sql-server-what-is-piecemeal-restore-quiz-puzzle-22-of-31/</link>
		<comments>http://blog.sqlauthority.com/2012/01/23/sql-server-what-is-piecemeal-restore-quiz-puzzle-22-of-31/#comments</comments>
		<pubDate>Mon, 23 Jan 2012 01:30:49 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[PostADay]]></category>
		<category><![CDATA[Readers Contribution]]></category>
		<category><![CDATA[Readers Question]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Interview Questions and Answers]]></category>
		<category><![CDATA[SQL Puzzle]]></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=16616</guid>
		<description><![CDATA[Year 2011 was a year of learning and opportunity for me. My recent book, SQL Server Interview Questions and Answers, has received such overwhelming love and support from all of you. While writing the book, I had two simple goals: (1) Master the Basics and (2) Ignite Learning. There was a constant request from the Community to take the learning of these books to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=16616&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Year 2011 was a year of learning and opportunity for me. My recent book, <a href="http://blog.sqlauthority.com/sql-server-books/sql-server-interview-questions-and-answers-for-all-database-developers-and-developers-administrators/" target="_blank"><strong>SQL Server Interview Questions and Answers</strong></a>, has received such overwhelming love and support from all of you. While writing the book, I had <a href="http://blog.sqlauthority.com/2011/12/22/sql-server-mastering-the-basics-igniting-learning-a-unique-learning-experience/" target="_blank"><strong>two simple goals</strong></a>: (1) <strong><em>Master the Basics</em></strong> and (2) <strong><em>Ignite Learning</em></strong>. There was a constant request from the Community to take the learning of these books to the next level. Here is an article which discusses the <a href="http://blog.sqlauthority.com/2012/01/01/sql-server-interview-questions-and-answers-perspectives-of-an-author/" target="_blank"><strong>Author&#8217;s Perspective</strong></a>.</p>
<p style="text-align:justify;">Beyond Relational has come up with a very interesting concept &#8211; they have converted a few of the questions from my book into<strong> </strong>the<strong> </strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/default.aspx" target="_blank"><strong>SQL Quiz</strong></a>. The quiz is indeed focused on my two goals. In addition, it’s going to put the learning of the book to a higher stage. Looking at this novel concept, <a href="http://blogs.extremeexperts.com/" target="_blank"><strong>Vinod Kumar</strong></a> (Co-author) and I have decided to help every participant and reader by giving a few hints and suggestions to solve the quiz.</p>
<h3 style="text-align:justify;">SQL Quiz</h3>
<p style="text-align:justify;"><img class="alignleft" style="margin:2px;" src="http://www.pinaldave.com/bimg/num/22.jpg" alt="" /></p>
<p style="text-align:justify;">The work of a DBA is never to be underestimated. An effective DBA’s role maybe understated for the 364 days in a year, but that 1 day when the database gets into a corrupt state is when all the skills come to the fore.</p>
<p style="text-align:justify;"> Recently, while working on a 24&#215;7 large database split into multiple filegroups, it suddenly got into a corrupt state. The DBA brought the database ONLINE quickly and was doing a restore process in the background. To understand what he had done, what is Piecemeal Restore inside SQL Server? When was this introduced and what are the options of using this feature?</p>
<p style="text-align:justify;"><strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/questions/209/work-of-a-dba-is-never-to-be-underestimated.aspx" target="_blank">Link to participate in SQL Quiz</a></strong></p>
<h3 style="text-align:justify;">Notes of Vinod Kumar</h3>
<p style="text-align:justify;">The behaviors and options of using a Database backup are indeed critical, yet an effective DBA should be able to harness the best results in the shortest time. <span style="text-decoration:underline;">Hint:</span> it is like a great bookmark to understand the options available when looking for restore strategies with SQL Server. To help you more, read topics around ONLINE restores.</p>
<h3 style="text-align:justify;">Notes of Pinal Dave</h3>
<p style="text-align:justify;">Here are a few quotes from users I often hear:</p>
<p style="text-align:justify;">&#8220;I have all the necessary backups but I could not restore the backup.&#8221;<br />
&#8220;Three hours have passed and yet our restore is still going on?&#8221;<br />
&#8220;We have a mirroring set up and never faced an issue of corruption.&#8221;</p>
<p style="text-align:justify;">When I hear them, I often wonder if they really know the aspects of backup and restore. Piecemeal is another similar concept that people often overlook, ignore and avoid learning. I think all of us should explore this technology further and see if we can avoid saying the above quotes.</p>
<h3 style="text-align:justify;">Additional Notes</h3>
<p style="text-align:justify;">SQL Server Interview Questions and Answers ISBN: 1466405643 Page#161<br />
<a href="http://blog.sqlauthority.com/2009/07/14/sql-server-backup-timeline-and-understanding-of-database-restore-process-in-full-recovery-model/" target="_blank">Backup Timeline and Understanding of Database Restore Process in Full Recovery Model</a><br />
<a href="http://blog.sqlauthority.com/2011/12/28/sql-server-effect-of-compressed-backup-setting-at-server-level-on-database-backup/" target="_blank">Effect of Compressed Backup Setting at Server Level on Database Backup</a><br />
<a href="http://blog.sqlauthority.com/2011/12/27/sql-server-target-recovery-time-of-a-database-advance-option-in-sql-server-2012/" target="_blank">Target Recovery Time of a Database – Advance Option in SQL Server 2012</a><br />
<a href="http://blog.sqlauthority.com/2011/12/23/sql-server-a-quick-script-for-point-in-time-recovery-back-up-and-restore/" target="_blank">A Quick Script for Point in Time Recovery – Back Up and Restore</a><br />
<a href="http://blog.sqlauthority.com/2011/05/27/sql-server-copy-database-from-instance-to-another-instance-copy-paste-in-sql-server/" target="_blank">Copy Database from Instance to Another Instance – Copy Paste in SQL Server</a><br />
<a href="http://blog.sqlauthority.com/2009/09/02/sql-server-mirrored-backup-and-restore-and-split-file-backup-2/" target="_blank">Mirrored Backup and Restore and Split File Backup</a><br />
<a href="http://blog.sqlauthority.com/2010/10/24/sql-server-corrupted-backup-file-and-unsuccessful-restore/" target="_blank">Corrupted Backup File and Unsuccessful Restore</a></p>
<h3 style="text-align:justify;">Prize</h3>
<p style="text-align:justify;">There are exciting prizes awaiting the winners. Click here for <a href="http://beyondrelational.com/quiz/sqlserver/general/2012/prizes.aspx" target="_blank">Prizes</a> and <a href="http://beyondrelational.com/quiz/faq.aspx" target="_blank">Frequently Asked Questions</a>.</p>
<p style="text-align:justify;"><strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/questions/209/work-of-a-dba-is-never-to-be-underestimated.aspx" target="_blank">Link to participate in SQL Quiz</a></strong></p>
<p style="text-align:justify;">Note: SQL Quiz, winners and prizes are administrated by Beyond Relational. The goal of this blog post is to provide additional learning pointers only.</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>
<br />Filed under: <a href='http://blog.sqlauthority.com/category/tech/pinal-dave/'>Pinal Dave</a>, <a href='http://blog.sqlauthority.com/category/technology/postaday/'>PostADay</a>, <a href='http://blog.sqlauthority.com/category/readers-contribution/'>Readers Contribution</a>, <a href='http://blog.sqlauthority.com/category/readers-question/'>Readers Question</a>, <a href='http://blog.sqlauthority.com/category/technology/sql/'>SQL</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-authority/'>SQL Authority</a>, <a href='http://blog.sqlauthority.com/category/sql-interview-questions-and-answers/'>SQL Interview Questions and Answers</a>, <a href='http://blog.sqlauthority.com/category/sql-puzzle/'>SQL Puzzle</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-query/'>SQL Query</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-server/'>SQL Server</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-tips-and-tricks/'>SQL Tips and Tricks</a>, <a href='http://blog.sqlauthority.com/category/technology/t-sql/'>T SQL</a>, <a href='http://blog.sqlauthority.com/category/technology/'>Technology</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/16616/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/16616/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/16616/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/16616/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sqlauthority.wordpress.com/16616/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sqlauthority.wordpress.com/16616/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sqlauthority.wordpress.com/16616/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sqlauthority.wordpress.com/16616/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/16616/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/16616/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/16616/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/16616/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/16616/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/16616/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=16616&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2012/01/23/sql-server-what-is-piecemeal-restore-quiz-puzzle-22-of-31/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/num/22.jpg" medium="image" />
	</item>
		<item>
		<title>SQL SERVER &#8211; Difference between Create Index &#8211; Drop Index &#8211; Rebuild Index &#8211; Quiz &#8211; Puzzle &#8211; 21 of 31</title>
		<link>http://blog.sqlauthority.com/2012/01/22/sql-server-difference-between-create-index-drop-index-rebuild-index-quiz-puzzle-21-of-31/</link>
		<comments>http://blog.sqlauthority.com/2012/01/22/sql-server-difference-between-create-index-drop-index-rebuild-index-quiz-puzzle-21-of-31/#comments</comments>
		<pubDate>Sun, 22 Jan 2012 01:30:58 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[PostADay]]></category>
		<category><![CDATA[Readers Contribution]]></category>
		<category><![CDATA[Readers Question]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Interview Questions and Answers]]></category>
		<category><![CDATA[SQL Puzzle]]></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=16619</guid>
		<description><![CDATA[Year 2011 was a year of learning and opportunity for me. My recent book, SQL Server Interview Questions and Answers, has received such overwhelming love and support from all of you. While writing the book, I had two simple goals: (1) Master the Basics and (2) Ignite Learning. There was a constant request from the Community to take the learning of these books to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=16619&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Year 2011 was a year of learning and opportunity for me. My recent book, <a href="http://blog.sqlauthority.com/sql-server-books/sql-server-interview-questions-and-answers-for-all-database-developers-and-developers-administrators/" target="_blank"><strong>SQL Server Interview Questions and Answers</strong></a>, has received such overwhelming love and support from all of you. While writing the book, I had <a href="http://blog.sqlauthority.com/2011/12/22/sql-server-mastering-the-basics-igniting-learning-a-unique-learning-experience/" target="_blank"><strong>two simple goals</strong></a>: (1) <strong><em>Master the Basics</em></strong> and (2) <strong><em>Ignite Learning</em></strong>. There was a constant request from the Community to take the learning of these books to the next level. Here is an article which discusses the <a href="http://blog.sqlauthority.com/2012/01/01/sql-server-interview-questions-and-answers-perspectives-of-an-author/" target="_blank"><strong>Author&#8217;s Perspective</strong></a>.</p>
<p style="text-align:justify;">Beyond Relational has come up with a very interesting concept &#8211; they have converted a few of the questions from my book into<strong> </strong>the<strong> </strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/default.aspx" target="_blank"><strong>SQL Quiz</strong></a>. The quiz is indeed focused on my two goals. In addition, it’s going to put the learning of the book to a higher stage. Looking at this novel concept, <a href="http://blogs.extremeexperts.com/" target="_blank"><strong>Vinod Kumar</strong></a> (Co-author) and I have decided to help every participant and reader by giving a few hints and suggestions to solve the quiz.</p>
<h3 style="text-align:justify;">SQL Quiz</h3>
<p style="text-align:justify;"><img class="alignleft" style="margin:2px;" src="http://www.pinaldave.com/bimg/num/21.jpg" alt="" />Even though storage as a subsystem is cheap these days, we have seen several DBAs struggling to find Log files run out of space and stop transactions. Understanding the size of Log files is a critical aspect. And now, table data, index data, log data and other related data are becoming important competencies of an effective DBA. In relation to these, how do you enable and disable an Index? What is the behavior of the size when compared to dropping an Index? How does storage change?</p>
<p style="text-align:justify;"><strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/questions/208/even-though-storage-as-a-subsystem-is-cheap-these-dayswe-have-seen-dbas-struggle-to-find-log-file.aspx" target="_blank">Link to participate in SQL Quiz</a></strong></p>
<h3 style="text-align:justify;">Notes of Vinod Kumar</h3>
<p style="text-align:justify;">Understanding the <a href="http://msdn.microsoft.com/en-us/library/ms190457.aspx?WT.mc_id=aff-n-in-loc--pd" target="_blank">Indexing basics</a> will demystify the differences of how Clustered Index and Non-Clustered Indexes work. The nuances of how the de-allocation happens are completely dependent on the specifics of the version. In line with this, it would be helpful to learn about the formula for calculating the size of a <a href="http://msdn.microsoft.com/en-us/library/ms190620.aspx?WT.mc_id=aff-n-in-loc--pd" target="_blank">non-clustered index</a>.</p>
<h3 style="text-align:justify;">Notes of Pinal Dave</h3>
<p style="text-align:justify;">I admit &#8211; there was a time when I had absolutely no clue about the difference between CREATE and DROP Indexes versus REBUILD Indexes. Not knowing this simple fact, I have often used each other in place where I should have not used it. There are many differences between them; the one which stands out the most is related to performance as well storage. After sometime, I came to learn about this so I started practicing what is right and more appropriate. Today, I have the puzzle put in front of you. Do you really know the difference between them or do you just use whatever comes to mind first?</p>
<h3 style="text-align:justify;">Additional Notes</h3>
<p style="text-align:justify;">SQL Server Interview Questions and Answers ISBN: 1466405643 Page#149<br />
<a href="http://blog.sqlauthority.com/2011/01/04/sql-server-2008-unused-index-script-download/" target="_blank">Unused Index Script – Download</a><br />
<a href="http://blog.sqlauthority.com/2011/01/03/sql-server-2008-missing-index-script-download/" target="_blank">Missing Index Script – Download</a><br />
<a href="http://blog.sqlauthority.com/2010/04/29/sql-server-disable-clustered-index-and-data-insert/" target="_blank">Disable Clustered Index and Data Insert</a><br />
<a href="http://blog.sqlauthority.com/2010/03/26/sql-server-generate-report-for-index-physical-statistics-ssms/" target="_blank">Generate Report for Index Physical Statistics – SSMS</a><br />
<a href="http://blog.sqlauthority.com/2010/05/12/sql-server-understanding-alter-index-all-rebuild-with-disabled-clustered-index/" target="_blank">Understanding ALTER INDEX ALL REBUILD with Disabled Clustered Index</a><br />
<a href="http://blog.sqlauthority.com/2010/09/14/sql-server-disabled-index-and-index-levels-and-b-tree/" target="_blank">Disabled Index and Index Levels and B-Tree</a><br />
<a href="http://blog.sqlauthority.com/2010/07/04/sql-server-index-levels-page-count-record-count-and-dmv-%C2%A0sys-dm_db_index_physical_stats/" target="_blank">Index Levels, Page Count, Record Count and DMV &#8211; sys.dm_db_index_physical_stats</a><br />
<a href="http://blog.sqlauthority.com/2010/05/09/sql-server-size-of-index-table-for-each-index-solution-2/" target="_blank">Size of Index Table for Each Index – Solution 2</a><br />
<a href="http://blog.sqlauthority.com/2010/08/22/sql-server-computed-columns-index-and-performance/" target="_blank">Computed Columns – Index and Performance</a><br />
<a href="http://blog.sqlauthority.com/2010/12/18/sql-server-index-created-on-view-not-used-often-limitation-of-the-view-12/" target="_blank">Index Created on View not Used Often – Limitation of the View 12</a><br />
<a href="http://blog.sqlauthority.com/2011/11/07/sql-server-video-performance-improvement-in-columnstore-index/" target="_blank">Video – Performance Improvement in Columnstore Index</a></p>
<h3 style="text-align:justify;">Prize</h3>
<p style="text-align:justify;">There are exciting prizes awaiting the winners. Click here for <a href="http://beyondrelational.com/quiz/sqlserver/general/2012/prizes.aspx" target="_blank">Prizes</a> and <a href="http://beyondrelational.com/quiz/faq.aspx" target="_blank">Frequently Asked Questions</a>.</p>
<p style="text-align:justify;"><strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/questions/208/even-though-storage-as-a-subsystem-is-cheap-these-dayswe-have-seen-dbas-struggle-to-find-log-file.aspx" target="_blank">Link to participate in SQL Quiz</a></strong></p>
<p style="text-align:justify;">Note: SQL Quiz, winners and prizes are administrated by Beyond Relational. The goal of this blog post is to provide additional learning pointers only.</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>
<br />Filed under: <a href='http://blog.sqlauthority.com/category/tech/pinal-dave/'>Pinal Dave</a>, <a href='http://blog.sqlauthority.com/category/technology/postaday/'>PostADay</a>, <a href='http://blog.sqlauthority.com/category/readers-contribution/'>Readers Contribution</a>, <a href='http://blog.sqlauthority.com/category/readers-question/'>Readers Question</a>, <a href='http://blog.sqlauthority.com/category/technology/sql/'>SQL</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-authority/'>SQL Authority</a>, <a href='http://blog.sqlauthority.com/category/sql-interview-questions-and-answers/'>SQL Interview Questions and Answers</a>, <a href='http://blog.sqlauthority.com/category/sql-puzzle/'>SQL Puzzle</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-query/'>SQL Query</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-server/'>SQL Server</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-tips-and-tricks/'>SQL Tips and Tricks</a>, <a href='http://blog.sqlauthority.com/category/technology/t-sql/'>T SQL</a>, <a href='http://blog.sqlauthority.com/category/technology/'>Technology</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/16619/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/16619/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/16619/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/16619/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sqlauthority.wordpress.com/16619/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sqlauthority.wordpress.com/16619/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sqlauthority.wordpress.com/16619/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sqlauthority.wordpress.com/16619/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/16619/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/16619/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/16619/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/16619/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/16619/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/16619/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=16619&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2012/01/22/sql-server-difference-between-create-index-drop-index-rebuild-index-quiz-puzzle-21-of-31/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/num/21.jpg" medium="image" />
	</item>
		<item>
		<title>SQL SERVER &#8211; Methods for Accessing SQL Server XML Datatype &#8211; Quiz &#8211; Puzzle &#8211; 20 of 31</title>
		<link>http://blog.sqlauthority.com/2012/01/21/sql-server-methods-for-accessing-sql-server-xml-datatype-quiz-puzzle-20-of-31/</link>
		<comments>http://blog.sqlauthority.com/2012/01/21/sql-server-methods-for-accessing-sql-server-xml-datatype-quiz-puzzle-20-of-31/#comments</comments>
		<pubDate>Sat, 21 Jan 2012 01:30:15 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[PostADay]]></category>
		<category><![CDATA[Readers Contribution]]></category>
		<category><![CDATA[Readers Question]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Interview Questions and Answers]]></category>
		<category><![CDATA[SQL Puzzle]]></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=16613</guid>
		<description><![CDATA[Year 2011 was a year of learning and opportunity for me. My recent book, SQL Server Interview Questions and Answers, has received such overwhelming love and support from all of you. While writing the book, I had two simple goals: (1) Master the Basics and (2) Ignite Learning. There was a constant request from the Community to take the learning of these books to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=16613&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Year 2011 was a year of learning and opportunity for me. My recent book, <a href="http://blog.sqlauthority.com/sql-server-books/sql-server-interview-questions-and-answers-for-all-database-developers-and-developers-administrators/" target="_blank"><strong>SQL Server Interview Questions and Answers</strong></a>, has received such overwhelming love and support from all of you. While writing the book, I had <a href="http://blog.sqlauthority.com/2011/12/22/sql-server-mastering-the-basics-igniting-learning-a-unique-learning-experience/" target="_blank"><strong>two simple goals</strong></a>: (1) <strong><em>Master the Basics</em></strong> and (2) <strong><em>Ignite Learning</em></strong>. There was a constant request from the Community to take the learning of these books to the next level. Here is an article which discusses the <a href="http://blog.sqlauthority.com/2012/01/01/sql-server-interview-questions-and-answers-perspectives-of-an-author/" target="_blank"><strong>Author&#8217;s Perspective</strong></a>.</p>
<p style="text-align:justify;">Beyond Relational has come up with a very interesting concept &#8211; they have converted a few of the questions from my book into<strong> </strong>the<strong> </strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/default.aspx" target="_blank"><strong>SQL Quiz</strong></a>. The quiz is indeed focused on my two goals. In addition, it’s going to put the learning of the book to a higher stage. Looking at this novel concept, <a href="http://blogs.extremeexperts.com/" target="_blank"><strong>Vinod Kumar</strong></a> (Co-author) and I have decided to help every participant and reader by giving a few hints and suggestions to solve the quiz.</p>
<h3 style="text-align:justify;">SQL Quiz</h3>
<p style="text-align:justify;"><img class="alignleft" style="margin:2px;" src="http://www.pinaldave.com/bimg/num/20.gif" alt="" />From SQL Server 2000, XML has gained more and more popular due to its many applications. With SQL Server 2005 XML, became a first class datatype and applications are likely to use more natively. In line with this, what are the basic 5 methods provided by XML Datatype for access? When would you use one over the other?</p>
<p style="text-align:justify;"><strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/questions/207/from-sql-server-2000-the-use-of-xml-has-been-more-and-more-by-applications.aspx" target="_blank">Link to participate in SQL Quiz</a></strong></p>
<h3 style="text-align:justify;">Notes of Vinod Kumar</h3>
<p style="text-align:justify;">The standard methods of using XML are interesting. Read here for <a href="http://msdn.microsoft.com/en-us/library/ms190798.aspx?WT.mc_id=aff-n-in-loc--pd" target="_blank">further details</a>. Using the right option is what makes the usages remarkable, though. Just dig a little more in understanding Typed Vs Untyped XML as part of this learning.</p>
<h3 style="text-align:justify;">Notes of Pinal Dave</h3>
<p style="text-align:justify;">XML is a very exciting subject. I often see two different kinds of opinion about XML; some developers like it very much while others just hate it. I have seen expert developers sweltering when they have to deal with XML.</p>
<p style="text-align:justify;">Let me ask you one question: “If a webpage has 100 of the form element and we want to capture all of those which are filled, how would you do it?” See, there are cases where XML just works and moreover it works like a charm. Learning how to read XML data is essential.</p>
<h3 style="text-align:justify;">Additional Notes</h3>
<p style="text-align:justify;">SQL Server Interview Questions and Answers ISBN: 1466405643 Page#137-139<br />
<a href="http://blog.sqlauthority.com/2010/06/23/sqlauthority-news-guest-post-select-from-xml-jacob-sebastian/" target="_blank">SELECT * FROM XML</a><br />
<a href="http://blog.sqlauthority.com/2011/09/02/sql-server-tips-from-the-sql-joes-2-pros-development-series-shredding-xml-day-33-of-35/" target="_blank">Shredding XML</a><br />
<a href="http://blog.sqlauthority.com/2009/12/02/sql-server-validate-an-xml-document-in-tsql-using-xsd-by-jacob-sebastian/" target="_blank">Validate an XML document in TSQL using XSD</a><br />
<a href="http://blog.sqlauthority.com/2009/02/13/sql-server-simple-example-of-reading-xml-file-using-t-sql/" target="_blank">Simple Example of Reading XML File Using T-SQL</a><br />
<a href="http://blog.sqlauthority.com/2009/02/12/sql-server-simple-example-of-creating-xml-file-using-t-sql/" target="_blank">Simple Example of Creating XML File Using T-SQL</a></p>
<h3 style="text-align:justify;">Prize</h3>
<p style="text-align:justify;">There are exciting prizes awaiting the winners. Click here for <a href="http://beyondrelational.com/quiz/sqlserver/general/2012/prizes.aspx" target="_blank">Prizes</a> and <a href="http://beyondrelational.com/quiz/faq.aspx" target="_blank">Frequently Asked Questions</a>.</p>
<p style="text-align:justify;"><strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/questions/207/from-sql-server-2000-the-use-of-xml-has-been-more-and-more-by-applications.aspx" target="_blank">Link to participate in SQL Quiz</a></strong></p>
<p style="text-align:justify;">Note: SQL Quiz, winners and prizes are administrated by Beyond Relational. The goal of this blog post is to provide additional learning pointers only.</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>
<br />Filed under: <a href='http://blog.sqlauthority.com/category/tech/pinal-dave/'>Pinal Dave</a>, <a href='http://blog.sqlauthority.com/category/technology/postaday/'>PostADay</a>, <a href='http://blog.sqlauthority.com/category/readers-contribution/'>Readers Contribution</a>, <a href='http://blog.sqlauthority.com/category/readers-question/'>Readers Question</a>, <a href='http://blog.sqlauthority.com/category/technology/sql/'>SQL</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-authority/'>SQL Authority</a>, <a href='http://blog.sqlauthority.com/category/sql-interview-questions-and-answers/'>SQL Interview Questions and Answers</a>, <a href='http://blog.sqlauthority.com/category/sql-puzzle/'>SQL Puzzle</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-query/'>SQL Query</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-server/'>SQL Server</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-tips-and-tricks/'>SQL Tips and Tricks</a>, <a href='http://blog.sqlauthority.com/category/technology/t-sql/'>T SQL</a>, <a href='http://blog.sqlauthority.com/category/technology/'>Technology</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/16613/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/16613/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/16613/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/16613/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sqlauthority.wordpress.com/16613/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sqlauthority.wordpress.com/16613/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sqlauthority.wordpress.com/16613/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sqlauthority.wordpress.com/16613/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/16613/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/16613/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/16613/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/16613/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/16613/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/16613/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=16613&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2012/01/21/sql-server-methods-for-accessing-sql-server-xml-datatype-quiz-puzzle-20-of-31/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>

		<media:content url="http://www.pinaldave.com/bimg/num/20.gif" medium="image" />
	</item>
		<item>
		<title>SQL SERVER &#8211; MERGE or INSERT, UPDATE, DELETE  &#8211; Quiz &#8211; Puzzle &#8211; 19 of 31</title>
		<link>http://blog.sqlauthority.com/2012/01/20/sql-server-merge-or-insert-update-delete-quiz-puzzle-19-of-31/</link>
		<comments>http://blog.sqlauthority.com/2012/01/20/sql-server-merge-or-insert-update-delete-quiz-puzzle-19-of-31/#comments</comments>
		<pubDate>Fri, 20 Jan 2012 01:30:31 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[PostADay]]></category>
		<category><![CDATA[Readers Contribution]]></category>
		<category><![CDATA[Readers Question]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Interview Questions and Answers]]></category>
		<category><![CDATA[SQL Puzzle]]></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=16608</guid>
		<description><![CDATA[Year 2011 was a year of learning and opportunity for me. My recent book, SQL Server Interview Questions and Answers, has received such overwhelming love and support from all of you. While writing the book, I had two simple goals: (1) Master the Basics and (2) Ignite Learning. There was a constant request from the Community to take the learning of these books to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=16608&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Year 2011 was a year of learning and opportunity for me. My recent book, <a href="http://blog.sqlauthority.com/sql-server-books/sql-server-interview-questions-and-answers-for-all-database-developers-and-developers-administrators/" target="_blank"><strong>SQL Server Interview Questions and Answers</strong></a>, has received such overwhelming love and support from all of you. While writing the book, I had <a href="http://blog.sqlauthority.com/2011/12/22/sql-server-mastering-the-basics-igniting-learning-a-unique-learning-experience/" target="_blank"><strong>two simple goals</strong></a>: (1) <strong><em>Master the Basics</em></strong> and (2) <strong><em>Ignite Learning</em></strong>. There was a constant request from the Community to take the learning of these books to the next level. Here is an article which discusses the <a href="http://blog.sqlauthority.com/2012/01/01/sql-server-interview-questions-and-answers-perspectives-of-an-author/" target="_blank"><strong>Author&#8217;s Perspective</strong></a>.</p>
<p style="text-align:justify;">Beyond Relational has come up with a very interesting concept &#8211; they have converted a few of the questions from my book into<strong> </strong>the<strong> </strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/default.aspx" target="_blank"><strong>SQL Quiz</strong></a>. The quiz is indeed focused on my two goals. In addition, it’s going to put the learning of the book to a higher stage. Looking at this novel concept, <a href="http://blogs.extremeexperts.com/" target="_blank"><strong>Vinod Kumar</strong></a> (Co-author) and I have decided to help every participant and reader by giving a few hints and suggestions to solve the quiz.</p>
<h3 style="text-align:justify;">SQL Quiz</h3>
<p style="text-align:justify;"><img class="alignleft" style="margin:2px;" src="http://www.pinaldave.com/bimg/num/19.jpg" alt="" /></p>
<p style="text-align:justify;">In any performance-testing discussion for a huge, significant development, one of the common requirements is to send multiple values to SQL Server in a single shot. So to help achieve this this requirement, SQL Server introduced the MERGE statement. What is the construct of a MERGE statement? What are the restrictions of using the MERGE?</p>
<p style="text-align:justify;"><strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/questions/206/in-any-performance-testing-discussion-for-large-development-one-of-the-common-requirements.aspx" target="_blank">Link to participate in SQL Quiz</a></strong></p>
<h3 style="text-align:justify;">Notes of Vinod Kumar</h3>
<p style="text-align:justify;">A MERGE statement has great benefits as ETL requirements. Read for <a href="http://msdn.microsoft.com/en-us/library/bb510625.aspx?WT.mc_id=aff-n-in-loc--pd" target="_blank">more details</a>. As you use them in relational engine, can you tell how you can get details of how many INSERTS, UPDATES and DELETES have happened as part of the database?</p>
<h3 style="text-align:justify;">Notes of Pinal Dave</h3>
<p style="text-align:justify;">What is UPSERT? It is commonly used word for INSERT and UPDATE. How about adding DELETE to the UPSERT as well &#8211; what will you call? I will call it MERGE. When I came across MERGE I was very happy as it was not only INSERT, UPDATE and DELETE but if used correctly there were many advantages associated with this operation. Initially, it was very hard into use MERGE statement as I was so used to writing INSERT, UPDATE and DELETE. As I kept myself open to this new procedure; I learned that this can be very helpful. To master any feature, solution or tool, one needs to learn about the limitations of MERGE . Today&#8217;s question is based on the main questions above: “What is MERGE and what are the restrictions of the MERGE statement?”</p>
<h3 style="text-align:justify;">Additional Notes</h3>
<p style="text-align:justify;">SQL Server Interview Questions and Answers ISBN: 1466405643 Page#112<br />
<a href="http://blog.sqlauthority.com/2010/06/08/sql-server-merge-operations-insert-update-delete-in-single-execution/" target="_blank">Merge Operations – Insert, Update, Delete in Single Execution</a><br />
<a href="http://blog.sqlauthority.com/2008/08/28/sql-server-2008-introduction-to-merge-statement-one-statement-for-insert-update-delete/" target="_blank">Introduction to Merge Statement – One Statement for INSERT, UPDATE, DELETE</a><br />
<a href="http://blog.sqlauthority.com/2007/04/28/sql-server-explanation-sql-server-merge-join/" target="_blank">Explanation SQL SERVER Merge Join</a></p>
<h3 style="text-align:justify;">Prize</h3>
<p style="text-align:justify;">There are exciting prizes awaiting the winners. Click here for <a href="http://beyondrelational.com/quiz/sqlserver/general/2012/prizes.aspx" target="_blank">Prizes</a> and <a href="http://beyondrelational.com/quiz/faq.aspx" target="_blank">Frequently Asked Questions</a>.</p>
<p style="text-align:justify;"><strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/questions/206/in-any-performance-testing-discussion-for-large-development-one-of-the-common-requirements.aspx" target="_blank">Link to participate in SQL Quiz</a></strong></p>
<p style="text-align:justify;">Note: SQL Quiz, winners and prizes are administrated by Beyond Relational. The goal of this blog post is to provide additional learning pointers only.</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>
<br />Filed under: <a href='http://blog.sqlauthority.com/category/tech/pinal-dave/'>Pinal Dave</a>, <a href='http://blog.sqlauthority.com/category/technology/postaday/'>PostADay</a>, <a href='http://blog.sqlauthority.com/category/readers-contribution/'>Readers Contribution</a>, <a href='http://blog.sqlauthority.com/category/readers-question/'>Readers Question</a>, <a href='http://blog.sqlauthority.com/category/technology/sql/'>SQL</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-authority/'>SQL Authority</a>, <a href='http://blog.sqlauthority.com/category/sql-interview-questions-and-answers/'>SQL Interview Questions and Answers</a>, <a href='http://blog.sqlauthority.com/category/sql-puzzle/'>SQL Puzzle</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-query/'>SQL Query</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-server/'>SQL Server</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-tips-and-tricks/'>SQL Tips and Tricks</a>, <a href='http://blog.sqlauthority.com/category/technology/t-sql/'>T SQL</a>, <a href='http://blog.sqlauthority.com/category/technology/'>Technology</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/16608/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/16608/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/16608/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/16608/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sqlauthority.wordpress.com/16608/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sqlauthority.wordpress.com/16608/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sqlauthority.wordpress.com/16608/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sqlauthority.wordpress.com/16608/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/16608/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/16608/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/16608/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/16608/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/16608/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/16608/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=16608&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2012/01/20/sql-server-merge-or-insert-update-delete-quiz-puzzle-19-of-31/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/num/19.jpg" medium="image" />
	</item>
		<item>
		<title>SQL SERVER &#8211; Importance of Resource Database &#8211; Quiz &#8211; Puzzle &#8211; 18 of 31</title>
		<link>http://blog.sqlauthority.com/2012/01/19/sql-server-importance-of-resource-database-quiz-puzzle-18-of-31/</link>
		<comments>http://blog.sqlauthority.com/2012/01/19/sql-server-importance-of-resource-database-quiz-puzzle-18-of-31/#comments</comments>
		<pubDate>Thu, 19 Jan 2012 01:30:20 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[PostADay]]></category>
		<category><![CDATA[Readers Contribution]]></category>
		<category><![CDATA[Readers Question]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Interview Questions and Answers]]></category>
		<category><![CDATA[SQL Puzzle]]></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=16605</guid>
		<description><![CDATA[Year 2011 was a year of learning and opportunity for me. My recent book, SQL Server Interview Questions and Answers, has received such overwhelming love and support from all of you. While writing the book, I had two simple goals: (1) Master the Basics and (2) Ignite Learning. There was a constant request from the Community to take the learning of these books to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=16605&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Year 2011 was a year of learning and opportunity for me. My recent book, <a href="http://blog.sqlauthority.com/sql-server-books/sql-server-interview-questions-and-answers-for-all-database-developers-and-developers-administrators/" target="_blank"><strong>SQL Server Interview Questions and Answers</strong></a>, has received such overwhelming love and support from all of you. While writing the book, I had <a href="http://blog.sqlauthority.com/2011/12/22/sql-server-mastering-the-basics-igniting-learning-a-unique-learning-experience/" target="_blank"><strong>two simple goals</strong></a>: (1) <strong><em>Master the Basics</em></strong> and (2) <strong><em>Ignite Learning</em></strong>. There was a constant request from the Community to take the learning of these books to the next level. Here is an article which discusses the <a href="http://blog.sqlauthority.com/2012/01/01/sql-server-interview-questions-and-answers-perspectives-of-an-author/" target="_blank"><strong>Author&#8217;s Perspective</strong></a>.</p>
<p style="text-align:justify;">Beyond Relational has come up with a very interesting concept &#8211; they have converted a few of the questions from my book into<strong> </strong>the<strong> </strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/default.aspx" target="_blank"><strong>SQL Quiz</strong></a>. The quiz is indeed focused on my two goals. In addition, it’s going to put the learning of the book to a higher stage. Looking at this novel concept, <a href="http://blogs.extremeexperts.com/" target="_blank"><strong>Vinod Kumar</strong></a> (Co-author) and I have decided to help every participant and reader by giving a few hints and suggestions to solve the quiz.</p>
<h3 style="text-align:justify;">SQL Quiz</h3>
<p style="text-align:justify;"><img class="alignleft" style="margin:2px;" src="http://www.pinaldave.com/bimg/num/18.jpg" alt="" /></p>
<p style="text-align:justify;">As an effective DBA, it is critical to keep updated on the various server side databases. Recently, I encountered a Developer who was saying that the “sys” schema objects were no longer in the MASTER database. Interestingly, what is the use of RESOURCE Database inside SQL Server? Tell us one change in RESOURCE Database inside SQL Server 2008 R2 edition. Also, how can we find the properties of the RESOURCE database, like what its version is, etc.?</p>
<p style="text-align:justify;"><strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/questions/205/as-an-effective-dba-it-is-critical-to-keep-tap-on-the-various-server-side-databases.aspx" target="_blank">Link to participate in SQL Quiz</a></strong></p>
<h3 style="text-align:justify;">Notes of Vinod Kumar</h3>
<p style="text-align:justify;">RESOURCE databases are <a href="http://msdn.microsoft.com/en-us/library/ms190940.aspx?WT.mc_id=aff-n-in-loc--pd" target="_blank">special databases</a>. And these were created separately for a specific reason. Can you also tell how we can find the details of a RESOURCE database version, and other description of this database? In addition, in your plan to backup the system databases, are you also planning to take the backup of the RESOURCE database? Answering these questions can lead you to the right answer to the SQL Quiz question mentioned earlier. Tell me your views.</p>
<h3 style="text-align:justify;">Notes of Pinal Dave</h3>
<p style="text-align:justify;">Today, instead of hint and sound bytes, let me give a question back at you. How many system databases are there in SQL Server? I often end up receiving the answer “FOUR”.</p>
<p style="text-align:justify;">I think that during the course of SQL Server evolution, DBAs and developers frequently miss their respective rhythm to keep updated. I often say that there’s no empty knowledge; we can find small knowledge from everything. At one place, I have seen a developer deleting a resource database, then SQL Server began to face issues when it was attempting to start. This experience tells us that resources database is very important and it has a specific and crucial use. Honestly, every single system database is very significant, and one should know more about them and keep their knowledge updated.</p>
<h3 style="text-align:justify;">Additional Notes</h3>
<p style="text-align:justify;">SQL Server Interview Questions and Answers ISBN: 1466405643 Page#104<br />
<a href="Resource Database ID – 32767" target="_blank">Resource Database ID – 32767</a><br />
<a href="http://blog.sqlauthority.com/2010/01/31/sql-server-location-of-resource-database-in-sql-server-editions/" target="_blank">Location of Resource Database in SQL Server Editions</a><br />
<a href="http://blog.sqlauthority.com/2008/07/27/sql-server-mssqlsystemresource-resource-database/" target="_blank">mssqlsystemresource – Resource Database</a><br />
<a href="http://blog.sqlauthority.com/2007/10/31/sql-server-importance-of-master-database-for-sql-server-startup/" target="_blank">Importance of Master Database for SQL Server Start-up</a></p>
<h3 style="text-align:justify;">Prize</h3>
<p style="text-align:justify;">There are exciting prizes awaiting the winners. Click here for <a href="http://beyondrelational.com/quiz/sqlserver/general/2012/prizes.aspx" target="_blank">Prizes</a> and <a href="http://beyondrelational.com/quiz/faq.aspx" target="_blank">Frequently Asked Questions</a>.</p>
<p style="text-align:justify;"><strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/questions/205/as-an-effective-dba-it-is-critical-to-keep-tap-on-the-various-server-side-databases.aspx" target="_blank">Link to participate in SQL Quiz</a></strong></p>
<p style="text-align:justify;">Note: SQL Quiz, winners and prizes are administrated by Beyond Relational. The goal of this blog post is to provide additional learning pointers only.</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>
<br />Filed under: <a href='http://blog.sqlauthority.com/category/tech/pinal-dave/'>Pinal Dave</a>, <a href='http://blog.sqlauthority.com/category/technology/postaday/'>PostADay</a>, <a href='http://blog.sqlauthority.com/category/readers-contribution/'>Readers Contribution</a>, <a href='http://blog.sqlauthority.com/category/readers-question/'>Readers Question</a>, <a href='http://blog.sqlauthority.com/category/technology/sql/'>SQL</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-authority/'>SQL Authority</a>, <a href='http://blog.sqlauthority.com/category/sql-interview-questions-and-answers/'>SQL Interview Questions and Answers</a>, <a href='http://blog.sqlauthority.com/category/sql-puzzle/'>SQL Puzzle</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-query/'>SQL Query</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-server/'>SQL Server</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-tips-and-tricks/'>SQL Tips and Tricks</a>, <a href='http://blog.sqlauthority.com/category/technology/t-sql/'>T SQL</a>, <a href='http://blog.sqlauthority.com/category/technology/'>Technology</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/16605/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/16605/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/16605/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/16605/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sqlauthority.wordpress.com/16605/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sqlauthority.wordpress.com/16605/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sqlauthority.wordpress.com/16605/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sqlauthority.wordpress.com/16605/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/16605/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/16605/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/16605/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/16605/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/16605/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/16605/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=16605&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2012/01/19/sql-server-importance-of-resource-database-quiz-puzzle-18-of-31/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/num/18.jpg" medium="image" />
	</item>
		<item>
		<title>SQL SERVER &#8211; Various Ways to Create Constraints &#8211; Quiz &#8211; Puzzle &#8211; 17 of 31</title>
		<link>http://blog.sqlauthority.com/2012/01/18/sql-server-various-ways-to-create-constraints-quiz-puzzle-17-of-31/</link>
		<comments>http://blog.sqlauthority.com/2012/01/18/sql-server-various-ways-to-create-constraints-quiz-puzzle-17-of-31/#comments</comments>
		<pubDate>Wed, 18 Jan 2012 01:30:27 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[PostADay]]></category>
		<category><![CDATA[Readers Contribution]]></category>
		<category><![CDATA[Readers Question]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Interview Questions and Answers]]></category>
		<category><![CDATA[SQL Puzzle]]></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=16599</guid>
		<description><![CDATA[Year 2011 was a year of learning and opportunity for me. My recent book, SQL Server Interview Questions and Answers, has received such overwhelming love and support from all of you. While writing the book, I had two simple goals: (1) Master the Basics and (2) Ignite Learning. There was a constant request from the Community to take the learning of these books to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=16599&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Year 2011 was a year of learning and opportunity for me. My recent book, <a href="http://blog.sqlauthority.com/sql-server-books/sql-server-interview-questions-and-answers-for-all-database-developers-and-developers-administrators/" target="_blank"><strong>SQL Server Interview Questions and Answers</strong></a>, has received such overwhelming love and support from all of you. While writing the book, I had <a href="http://blog.sqlauthority.com/2011/12/22/sql-server-mastering-the-basics-igniting-learning-a-unique-learning-experience/" target="_blank"><strong>two simple goals</strong></a>: (1) <strong><em>Master the Basics</em></strong> and (2) <strong><em>Ignite Learning</em></strong>. There was a constant request from the Community to take the learning of these books to the next level. Here is an article which discusses the <a href="http://blog.sqlauthority.com/2012/01/01/sql-server-interview-questions-and-answers-perspectives-of-an-author/" target="_blank"><strong>Author&#8217;s Perspective</strong></a>.</p>
<p style="text-align:justify;">Beyond Relational has come up with a very interesting concept &#8211; they have converted a few of the questions from my book into<strong> </strong>the<strong> </strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/default.aspx" target="_blank"><strong>SQL Quiz</strong></a>. The quiz is indeed focused on my two goals. In addition, it’s going to put the learning of the book to a higher stage. Looking at this novel concept, <a href="http://blogs.extremeexperts.com/" target="_blank"><strong>Vinod Kumar</strong></a> (Co-author) and I have decided to help every participant and reader by giving a few hints and suggestions to solve the quiz.</p>
<h3 style="text-align:justify;">SQL Quiz</h3>
<p style="text-align:justify;"><img class="alignleft" style="margin:2px;" src="http://www.pinaldave.com/bimg/num/17.jpg" alt="" />Auditing is always fun when we do code reviews. And in a product back-end check we found a lot of junk names for the Default constraints inside the database. What are the different ways you can use to create a CONSTRAINT inside SQL Server?</p>
<p style="text-align:justify;"><strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/questions/204/auditing-is-always-fun-when-we-do-code-reviews.aspx" target="_blank">Link to participate in SQL Quiz</a></strong></p>
<h3 style="text-align:justify;">Notes of Vinod Kumar</h3>
<p style="text-align:justify;">CONSTRAINTS are critical from a business requirement as we design the databases. <a href="http://msdn.microsoft.com/en-us/library/ms189862.aspx?WT.mc_id=aff-n-in-loc--pd" target="_blank">Read more</a> about them. Are you still using the RULE mode? Well, be careful because this is getting removed in the future release.</p>
<h3 style="text-align:justify;">Notes of Pinal Dave</h3>
<p style="text-align:justify;">When I heard of a question about how many different types of ways there are in order for us to create a constraint, I could not believe the answers given to this, at first. Maybe it’s because I find it a bit confusing at times. However, I think the real answer to this question can be achieved if we understand the fundamentals properly. It is important to know how many types of constraints exist in SQL Server before trying to figure out how many different ways the constraints can be created. There are also cases when the constraint has not only helped maintain data integrity but also performance.</p>
<h3 style="text-align:justify;">Additional Notes</h3>
<p style="text-align:justify;">SQL Server Interview Questions and Answers ISBN: 1466405643 Page#137-139<br />
<a href="http://blog.sqlauthority.com/2011/04/21/sql-server-prevent-constraint-to-allow-null/" target="_blank">Prevent Constraint to Allow NULL</a><br />
<a href="http://blog.sqlauthority.com/2008/05/31/sql-server-create-default-constraint-over-table-column/" target="_blank">Create Default Constraint Over Table Column</a><br />
<a href="http://blog.sqlauthority.com/2010/04/22/sql-server-create-primary-key-with-specific-name-when-creating-table/" target="_blank">Create Primary Key with Specific Name when Creating Table</a><br />
<a href="http://blog.sqlauthority.com/2008/09/08/sql-server-%E2%80%93-2008-creating-primary-key-foreign-key-and-default-constraint/" target="_blank">Creating Primary Key, Foreign Key and Default Constraint</a><br />
<a href="http://blog.sqlauthority.com/2011/04/24/sql-server-how-to-alter-constraint/" target="_blank">How to ALTER CONSTRAINT</a><br />
<a href="http://blog.sqlauthority.com/2009/11/12/sql-server-disable-check-constraint-enable-check-constraint/" target="_blank">Disable CHECK Constraint – Enable CHECK Constraint</a><br />
<a href="http://blog.sqlauthority.com/2007/09/16/sql-server-2005-list-all-the-constraint-of-database-find-primary-key-and-foreign-key-constraint-in-database/" target="_blank">Query to Display Foreign Key Relationships and Name of the Constraint for Each Table in Database<br />
List All The Constraint of Database – Find Primary Key and Foreign Key Constraint in Database</a></p>
<h3 style="text-align:justify;">Prize</h3>
<p style="text-align:justify;">There are exciting prizes awaiting the winners. Click here for <a href="http://beyondrelational.com/quiz/sqlserver/general/2012/prizes.aspx" target="_blank">Prizes</a> and <a href="http://beyondrelational.com/quiz/faq.aspx" target="_blank">Frequently Asked Questions</a>.</p>
<p style="text-align:justify;"><strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/questions/204/auditing-is-always-fun-when-we-do-code-reviews.aspx" target="_blank">Link to participate in SQL Quiz</a></strong></p>
<p style="text-align:justify;">Note: SQL Quiz, winners and prizes are administrated by Beyond Relational. The goal of this blog post is to provide additional learning pointers only.</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>
<br />Filed under: <a href='http://blog.sqlauthority.com/category/tech/pinal-dave/'>Pinal Dave</a>, <a href='http://blog.sqlauthority.com/category/technology/postaday/'>PostADay</a>, <a href='http://blog.sqlauthority.com/category/readers-contribution/'>Readers Contribution</a>, <a href='http://blog.sqlauthority.com/category/readers-question/'>Readers Question</a>, <a href='http://blog.sqlauthority.com/category/technology/sql/'>SQL</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-authority/'>SQL Authority</a>, <a href='http://blog.sqlauthority.com/category/sql-interview-questions-and-answers/'>SQL Interview Questions and Answers</a>, <a href='http://blog.sqlauthority.com/category/sql-puzzle/'>SQL Puzzle</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-query/'>SQL Query</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-server/'>SQL Server</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-tips-and-tricks/'>SQL Tips and Tricks</a>, <a href='http://blog.sqlauthority.com/category/technology/t-sql/'>T SQL</a>, <a href='http://blog.sqlauthority.com/category/technology/'>Technology</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/16599/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/16599/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/16599/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/16599/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sqlauthority.wordpress.com/16599/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sqlauthority.wordpress.com/16599/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sqlauthority.wordpress.com/16599/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sqlauthority.wordpress.com/16599/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/16599/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/16599/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/16599/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/16599/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/16599/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/16599/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=16599&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2012/01/18/sql-server-various-ways-to-create-constraints-quiz-puzzle-17-of-31/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/num/17.jpg" medium="image" />
	</item>
		<item>
		<title>SQL SERVER &#8211; CHECKPOINT Behavior and Database Recovery Models &#8211; Quiz &#8211; Puzzle &#8211; 16 of 31</title>
		<link>http://blog.sqlauthority.com/2012/01/17/sql-server-checkpoint-behavior-and-database-recovery-models-quiz-puzzle-16-of-31/</link>
		<comments>http://blog.sqlauthority.com/2012/01/17/sql-server-checkpoint-behavior-and-database-recovery-models-quiz-puzzle-16-of-31/#comments</comments>
		<pubDate>Tue, 17 Jan 2012 01:30:24 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[PostADay]]></category>
		<category><![CDATA[Readers Contribution]]></category>
		<category><![CDATA[Readers Question]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Interview Questions and Answers]]></category>
		<category><![CDATA[SQL Puzzle]]></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=16588</guid>
		<description><![CDATA[Year 2011 was a year of learning and opportunity for me. My recent book, SQL Server Interview Questions and Answers, has received such overwhelming love and support from all of you. While writing the book, I had two simple goals: (1) Master the Basics and (2) Ignite Learning. There was a constant request from the Community to take the learning of these books to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=16588&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Year 2011 was a year of learning and opportunity for me. My recent book, <a href="http://blog.sqlauthority.com/sql-server-books/sql-server-interview-questions-and-answers-for-all-database-developers-and-developers-administrators/" target="_blank"><strong>SQL Server Interview Questions and Answers</strong></a>, has received such overwhelming love and support from all of you. While writing the book, I had <a href="http://blog.sqlauthority.com/2011/12/22/sql-server-mastering-the-basics-igniting-learning-a-unique-learning-experience/" target="_blank"><strong>two simple goals</strong></a>: (1) <strong><em>Master the Basics</em></strong> and (2) <strong><em>Ignite Learning</em></strong>. There was a constant request from the Community to take the learning of these books to the next level. Here is an article which discusses the <a href="http://blog.sqlauthority.com/2012/01/01/sql-server-interview-questions-and-answers-perspectives-of-an-author/" target="_blank"><strong>Author&#8217;s Perspective</strong></a>.</p>
<p style="text-align:justify;">Beyond Relational has come up with a very interesting concept &#8211; they have converted a few of the questions from my book into<strong> </strong>the<strong> </strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/default.aspx" target="_blank"><strong>SQL Quiz</strong></a>. The quiz is indeed focused on my two goals. In addition, it’s going to put the learning of the book to a higher stage. Looking at this novel concept, <a href="http://blogs.extremeexperts.com/" target="_blank"><strong>Vinod Kumar</strong></a> (Co-author) and I have decided to help every participant and reader by giving a few hints and suggestions to solve the quiz.</p>
<h3 style="text-align:justify;">SQL Quiz</h3>
<p style="text-align:justify;"><img class="alignleft" style="margin:2px;" src="http://www.pinaldave.com/bimg/num/16.jpg" alt="" /></p>
<p style="text-align:justify;">Recently, a DBA said that the Log files were growing bigger than the data file size. During the discussion, he mentioned using CHECKPOINT to solve this problem. In relation to this, what does CHECKPOINT do inside SQL Server? Is the behavior change based on Database recovery models?</p>
<p style="text-align:justify;"><strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/questions/203/recently-got-a-dba-who-said-the-log-files-was-growing-bigger-than-the-data-file-size.aspx" target="_blank">Link to participate in SQL Quiz</a></strong></p>
<h3 style="text-align:justify;">Notes of Vinod Kumar</h3>
<p style="text-align:justify;">Database CHECKPOINTS are interesting. <a href="http://msdn.microsoft.com/en-us/library/ms189573%28v=SQL.110%29.aspx?WT.mc_id=aff-n-in-loc--pd" target="_blank">Read more</a> about them. And, as you read more and more, you will surely stumble upon these related questions: What are the correlations of RECOVERY models and their effect? Do dirty records also force flushed to data file during CHECKPOINT? As a DBA, go ahead and play around with this; you’ll find out this is an interesting exercise, trust me.</p>
<h3 style="text-align:justify;">Notes of Pinal Dave</h3>
<p style="text-align:justify;">CHECKPOINT is very exciting concept. I have seen how this function is used, and mis-used. The only advice I have for everyone who is not familiar with this command is that NEVER experiment with it on your production server. In one of the recent technical presentations, I noticed that a few attendees were using CHECKPOINT incorrectly. When I asked a few follow up questions, I learned that their understanding of the dirty records was incorrect. All the advanced concepts require a solid understanding of the basic concepts. Without the basic understanding one person can never master the subject.</p>
<h3 style="text-align:justify;">Additional Notes</h3>
<p style="text-align:justify;">SQL Server Interview Questions and Answers ISBN: 1466405643 Page#137<br />
<a href="http://blog.sqlauthority.com/2011/12/27/sql-server-target-recovery-time-of-a-database-advance-option-in-sql-server-2012/" target="_blank">Target Recovery Time of a Database – Advance Option in SQL Server 2012</a></p>
<h3 style="text-align:justify;">Prize</h3>
<p style="text-align:justify;">There are exciting prizes awaiting the winners. Click here for <a href="http://beyondrelational.com/quiz/sqlserver/general/2012/prizes.aspx" target="_blank">Prizes</a> and <a href="http://beyondrelational.com/quiz/faq.aspx" target="_blank">Frequently Asked Questions</a>.</p>
<p style="text-align:justify;"><strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/questions/203/recently-got-a-dba-who-said-the-log-files-was-growing-bigger-than-the-data-file-size.aspx" target="_blank">Link to participate in SQL Quiz</a></strong></p>
<p style="text-align:justify;">Note: SQL Quiz, winners and prizes are administrated by Beyond Relational. The goal of this blog post is to provide additional learning pointers only.</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>
<br />Filed under: <a href='http://blog.sqlauthority.com/category/tech/pinal-dave/'>Pinal Dave</a>, <a href='http://blog.sqlauthority.com/category/technology/postaday/'>PostADay</a>, <a href='http://blog.sqlauthority.com/category/readers-contribution/'>Readers Contribution</a>, <a href='http://blog.sqlauthority.com/category/readers-question/'>Readers Question</a>, <a href='http://blog.sqlauthority.com/category/technology/sql/'>SQL</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-authority/'>SQL Authority</a>, <a href='http://blog.sqlauthority.com/category/sql-interview-questions-and-answers/'>SQL Interview Questions and Answers</a>, <a href='http://blog.sqlauthority.com/category/sql-puzzle/'>SQL Puzzle</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-query/'>SQL Query</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-server/'>SQL Server</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-tips-and-tricks/'>SQL Tips and Tricks</a>, <a href='http://blog.sqlauthority.com/category/technology/t-sql/'>T SQL</a>, <a href='http://blog.sqlauthority.com/category/technology/'>Technology</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/16588/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/16588/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/16588/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/16588/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sqlauthority.wordpress.com/16588/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sqlauthority.wordpress.com/16588/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sqlauthority.wordpress.com/16588/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sqlauthority.wordpress.com/16588/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/16588/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/16588/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/16588/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/16588/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/16588/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/16588/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=16588&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2012/01/17/sql-server-checkpoint-behavior-and-database-recovery-models-quiz-puzzle-16-of-31/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/num/16.jpg" medium="image" />
	</item>
		<item>
		<title>SQL SERVER &#8211; Difference between CHAR, VARCHAR, NVARCHAR and VARCHAR(MAX) &#8211; Quiz &#8211; Puzzle &#8211; 15 of 31</title>
		<link>http://blog.sqlauthority.com/2012/01/16/sql-server-difference-between-char-varchar-nvarchar-and-varcharmax-quiz-puzzle-15-of-31/</link>
		<comments>http://blog.sqlauthority.com/2012/01/16/sql-server-difference-between-char-varchar-nvarchar-and-varcharmax-quiz-puzzle-15-of-31/#comments</comments>
		<pubDate>Mon, 16 Jan 2012 01:30:18 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[PostADay]]></category>
		<category><![CDATA[Readers Contribution]]></category>
		<category><![CDATA[Readers Question]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Interview Questions and Answers]]></category>
		<category><![CDATA[SQL Puzzle]]></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=16585</guid>
		<description><![CDATA[Year 2011 was a year of learning and opportunity for me. My recent book, SQL Server Interview Questions and Answers, has received such overwhelming love and support from all of you. While writing the book, I had two simple goals: (1) Master the Basics and (2) Ignite Learning. There was a constant request from the Community to take the learning of these books to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=16585&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Year 2011 was a year of learning and opportunity for me. My recent book, <a href="http://blog.sqlauthority.com/sql-server-books/sql-server-interview-questions-and-answers-for-all-database-developers-and-developers-administrators/" target="_blank"><strong>SQL Server Interview Questions and Answers</strong></a>, has received such overwhelming love and support from all of you. While writing the book, I had <a href="http://blog.sqlauthority.com/2011/12/22/sql-server-mastering-the-basics-igniting-learning-a-unique-learning-experience/" target="_blank"><strong>two simple goals</strong></a>: (1) <strong><em>Master the Basics</em></strong> and (2) <strong><em>Ignite Learning</em></strong>. There was a constant request from the Community to take the learning of these books to the next level. Here is an article which discusses the <a href="http://blog.sqlauthority.com/2012/01/01/sql-server-interview-questions-and-answers-perspectives-of-an-author/" target="_blank"><strong>Author&#8217;s Perspective</strong></a>.</p>
<p style="text-align:justify;">Beyond Relational has come up with a very interesting concept &#8211; they have converted a few of the questions from my book into<strong> </strong>the<strong> </strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/default.aspx" target="_blank"><strong>SQL Quiz</strong></a>. The quiz is indeed focused on my two goals. In addition, it’s going to put the learning of the book to a higher stage. Looking at this novel concept, <a href="http://blogs.extremeexperts.com/" target="_blank"><strong>Vinod Kumar</strong></a> (Co-author) and I have decided to help every participant and reader by giving a few hints and suggestions to solve the quiz.</p>
<h3 style="text-align:justify;">SQL Quiz</h3>
<p style="text-align:justify;"><img class="alignleft" style="margin:2px;" src="http://www.pinaldave.com/bimg/num/15.jpg" alt="" />It is a common saying that, “where you should use a nail, you should not use a sword”.  Every little tool has its own usage and its own purpose. What are the differences of CHAR, VARCHAR, NVARCHAR and VARCHAR(MAX) datatypes?</p>
<p style="text-align:justify;"><strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/questions/202/it-is-saying-that-where-you-should-use-nail-you-should-not-use-sword.aspx" target="_blank">Link to participate in SQL Quiz</a></strong></p>
<h3 style="text-align:justify;">Notes of Vinod Kumar</h3>
<p style="text-align:justify;">As we start moving our old ways of using &#8220;text&#8221; datatypes to VARCHAR(MAX), what is it that we get as an advantage? <a href="http://msdn.microsoft.com/en-us/library/ms178158.aspx?WT.mc_id=aff-n-in-loc--pd" target="_blank">Read</a> about more specific advantages. And while you’re at it, you might as well answer this question: “What is the storage requirements and special cases when using these datatypes?”</p>
<h3 style="text-align:justify;">Notes of Pinal Dave</h3>
<p style="text-align:justify;">When people ask me why there are similarly looking features that exist in any product, here is my response: In the real world, even identical twins are not really identical. Likewise human finger prints are not alike. In the same way, most products do not come up with two similar features. Every feature has its own usage and specific advantages. Therefore as a product consumer, it is our duty to understand the feature correctly and try to take advantage of its positive side. With regards to CHAR, VARCHAR and NVARCHAR, there are three major components to pay attention to: 1) Storage, 2) Performance and 3) Capabilities.</p>
<h3 style="text-align:justify;">Additional Notes</h3>
<p style="text-align:justify;">SQL Server Interview Questions and Answers ISBN: 1466405643 Page#85-87<br />
<a href="http://blog.sqlauthority.com/2007/05/26/sql-server-2005-replace-text-with-varcharmax-stop-using-text-ntext-image-data-types/" target="_blank">Replace TEXT with VARCHAR(MAX) – Stop using TEXT, NTEXT, IMAGE Data Types</a><br />
<a href="http://blog.sqlauthority.com/2007/06/01/sql-server-2005-constraint-on-varcharmax-field-to-limit-it-certain-length/" target="_blank">Constraint on VARCHAR(MAX) Field To Limit It Certain Length</a></p>
<h3 style="text-align:justify;">Prize</h3>
<p style="text-align:justify;">There are exciting prizes awaiting the winners. Click here for <a href="http://beyondrelational.com/quiz/sqlserver/general/2012/prizes.aspx" target="_blank">Prizes</a> and <a href="http://beyondrelational.com/quiz/faq.aspx" target="_blank">Frequently Asked Questions</a>.</p>
<p style="text-align:justify;"><strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/questions/202/it-is-saying-that-where-you-should-use-nail-you-should-not-use-sword.aspx" target="_blank">Link to participate in SQL Quiz</a></strong></p>
<p style="text-align:justify;">Note: The SQL Quiz, winners and prizes are administrated by Beyond Relational. The goal of this blog post is to provide additional learning pointers only.</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>
<br />Filed under: <a href='http://blog.sqlauthority.com/category/tech/pinal-dave/'>Pinal Dave</a>, <a href='http://blog.sqlauthority.com/category/technology/postaday/'>PostADay</a>, <a href='http://blog.sqlauthority.com/category/readers-contribution/'>Readers Contribution</a>, <a href='http://blog.sqlauthority.com/category/readers-question/'>Readers Question</a>, <a href='http://blog.sqlauthority.com/category/technology/sql/'>SQL</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-authority/'>SQL Authority</a>, <a href='http://blog.sqlauthority.com/category/sql-interview-questions-and-answers/'>SQL Interview Questions and Answers</a>, <a href='http://blog.sqlauthority.com/category/sql-puzzle/'>SQL Puzzle</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-query/'>SQL Query</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-server/'>SQL Server</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-tips-and-tricks/'>SQL Tips and Tricks</a>, <a href='http://blog.sqlauthority.com/category/technology/t-sql/'>T SQL</a>, <a href='http://blog.sqlauthority.com/category/technology/'>Technology</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/16585/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/16585/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/16585/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/16585/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sqlauthority.wordpress.com/16585/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sqlauthority.wordpress.com/16585/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sqlauthority.wordpress.com/16585/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sqlauthority.wordpress.com/16585/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/16585/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/16585/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/16585/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/16585/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/16585/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/16585/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=16585&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2012/01/16/sql-server-difference-between-char-varchar-nvarchar-and-varcharmax-quiz-puzzle-15-of-31/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/num/15.jpg" medium="image" />
	</item>
		<item>
		<title>SQL SERVER &#8211; Cases When Stored Procedure RECOMPILE &#8211; Quiz &#8211; Puzzle &#8211; 14 of 31</title>
		<link>http://blog.sqlauthority.com/2012/01/15/sql-server-cases-when-stored-procedure-recompile-quiz-puzzle-14-of-31/</link>
		<comments>http://blog.sqlauthority.com/2012/01/15/sql-server-cases-when-stored-procedure-recompile-quiz-puzzle-14-of-31/#comments</comments>
		<pubDate>Sun, 15 Jan 2012 01:30:26 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[PostADay]]></category>
		<category><![CDATA[Readers Contribution]]></category>
		<category><![CDATA[Readers Question]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Interview Questions and Answers]]></category>
		<category><![CDATA[SQL Puzzle]]></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=16583</guid>
		<description><![CDATA[Year 2011 was a year of learning and opportunity for me. My recent book, SQL Server Interview Questions and Answers, has received such overwhelming love and support from all of you. While writing the book, I had two simple goals: (1) Master the Basics and (2) Ignite Learning. There was a constant request from the Community to take the learning of these books to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=16583&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Year 2011 was a year of learning and opportunity for me. My recent book, <a href="http://blog.sqlauthority.com/sql-server-books/sql-server-interview-questions-and-answers-for-all-database-developers-and-developers-administrators/" target="_blank"><strong>SQL Server Interview Questions and Answers</strong></a>, has received such overwhelming love and support from all of you. While writing the book, I had <a href="http://blog.sqlauthority.com/2011/12/22/sql-server-mastering-the-basics-igniting-learning-a-unique-learning-experience/" target="_blank"><strong>two simple goals</strong></a>: (1) <strong><em>Master the Basics</em></strong> and (2) <strong><em>Ignite Learning</em></strong>. There was a constant request from the Community to take the learning of these books to the next level. Here is an article which discusses the <a href="http://blog.sqlauthority.com/2012/01/01/sql-server-interview-questions-and-answers-perspectives-of-an-author/" target="_blank"><strong>Author&#8217;s Perspective</strong></a>.</p>
<p style="text-align:justify;">Beyond Relational has come up with a very interesting concept &#8211; they have converted a few of the questions from my book into<strong> </strong>the<strong> </strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/default.aspx" target="_blank"><strong>SQL Quiz</strong></a>. The quiz is indeed focused on my two goals. In addition, it’s going to put the learning of the book to a higher stage. Looking at this novel concept, <a href="http://blogs.extremeexperts.com/" target="_blank"><strong>Vinod Kumar</strong></a> (Co-author) and I have decided to help every participant and reader by giving a few hints and suggestions to solve the quiz.</p>
<h3 style="text-align:justify;">SQL Quiz</h3>
<p style="text-align:justify;"><img class="alignleft" style="margin:2px;" src="http://www.pinaldave.com/bimg/num/14.jpg" alt="" /></p>
<p style="text-align:justify;">Compile and Recompile have very interesting meanings when learning Machine learning. However, the same things have similar but very interesting effects in SQL Server. Many related compilations of the code with performance are correct but have nothing to do with each other at some degree. When do your stored Procedures RECOMPILE inside SQL Server?</p>
<p style="text-align:justify;"><strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/questions/201/compile-and-recompile-has-very-interesting-meaning-when-learning-machine-learning.aspx" target="_blank">Link to participate in SQL Quiz</a></strong></p>
<h3 style="text-align:justify;">Notes of Vinod Kumar</h3>
<p style="text-align:justify;">Compilation of any code is inevitable, but why should SQL Server recompile in first place? Well, this is really a fundamental question. <a href="http://support.microsoft.com/kb/243586?WT.mc_id=aff-n-in-loc--pd" target="_blank">Read</a> this article which talks extensively about the usages and when-where these recompile happen. What are the various pitfalls and improvements made with SQL Server 2008 R2 edition?</p>
<h3 style="text-align:justify;">Notes of Pinal Dave</h3>
<p style="text-align:justify;">Compilation and Recompilation are different concepts. I remember my college when I had to take a Compiler course as part of my study. I found myself in really hard nailed shoes during the course. Now, Stored Procedure compilation is an equally difficult concept. You might have found yourself in the situation when compilation of the stored procedure sometimes gives optimal performance, while at other times it reduces the overall performance of the server. One has to really master the similar various aspects of the SQL Server, if they aspire an advanced career with SQL Server technology.</p>
<h3 style="text-align:justify;">Additional Notes</h3>
<p style="text-align:justify;">SQL Server Interview Questions and Answers ISBN: 1466405643 Page#99<br />
<strong><a href="http://blog.sqlauthority.com/2009/11/08/sql-server-stored-procedure-are-compiled-on-first-run-sp-taking-longer-to-run-first-time/" target="_blank"> Stored Procedure are Compiled on First Run – SP taking Longer to Run First Time</a></strong><br />
<a href="http://blog.sqlauthority.com/2010/02/20/sql-server-recompile-stored-procedure-at-run-time/" target="_blank"> Recompile Stored Procedure at Run Time</a><br />
<a href="http://blog.sqlauthority.com/2010/10/10/sql-server-encrypted-stored-procedure-and-activity-monitor/" target="_blank"> Encrypted Stored Procedure and Activity Monitor</a><br />
<a href="http://blog.sqlauthority.com/2010/06/02/sql-server-stored-procedure-and-transactions/" target="_blank"> Stored Procedure and Transactions</a></p>
<h3 style="text-align:justify;">Prize</h3>
<p style="text-align:justify;">There are exciting prizes awaiting the winners. Click here for <a href="http://beyondrelational.com/quiz/sqlserver/general/2012/prizes.aspx" target="_blank">Prizes</a> and <a href="http://beyondrelational.com/quiz/faq.aspx" target="_blank">Frequently Asked Questions</a>.</p>
<p style="text-align:justify;"><strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/questions/201/compile-and-recompile-has-very-interesting-meaning-when-learning-machine-learning.aspx" target="_blank">Link to participate in SQL Quiz</a></strong></p>
<p style="text-align:justify;">Note: The SQL Quiz, winners and prizes are administrated by Beyond Relational. The goal of this blog post is to provide additional learning pointers only.</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>
<br />Filed under: <a href='http://blog.sqlauthority.com/category/tech/pinal-dave/'>Pinal Dave</a>, <a href='http://blog.sqlauthority.com/category/technology/postaday/'>PostADay</a>, <a href='http://blog.sqlauthority.com/category/readers-contribution/'>Readers Contribution</a>, <a href='http://blog.sqlauthority.com/category/readers-question/'>Readers Question</a>, <a href='http://blog.sqlauthority.com/category/technology/sql/'>SQL</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-authority/'>SQL Authority</a>, <a href='http://blog.sqlauthority.com/category/sql-interview-questions-and-answers/'>SQL Interview Questions and Answers</a>, <a href='http://blog.sqlauthority.com/category/sql-puzzle/'>SQL Puzzle</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-query/'>SQL Query</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-server/'>SQL Server</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-tips-and-tricks/'>SQL Tips and Tricks</a>, <a href='http://blog.sqlauthority.com/category/technology/t-sql/'>T SQL</a>, <a href='http://blog.sqlauthority.com/category/technology/'>Technology</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/16583/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/16583/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/16583/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/16583/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sqlauthority.wordpress.com/16583/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sqlauthority.wordpress.com/16583/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sqlauthority.wordpress.com/16583/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sqlauthority.wordpress.com/16583/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/16583/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/16583/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/16583/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/16583/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/16583/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/16583/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=16583&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2012/01/15/sql-server-cases-when-stored-procedure-recompile-quiz-puzzle-14-of-31/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/num/14.jpg" medium="image" />
	</item>
		<item>
		<title>SQL SERVER &#8211; Debate &#8211; Table Variables vs Temporary Tables &#8211; Quiz &#8211; Puzzle &#8211; 13 of 31</title>
		<link>http://blog.sqlauthority.com/2012/01/14/sql-server-debate-table-variables-vs-temporary-tables-quiz-puzzle-13-of-31/</link>
		<comments>http://blog.sqlauthority.com/2012/01/14/sql-server-debate-table-variables-vs-temporary-tables-quiz-puzzle-13-of-31/#comments</comments>
		<pubDate>Sat, 14 Jan 2012 01:30:40 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[PostADay]]></category>
		<category><![CDATA[Readers Contribution]]></category>
		<category><![CDATA[Readers Question]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Interview Questions and Answers]]></category>
		<category><![CDATA[SQL Puzzle]]></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=16581</guid>
		<description><![CDATA[Year 2011 was a year of learning and opportunity for me. My recent book, SQL Server Interview Questions and Answers, has received such overwhelming love and support from all of you. While writing the book, I had two simple goals: (1) Master the Basics and (2) Ignite Learning. There was a constant request from the Community to take the learning of these books to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=16581&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Year 2011 was a year of learning and opportunity for me. My recent book, <a href="http://blog.sqlauthority.com/sql-server-books/sql-server-interview-questions-and-answers-for-all-database-developers-and-developers-administrators/" target="_blank"><strong>SQL Server Interview Questions and Answers</strong></a>, has received such overwhelming love and support from all of you. While writing the book, I had <a href="http://blog.sqlauthority.com/2011/12/22/sql-server-mastering-the-basics-igniting-learning-a-unique-learning-experience/" target="_blank"><strong>two simple goals</strong></a>: (1) <strong><em>Master the Basics</em></strong> and (2) <strong><em>Ignite Learning</em></strong>. There was a constant request from the Community to take the learning of these books to the next level. Here is an article which discusses the <a href="http://blog.sqlauthority.com/2012/01/01/sql-server-interview-questions-and-answers-perspectives-of-an-author/" target="_blank"><strong>Author&#8217;s Perspective</strong></a>.</p>
<p style="text-align:justify;">Beyond Relational has come up with a very interesting concept &#8211; they have converted a few of the questions from my book into<strong> </strong>the<strong> </strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/default.aspx" target="_blank"><strong>SQL Quiz</strong></a>. The quiz is indeed focused on my two goals. In addition, it’s going to put the learning of the book to a higher stage. Looking at this novel concept, <a href="http://blogs.extremeexperts.com/" target="_blank"><strong>Vinod Kumar</strong></a> (Co-author) and I have decided to help every participant and reader by giving a few hints and suggestions to solve the quiz.</p>
<h3 style="text-align:justify;">SQL Quiz</h3>
<p style="text-align:justify;"><img class="alignleft" style="margin:2px;" src="http://www.pinaldave.com/bimg/num/13.jpg" alt="" /> Some questions are good for debates. There are so many myths associated with a few subjects that when the discussion starts, it is hard to convince a stubborn friend who is not ready to accept the truth. Let me see you attempt both sides of the following question: What is the difference of table variable and temp tables?</p>
<p style="text-align:justify;"><strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/questions/200/some-questions-are-good-for-debates.aspx" target="_blank">Link to participate in SQL Quiz</a></strong></p>
<h3 style="text-align:justify;">Notes of Vinod Kumar</h3>
<p style="text-align:justify;">Understanding these <a href="http://msdn.microsoft.com/en-us/library/ms186986.aspx?WT.mc_id=aff-n-in-loc--pd" target="_blank">special tables</a> is an important thing, although the usages can be a fine line and are often interchangeably used. What are the differences in scope, usage restrictions and more?</p>
<h3 style="text-align:justify;">Notes of Pinal Dave</h3>
<p style="text-align:justify;">This is indeed an eternal debate. I often meet developers who have different beliefs and <strong><em>strong</em></strong> opinions about when to use what. I frequently express developers the internals as well as what the optimal solution between Table Variables and Temporary Tables is, considering their situation. However, I always feel the desire to reach to every single developer and explain the solution in depth. Here is an advice for those who are confused what to use and what. Test it, compare it and implement it. I always suggest to developers to trust SQL Server Engine and test their solution against it and implement it in their application.</p>
<h3 style="text-align:justify;">Additional Notes</h3>
<p style="text-align:justify;">SQL Server Interview Questions and Answers ISBN: 1466405643 Page#75-76<br />
<a href="http://blog.sqlauthority.com/2009/12/28/sql-server-difference-temp-table-and-table-variable-effect-of-transaction/" target="_blank"> Difference Temp Table and Table Variable – Effect of Transaction</a><br />
<a href="http://blog.sqlauthority.com/2009/12/15/sql-server-difference-temptable-and-table-variable-temptable-in-memory-a-myth/" target="_blank">Difference TempTable and Table Variable – TempTable in Memory a Myth</a><br />
<a href="http://blog.sqlauthority.com/2011/03/23/sql-server-denali-objectid-in-negative-local-temptable-has-negative-objectid/" target="_blank"> ObjectID in Negative – Local TempTable has Negative ObjectID</a></p>
<h3 style="text-align:justify;">Prize</h3>
<p style="text-align:justify;">There are exciting prizes awaiting the winners. Click here for <a href="http://beyondrelational.com/quiz/sqlserver/general/2012/prizes.aspx" target="_blank">Prizes</a> and <a href="http://beyondrelational.com/quiz/faq.aspx" target="_blank">Frequently Asked Questions</a>.</p>
<p style="text-align:justify;"><strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/questions/200/some-questions-are-good-for-debates.aspx" target="_blank">Link to participate in SQL Quiz</a></strong></p>
<p style="text-align:justify;">Note: The SQL Quiz, winners and prizes are administrated by Beyond Relational. The goal of this blog post is to provide additional learning pointers only.</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>
<br />Filed under: <a href='http://blog.sqlauthority.com/category/tech/pinal-dave/'>Pinal Dave</a>, <a href='http://blog.sqlauthority.com/category/technology/postaday/'>PostADay</a>, <a href='http://blog.sqlauthority.com/category/readers-contribution/'>Readers Contribution</a>, <a href='http://blog.sqlauthority.com/category/readers-question/'>Readers Question</a>, <a href='http://blog.sqlauthority.com/category/technology/sql/'>SQL</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-authority/'>SQL Authority</a>, <a href='http://blog.sqlauthority.com/category/sql-interview-questions-and-answers/'>SQL Interview Questions and Answers</a>, <a href='http://blog.sqlauthority.com/category/sql-puzzle/'>SQL Puzzle</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-query/'>SQL Query</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-server/'>SQL Server</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-tips-and-tricks/'>SQL Tips and Tricks</a>, <a href='http://blog.sqlauthority.com/category/technology/t-sql/'>T SQL</a>, <a href='http://blog.sqlauthority.com/category/technology/'>Technology</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/16581/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/16581/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/16581/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/16581/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sqlauthority.wordpress.com/16581/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sqlauthority.wordpress.com/16581/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sqlauthority.wordpress.com/16581/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sqlauthority.wordpress.com/16581/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/16581/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/16581/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/16581/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/16581/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/16581/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/16581/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=16581&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2012/01/14/sql-server-debate-table-variables-vs-temporary-tables-quiz-puzzle-13-of-31/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>

		<media:content url="http://www.pinaldave.com/bimg/num/13.jpg" medium="image" />
	</item>
		<item>
		<title>SQL SERVER &#8211; DACPAC and SQL Azure &#8211; Quiz &#8211; Puzzle &#8211; 12 of 31</title>
		<link>http://blog.sqlauthority.com/2012/01/13/sql-server-dacpac-and-sql-azure-quiz-puzzle-12-of-31/</link>
		<comments>http://blog.sqlauthority.com/2012/01/13/sql-server-dacpac-and-sql-azure-quiz-puzzle-12-of-31/#comments</comments>
		<pubDate>Fri, 13 Jan 2012 01:30:27 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[PostADay]]></category>
		<category><![CDATA[Readers Contribution]]></category>
		<category><![CDATA[Readers Question]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Interview Questions and Answers]]></category>
		<category><![CDATA[SQL Puzzle]]></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=16579</guid>
		<description><![CDATA[Year 2011 was a year of learning and opportunity for me. My recent book, SQL Server Interview Questions and Answers, has received such overwhelming love and support from all of you. While writing the book, I had two simple goals: (1) Master the Basics and (2) Ignite Learning. There was a constant request from the Community to take the learning of these books to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=16579&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Year 2011 was a year of learning and opportunity for me. My recent book, <a href="http://blog.sqlauthority.com/sql-server-books/sql-server-interview-questions-and-answers-for-all-database-developers-and-developers-administrators/" target="_blank"><strong>SQL Server Interview Questions and Answers</strong></a>, has received such overwhelming love and support from all of you. While writing the book, I had <a href="http://blog.sqlauthority.com/2011/12/22/sql-server-mastering-the-basics-igniting-learning-a-unique-learning-experience/" target="_blank"><strong>two simple goals</strong></a>: (1) <strong><em>Master the Basics</em></strong> and (2) <strong><em>Ignite Learning</em></strong>. There was a constant request from the Community to take the learning of these books to the next level. Here is an article which discusses the <a href="http://blog.sqlauthority.com/2012/01/01/sql-server-interview-questions-and-answers-perspectives-of-an-author/" target="_blank"><strong>Author&#8217;s Perspective</strong></a>.</p>
<p style="text-align:justify;">Beyond Relational has come up with a very interesting concept &#8211; they have converted a few of the questions from my book into<strong> </strong>the<strong> </strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/default.aspx" target="_blank"><strong>SQL Quiz</strong></a>. The quiz is indeed focused on my two goals. In addition, it’s going to put the learning of the book to a higher stage. Looking at this novel concept, <a href="http://blogs.extremeexperts.com/" target="_blank"><strong>Vinod Kumar</strong></a> (Co-author) and I have decided to help every participant and reader by giving a few hints and suggestions to solve the quiz.</p>
<h3 style="text-align:justify;">SQL Quiz</h3>
<p style="text-align:justify;"><img class="alignleft" style="margin:2px;" src="http://www.pinaldave.com/bimg/num/12.jpg" alt="" /></p>
<p style="text-align:justify;">A developer and DBA both sometime have their own priority and preferences when it is about database designs. If you are a DBA or a developer you must learn cross domain expertise features. One of the similar features is DACPAC. What is the use of DACPAC?</p>
<p style="text-align:justify;"><strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/questions/199/developer-and-dba-both-sometime-have-their-own-priority-and-preferences-when-it-is-about-database.aspx" target="_blank">Link to participate in SQL Quiz</a></strong></p>
<h3 style="text-align:justify;">Notes of Vinod Kumar</h3>
<p style="text-align:justify;">Data-tier applications are a great start for simple data centric application designs. This <a href="http://msdn.microsoft.com/en-us/library/ee362011.aspx?WT.mc_id=aff-n-in-loc--pd" target="_blank">Hint</a> talks about the root of the documentation. Well, will you be able to use DACPAC with SQL Azure? If yes, how?</p>
<h3 style="text-align:justify;">Notes of Pinal Dave</h3>
<p style="text-align:justify;">Import and Export is one of the most important tasks any DBA performs. DBAs often have their own style of doing tasks while developers have their own preference. DACPAC is a great tool which is building bridges between DBA and Developers. In SQL Azure, the process of data import and export has been one of the very interesting features. I suggest that you head to Azure Portal and do little experiments with its features.</p>
<h3 style="text-align:justify;">Additional Notes</h3>
<p style="text-align:justify;">SQL Server Interview Questions and Answers ISBN: 1466405643 Page#64<br />
<a href="http://blog.sqlauthority.com/2011/06/13/sql-server-extending-sql-azure-with-azure-worker-role-guest-post-by-paras-doshi/" target="_blank">Azure Interview Questions and Answers – Guest Post by Paras Doshi – Day 25 of 31</a><br />
<a href="http://blog.sqlauthority.com/2011/04/27/sql-server-introduction-to-sql-azure-creating-database-and-connecting-database/" target="_blank">Introduction to SQL Azure – Creating Database and Connecting Database</a></p>
<h3 style="text-align:justify;">Prize</h3>
<p style="text-align:justify;">There are exciting prizes awaiting the winners. Click here for <a href="http://beyondrelational.com/quiz/sqlserver/general/2012/prizes.aspx" target="_blank">Prizes</a> and <a href="http://beyondrelational.com/quiz/faq.aspx" target="_blank">Frequently Asked Questions</a>.</p>
<p style="text-align:justify;"><strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/questions/199/developer-and-dba-both-sometime-have-their-own-priority-and-preferences-when-it-is-about-database.aspx" target="_blank">Link to participate in SQL Quiz</a></strong></p>
<p style="text-align:justify;">Note: The SQL Quiz, winners and prizes are administrated by Beyond Relational. The goal of this blog post is to provide additional learning pointers only.</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>
<br />Filed under: <a href='http://blog.sqlauthority.com/category/tech/pinal-dave/'>Pinal Dave</a>, <a href='http://blog.sqlauthority.com/category/technology/postaday/'>PostADay</a>, <a href='http://blog.sqlauthority.com/category/readers-contribution/'>Readers Contribution</a>, <a href='http://blog.sqlauthority.com/category/readers-question/'>Readers Question</a>, <a href='http://blog.sqlauthority.com/category/technology/sql/'>SQL</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-authority/'>SQL Authority</a>, <a href='http://blog.sqlauthority.com/category/sql-interview-questions-and-answers/'>SQL Interview Questions and Answers</a>, <a href='http://blog.sqlauthority.com/category/sql-puzzle/'>SQL Puzzle</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-query/'>SQL Query</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-server/'>SQL Server</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-tips-and-tricks/'>SQL Tips and Tricks</a>, <a href='http://blog.sqlauthority.com/category/technology/t-sql/'>T SQL</a>, <a href='http://blog.sqlauthority.com/category/technology/'>Technology</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/16579/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/16579/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/16579/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/16579/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sqlauthority.wordpress.com/16579/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sqlauthority.wordpress.com/16579/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sqlauthority.wordpress.com/16579/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sqlauthority.wordpress.com/16579/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/16579/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/16579/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/16579/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/16579/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/16579/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/16579/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=16579&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2012/01/13/sql-server-dacpac-and-sql-azure-quiz-puzzle-12-of-31/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/num/12.jpg" medium="image" />
	</item>
		<item>
		<title>SQL SERVER &#8211; Non-Clustered Index and Automatic Rebuild &#8211; Quiz &#8211; Puzzle &#8211; 11 of 31</title>
		<link>http://blog.sqlauthority.com/2012/01/12/sql-server-non-clustered-index-and-automatic-rebuild-quiz-puzzle-11-of-31/</link>
		<comments>http://blog.sqlauthority.com/2012/01/12/sql-server-non-clustered-index-and-automatic-rebuild-quiz-puzzle-11-of-31/#comments</comments>
		<pubDate>Thu, 12 Jan 2012 01:30:22 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[PostADay]]></category>
		<category><![CDATA[Readers Contribution]]></category>
		<category><![CDATA[Readers Question]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Interview Questions and Answers]]></category>
		<category><![CDATA[SQL Puzzle]]></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=16576</guid>
		<description><![CDATA[Year 2011 was a year of learning and opportunity for me. My recent book, SQL Server Interview Questions and Answers, has received such overwhelming love and support from all of you. While writing the book, I had two simple goals: (1) Master the Basics and (2) Ignite Learning. There was a constant request from the Community to take the learning of these books to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=16576&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Year 2011 was a year of learning and opportunity for me. My recent book, <a href="http://blog.sqlauthority.com/sql-server-books/sql-server-interview-questions-and-answers-for-all-database-developers-and-developers-administrators/" target="_blank"><strong>SQL Server Interview Questions and Answers</strong></a>, has received such overwhelming love and support from all of you. While writing the book, I had <a href="http://blog.sqlauthority.com/2011/12/22/sql-server-mastering-the-basics-igniting-learning-a-unique-learning-experience/" target="_blank"><strong>two simple goals</strong></a>: (1) <strong><em>Master the Basics</em></strong> and (2) <strong><em>Ignite Learning</em></strong>. There was a constant request from the Community to take the learning of these books to the next level. Here is an article which discusses the <a href="http://blog.sqlauthority.com/2012/01/01/sql-server-interview-questions-and-answers-perspectives-of-an-author/" target="_blank"><strong>Author&#8217;s Perspective</strong></a>.</p>
<p style="text-align:justify;">Beyond Relational has come up with a very interesting concept &#8211; they have converted a few of the questions from my book into<strong> </strong>the<strong> </strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/default.aspx" target="_blank"><strong>SQL Quiz</strong></a>. The quiz is indeed focused on my two goals. In addition, it’s going to put the learning of the book to a higher stage. Looking at this novel concept, <a href="http://blogs.extremeexperts.com/" target="_blank"><strong>Vinod Kumar</strong></a> (Co-author) and I have decided to help every participant and reader by giving a few hints and suggestions to solve the quiz.</p>
<h3 style="text-align:justify;">SQL Quiz</h3>
<p style="text-align:justify;"><img class="alignleft" style="margin:2px;" src="http://www.pinaldave.com/bimg/num/11.jpg" alt="" /></p>
<p style="text-align:justify;">A performance tuning expert often encounter situation where it is difficult to figure out why certain activities are happening behind the scene in SQL Server Engine. Understanding that every action has some root cause is the key to be successful performance tuning expert. Here is one question which often puzzles man: <strong><em>When are the non-Clustered Indexes automatically rebuilt?</em></strong></p>
<p style="text-align:justify;"><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/questions/198/performance-tuning-expert-often-encounter-situation-where-it-is-difficult-to-figure-out-why-certain.aspx" target="_blank"><strong>Link to participate in SQL Quiz</strong></a></p>
<h3 style="text-align:justify;">Notes of Vinod Kumar</h3>
<p style="text-align:justify;">Though the concepts of automatic rebuilding are central to the SQL Server Engine, the differences of Rebuilding and reorganizing is also worth knowing. This <a href="http://msdn.microsoft.com/en-US/library/ms189858%28v=SQL.105%29.aspx?WT.mc_id=aff-n-in-loc--pd" target="_blank">Hint</a> has an explanation to the reasons when to use what. Knowing these will help a long way if you are a budding DBA.</p>
<h3 style="text-align:justify;">Notes of Pinal Dave</h3>
<p style="text-align:justify;">I believe that there exists more misconception related to Indexes than any other topic in SQL Server. Reorganizing and Rebuilding are very important concepts. Additionally, the fill factor matters the most. This puzzle is so interesting that it is best-proved if T-SQL code is written to verify this puzzle. If the code is interesting, I promise to post it on this blog with due credits to you.</p>
<h3 style="text-align:justify;">Additional Notes</h3>
<p style="text-align:justify;">SQL Server Interview Questions and Answers ISBN: 1466405643 Page#67<br />
<a href="http://blog.sqlauthority.com/2007/12/22/sql-server-difference-between-index-rebuild-and-index-reorganize-explained-with-t-sql-script/" target="_blank">Difference Between Index Rebuild and Index Reorganize Explained with T-SQL Script</a><br />
<a href="http://blog.sqlauthority.com/2010/01/12/sql-server-fragmentation-detect-fragmentation-and-eliminate-fragmentation/" target="_blank">Fragmentation – Detect Fragmentation and Eliminate Fragmentation</a><br />
<a href="http://blog.sqlauthority.com/2010/03/26/sql-server-generate-report-for-index-physical-statistics-ssms/" target="_blank">Generate Report for Index Physical Statistics – SSMS</a><br />
<a href="http://blog.sqlauthority.com/2007/06/24/sql-server-comparison-index-fragmentation-index-de-fragmentation-index-rebuild-sql-server-2000-and-sql-server-2005/" target="_blank">Comparison Index Fragmentation, Index De-Fragmentation, Index Rebuild – SQL SERVER 2000 and SQL SERVER 2005</a></p>
<h3 style="text-align:justify;">Prize</h3>
<p style="text-align:justify;">There are exciting prizes awaiting the winners. Click here for <a href="http://beyondrelational.com/quiz/sqlserver/general/2012/prizes.aspx" target="_blank">Prizes</a> and <a href="http://beyondrelational.com/quiz/faq.aspx" target="_blank">Frequently Asked Questions</a>.</p>
<p style="text-align:justify;"><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/questions/198/performance-tuning-expert-often-encounter-situation-where-it-is-difficult-to-figure-out-why-certain.aspx" target="_blank"><strong>Link to participate in SQL Quiz</strong></a></p>
<p style="text-align:justify;">Note: The SQL Quiz, winners and prizes are administrated by Beyond Relational. The goal of this blog post is to provide additional learning pointers only.</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>
<br />Filed under: <a href='http://blog.sqlauthority.com/category/tech/pinal-dave/'>Pinal Dave</a>, <a href='http://blog.sqlauthority.com/category/technology/postaday/'>PostADay</a>, <a href='http://blog.sqlauthority.com/category/readers-contribution/'>Readers Contribution</a>, <a href='http://blog.sqlauthority.com/category/readers-question/'>Readers Question</a>, <a href='http://blog.sqlauthority.com/category/technology/sql/'>SQL</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-authority/'>SQL Authority</a>, <a href='http://blog.sqlauthority.com/category/sql-interview-questions-and-answers/'>SQL Interview Questions and Answers</a>, <a href='http://blog.sqlauthority.com/category/sql-puzzle/'>SQL Puzzle</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-query/'>SQL Query</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-server/'>SQL Server</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-tips-and-tricks/'>SQL Tips and Tricks</a>, <a href='http://blog.sqlauthority.com/category/technology/t-sql/'>T SQL</a>, <a href='http://blog.sqlauthority.com/category/technology/'>Technology</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/16576/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/16576/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/16576/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/16576/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sqlauthority.wordpress.com/16576/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sqlauthority.wordpress.com/16576/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sqlauthority.wordpress.com/16576/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sqlauthority.wordpress.com/16576/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/16576/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/16576/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/16576/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/16576/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/16576/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/16576/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=16576&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2012/01/12/sql-server-non-clustered-index-and-automatic-rebuild-quiz-puzzle-11-of-31/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>

		<media:content url="http://www.pinaldave.com/bimg/num/11.jpg" medium="image" />
	</item>
		<item>
		<title>SQL SERVER &#8211; Reasons for Using Output Clause &#8211; Quiz &#8211; Puzzle &#8211; 10 of 31</title>
		<link>http://blog.sqlauthority.com/2012/01/11/sql-server-reasons-for-using-output-clause-quiz-puzzle-10-of-31/</link>
		<comments>http://blog.sqlauthority.com/2012/01/11/sql-server-reasons-for-using-output-clause-quiz-puzzle-10-of-31/#comments</comments>
		<pubDate>Wed, 11 Jan 2012 01:30:43 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[PostADay]]></category>
		<category><![CDATA[Readers Contribution]]></category>
		<category><![CDATA[Readers Question]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Interview Questions and Answers]]></category>
		<category><![CDATA[SQL Puzzle]]></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=16570</guid>
		<description><![CDATA[Year 2011 was a year of learning and opportunity for me. My recent book, SQL Server Interview Questions and Answers, has received such overwhelming love and support from all of you. While writing the book, I had two simple goals: (1) Master the Basics and (2) Ignite Learning. There was a constant request from the Community to take the learning of these books to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=16570&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Year 2011 was a year of learning and opportunity for me. My recent book, <a href="http://blog.sqlauthority.com/sql-server-books/sql-server-interview-questions-and-answers-for-all-database-developers-and-developers-administrators/" target="_blank"><strong>SQL Server Interview Questions and Answers</strong></a>, has received such overwhelming love and support from all of you. While writing the book, I had <a href="http://blog.sqlauthority.com/2011/12/22/sql-server-mastering-the-basics-igniting-learning-a-unique-learning-experience/" target="_blank"><strong>two simple goals</strong></a>: (1) <strong><em>Master the Basics</em></strong> and (2) <strong><em>Ignite Learning</em></strong>. There was a constant request from the Community to take the learning of these books to the next level. Here is an article which discusses the <a href="http://blog.sqlauthority.com/2012/01/01/sql-server-interview-questions-and-answers-perspectives-of-an-author/" target="_blank"><strong>Author&#8217;s Perspective</strong></a>.</p>
<p style="text-align:justify;">Beyond Relational has come up with a very interesting concept &#8211; they have converted a few of the questions from my book into<strong> </strong>the<strong> </strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/default.aspx" target="_blank"><strong>SQL Quiz</strong></a>. The quiz is indeed focused on my two goals. In addition, it’s going to put the learning of the book to a higher stage. Looking at this novel concept, <a href="http://blogs.extremeexperts.com/" target="_blank"><strong>Vinod Kumar</strong></a> (Co-author) and I have decided to help every participant and reader by giving a few hints and suggestions to solve the quiz.</p>
<h3 style="text-align:justify;">SQL Quiz</h3>
<p style="text-align:justify;"><img class="alignleft" style="margin:2px;" src="http://www.pinaldave.com/bimg/num/10.gif" alt="" /></p>
<p style="text-align:justify;">I noticed a very long stored procedure in the production database. This database creating temporary tables, using insert and select statement. When I asked the purpose of the stored procedure, I realize they should have just used an OUTPUT clause. What is the OUTPUT clause inside SQL Server?</p>
<p style="text-align:justify;"><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/questions/197/i-noticed-very-long-stored-procedure-in-the-production-database.aspx" target="_blank"><strong>Link to participate in SQL Quiz</strong></a></p>
<h3 style="text-align:justify;">Notes of Vinod Kumar</h3>
<p style="text-align:justify;">The feature which got introduced in SQL Server 2005 edition had a lot of scope for usage. UC wrote a great post a while back on this subject on <a href="http://blogs.msdn.com/b/sqltips/archive/2005/06/13/output-clause.aspx?ocid=aff-n-in-loc--pd" target="_blank">sqltips</a>. Also, try to read more about the composable DML concepts.</p>
<h3 style="text-align:justify;">Notes of Pinal Dave</h3>
<p style="text-align:justify;">When OUTPUT clause was introduced, I was very happy because I do not have to use global functions and temporary tables to accomplish certain tasks as this new clause. The OUTPUT clause has a variety of ways to access inserted and deleted tables (virtual tables). The OUTPUT clause can be used with INSERT, UPDATE, or DELETE to identify the actual rows affected by these statements.</p>
<h3 style="text-align:justify;">Additional Notes</h3>
<p style="text-align:justify;">SQL Server Interview Questions and Answers ISBN: 1466405643 Page#63<br />
<a href="http://blog.sqlauthority.com/2007/10/01/sql-server-2005-output-clause-example-and-explanation-with-insert-update-delete/" target="_blank">OUTPUT Clause Example and Explanation with INSERT, UPDATE, DELETE</a></p>
<h3 style="text-align:justify;">Prize</h3>
<p style="text-align:justify;">There are exciting prizes awaiting the winners. Click here for <a href="http://beyondrelational.com/quiz/sqlserver/general/2012/prizes.aspx" target="_blank">Prizes</a> and <a href="http://beyondrelational.com/quiz/faq.aspx" target="_blank">Frequently Asked Questions</a>.</p>
<p style="text-align:justify;"><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/questions/197/i-noticed-very-long-stored-procedure-in-the-production-database.aspx" target="_blank"><strong>Link to participate in SQL Quiz</strong></a></p>
<p style="text-align:justify;">Note: The SQL Quiz, winners and prizes are administrated by Beyond Relational. The goal of this blog post is to provide additional learning pointers only.</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>
<br />Filed under: <a href='http://blog.sqlauthority.com/category/tech/pinal-dave/'>Pinal Dave</a>, <a href='http://blog.sqlauthority.com/category/technology/postaday/'>PostADay</a>, <a href='http://blog.sqlauthority.com/category/readers-contribution/'>Readers Contribution</a>, <a href='http://blog.sqlauthority.com/category/readers-question/'>Readers Question</a>, <a href='http://blog.sqlauthority.com/category/technology/sql/'>SQL</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-authority/'>SQL Authority</a>, <a href='http://blog.sqlauthority.com/category/sql-interview-questions-and-answers/'>SQL Interview Questions and Answers</a>, <a href='http://blog.sqlauthority.com/category/sql-puzzle/'>SQL Puzzle</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-query/'>SQL Query</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-server/'>SQL Server</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-tips-and-tricks/'>SQL Tips and Tricks</a>, <a href='http://blog.sqlauthority.com/category/technology/t-sql/'>T SQL</a>, <a href='http://blog.sqlauthority.com/category/technology/'>Technology</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/16570/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/16570/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/16570/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/16570/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sqlauthority.wordpress.com/16570/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sqlauthority.wordpress.com/16570/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sqlauthority.wordpress.com/16570/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sqlauthority.wordpress.com/16570/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/16570/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/16570/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/16570/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/16570/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/16570/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/16570/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=16570&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2012/01/11/sql-server-reasons-for-using-output-clause-quiz-puzzle-10-of-31/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/num/10.gif" medium="image" />
	</item>
		<item>
		<title>SQL SERVER &#8211; Locking, Blocking and Deadlock &#8211; Quiz &#8211; Puzzle &#8211; 9 of 31</title>
		<link>http://blog.sqlauthority.com/2012/01/10/sql-server-locking-blocking-and-deadlock-quiz-puzzle-9-of-31/</link>
		<comments>http://blog.sqlauthority.com/2012/01/10/sql-server-locking-blocking-and-deadlock-quiz-puzzle-9-of-31/#comments</comments>
		<pubDate>Tue, 10 Jan 2012 01:30:52 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[PostADay]]></category>
		<category><![CDATA[Readers Contribution]]></category>
		<category><![CDATA[Readers Question]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Interview Questions and Answers]]></category>
		<category><![CDATA[SQL Puzzle]]></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=16568</guid>
		<description><![CDATA[Year 2011 was a year of learning and opportunity for me. My recent book, SQL Server Interview Questions and Answers, has received such overwhelming love and support from all of you. While writing the book, I had two simple goals: (1) Master the Basics and (2) Ignite Learning. There was a constant request from the Community to take the learning of these books to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=16568&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Year 2011 was a year of learning and opportunity for me. My recent book, <a href="http://blog.sqlauthority.com/sql-server-books/sql-server-interview-questions-and-answers-for-all-database-developers-and-developers-administrators/" target="_blank"><strong>SQL Server Interview Questions and Answers</strong></a>, has received such overwhelming love and support from all of you. While writing the book, I had <a href="http://blog.sqlauthority.com/2011/12/22/sql-server-mastering-the-basics-igniting-learning-a-unique-learning-experience/" target="_blank"><strong>two simple goals</strong></a>: (1) <strong><em>Master the Basics</em></strong> and (2) <strong><em>Ignite Learning</em></strong>. There was a constant request from the Community to take the learning of these books to the next level. Here is an article which discusses the <a href="http://blog.sqlauthority.com/2012/01/01/sql-server-interview-questions-and-answers-perspectives-of-an-author/" target="_blank"><strong>Author&#8217;s Perspective</strong></a>.</p>
<p style="text-align:justify;">Beyond Relational has come up with a very interesting concept &#8211; they have converted a few of the questions from my book into<strong> </strong>the<strong> </strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/default.aspx" target="_blank"><strong>SQL Quiz</strong></a>. The quiz is indeed focused on my two goals. In addition, it’s going to put the learning of the book to a higher stage. Looking at this novel concept, <a href="http://blogs.extremeexperts.com/" target="_blank"><strong>Vinod Kumar</strong></a> (Co-author) and I have decided to help every participant and reader by giving a few hints and suggestions to solve the quiz.</p>
<h3 style="text-align:justify;">SQL Quiz</h3>
<p style="text-align:justify;"><img class="alignleft" style="margin:2px;" src="http://www.pinaldave.com/bimg/num/9.jpg" alt="" />A query always ran in split second, but suddenly it started to timeout. A quick look at the error log shows that the cause was deadlock. What is a Deadlock and how can we identify and resolve a Deadlock inside SQL Server 2008 R2</p>
<p style="text-align:justify;"><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/questions/196/a-query-always-ran-in-split-second-and-suddenly-it-started-to-timeout.aspx" target="_blank"><strong>Link to participate in SQL Quiz</strong></a></p>
<h3 style="text-align:justify;">Notes of Vinod Kumar</h3>
<p style="text-align:justify;">The concepts of locking and blocking have been a mystery for many people. But becoming a deadlock victim is even stranger than it can get. Even today lots of product companies that come to performance tuning at peak loads get this. It boils down to coding practices. Here’s a <a href="http://msdn.microsoft.com/en-us/library/ms178104.aspx?WT.mc_id=aff-n-in-loc--pd" target="_blank">Hint</a> for you.</p>
<h3 style="text-align:justify;">Notes of Pinal Dave</h3>
<p style="text-align:justify;">The frequently asked question by many novice DBAs is: &#8220;what can I do to reduce deadlocks?&#8221; Deadlocks often occur due to inappropriate access to the objects by T-SQL code. There is a big difference between time out and deadlock. The real answer will include a suggestion to resolve both of them efficiently.</p>
<h3 style="text-align:justify;">Additional Notes</h3>
<p style="text-align:justify;">SQL Server Interview Questions and Answers ISBN: 1466405643 Page#56-57<br />
<a href="http://blog.sqlauthority.com/2010/05/21/sql-server-simple-example-of-snapshot-isolation-reduce%C2%A0the%C2%A0blocking%C2%A0transactions/" target="_blank">Simple Example of Snapshot Isolation – Reduce the Blocking Transactions</a><br />
<a href="http://blog.sqlauthority.com/2010/06/21/sql-server-transaction-dml-and%C2%A0schema%C2%A0locks/" target="_blank">TRANSACTION, DML and Schema Locks</a><br />
<a href="http://blog.sqlauthority.com/2008/03/21/sql-server-introduction-to-live-lock-what-is-live-lock/" target="_blank">Introduction to Live Lock – What is Live Lock?</a><br />
<a href="http://blog.sqlauthority.com/2011/04/17/sql-server-applying-nolock-hint-at-query-level-nolock-for-whole-transaction/" target="_blank">Applying NOLOCK Hint at Query Level – NOLOCK for whole Transaction</a></p>
<h3 style="text-align:justify;">Prize</h3>
<p style="text-align:justify;">There are exciting prizes awaiting the winners. Click here for <a href="http://beyondrelational.com/quiz/sqlserver/general/2012/prizes.aspx" target="_blank">Prizes</a> and <a href="http://beyondrelational.com/quiz/faq.aspx" target="_blank">Frequently Asked Questions</a>.</p>
<p style="text-align:justify;"><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/questions/196/a-query-always-ran-in-split-second-and-suddenly-it-started-to-timeout.aspx" target="_blank"><strong>Link to participate in SQL Quiz</strong></a></p>
<p style="text-align:justify;">Note: The SQL Quiz, winners and prizes are administrated by Beyond Relational. The goal of this blog post is to provide additional learning pointers only.</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>
<br />Filed under: <a href='http://blog.sqlauthority.com/category/tech/pinal-dave/'>Pinal Dave</a>, <a href='http://blog.sqlauthority.com/category/technology/postaday/'>PostADay</a>, <a href='http://blog.sqlauthority.com/category/readers-contribution/'>Readers Contribution</a>, <a href='http://blog.sqlauthority.com/category/readers-question/'>Readers Question</a>, <a href='http://blog.sqlauthority.com/category/technology/sql/'>SQL</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-authority/'>SQL Authority</a>, <a href='http://blog.sqlauthority.com/category/sql-interview-questions-and-answers/'>SQL Interview Questions and Answers</a>, <a href='http://blog.sqlauthority.com/category/sql-puzzle/'>SQL Puzzle</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-query/'>SQL Query</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-server/'>SQL Server</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-tips-and-tricks/'>SQL Tips and Tricks</a>, <a href='http://blog.sqlauthority.com/category/technology/t-sql/'>T SQL</a>, <a href='http://blog.sqlauthority.com/category/technology/'>Technology</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/16568/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/16568/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/16568/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/16568/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sqlauthority.wordpress.com/16568/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sqlauthority.wordpress.com/16568/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sqlauthority.wordpress.com/16568/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sqlauthority.wordpress.com/16568/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/16568/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/16568/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/16568/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/16568/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/16568/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/16568/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=16568&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2012/01/10/sql-server-locking-blocking-and-deadlock-quiz-puzzle-9-of-31/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/num/9.jpg" medium="image" />
	</item>
		<item>
		<title>SQL SERVER &#8211; Using RANKING Functions Instead of SQL Looping Logic of Cursor &#8211; Quiz &#8211; Puzzle &#8211; 8 of 31</title>
		<link>http://blog.sqlauthority.com/2012/01/09/sql-server-using-ranking-functions-instead-of-sql-looping-logic-of-cursor-quiz-puzzle-8-of-31/</link>
		<comments>http://blog.sqlauthority.com/2012/01/09/sql-server-using-ranking-functions-instead-of-sql-looping-logic-of-cursor-quiz-puzzle-8-of-31/#comments</comments>
		<pubDate>Mon, 09 Jan 2012 01:30:44 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[PostADay]]></category>
		<category><![CDATA[Readers Contribution]]></category>
		<category><![CDATA[Readers Question]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Interview Questions and Answers]]></category>
		<category><![CDATA[SQL Puzzle]]></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=16566</guid>
		<description><![CDATA[Year 2011 was a year of learning and opportunity for me. My recent book, SQL Server Interview Questions and Answers, has received such overwhelming love and support from all of you. While writing the book, I had two simple goals: (1) Master the Basics and (2) Ignite Learning. There was a constant request from the Community to take the learning of these books to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=16566&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Year 2011 was a year of learning and opportunity for me. My recent book, <a href="http://blog.sqlauthority.com/sql-server-books/sql-server-interview-questions-and-answers-for-all-database-developers-and-developers-administrators/" target="_blank"><strong>SQL Server Interview Questions and Answers</strong></a>, has received such overwhelming love and support from all of you. While writing the book, I had <a href="http://blog.sqlauthority.com/2011/12/22/sql-server-mastering-the-basics-igniting-learning-a-unique-learning-experience/" target="_blank"><strong>two simple goals</strong></a>: (1) <strong><em>Master the Basics</em></strong> and (2) <strong><em>Ignite Learning</em></strong>. There was a constant request from the Community to take the learning of these books to the next level. Here is an article which discusses the <a href="http://blog.sqlauthority.com/2012/01/01/sql-server-interview-questions-and-answers-perspectives-of-an-author/" target="_blank"><strong>Author&#8217;s Perspective</strong></a>.</p>
<p style="text-align:justify;">Beyond Relational has come up with a very interesting concept &#8211; they have converted a few of the questions from my book into<strong> </strong>the<strong> </strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/default.aspx" target="_blank"><strong>SQL Quiz</strong></a>. The quiz is indeed focused on my two goals. In addition, it’s going to put the learning of the book to a higher stage. Looking at this novel concept, <a href="http://blogs.extremeexperts.com/" target="_blank"><strong>Vinod Kumar</strong></a> (Co-author) and I have decided to help every participant and reader by giving a few hints and suggestions to solve the quiz.</p>
<h3 style="text-align:justify;">SQL Quiz</h3>
<p style="text-align:justify;"><img class="alignleft" style="margin:2px;" src="http://www.pinaldave.com/bimg/num/8.jpg" alt="" width="150" height="150" /></p>
<p style="text-align:justify;">An SQL developer got surprised when he learned that he does not have to use cursors to calculate ranks in SQL Server 2008. He can now just use the newly introduced ranking functions. What are the different RANKING functions inside SQL Server 2008 R2 and what are the new functions introduced inside SQL Server 2012?</p>
<p style="text-align:justify;"><strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/questions/195/a-sql-developer-got-surprised-when-he-learned-that-he-does-not-have-to-use-cursors-to-calculate-rank.aspx" target="_blank">Link to participate in SQL Quiz</a></strong></p>
<h3 style="text-align:justify;">Notes of Vinod Kumar</h3>
<p style="text-align:justify;">This is a give away as a <a href="http://msdn.microsoft.com/en-us/library/ms189798.aspx?WT.mc_id=aff-n-in-loc--pd" target="_blank">hint</a>. But there are specific differences when it comes to each of these. Can you think of a scenario to use each of them effectively? Hint: Just think of a school and you will find ways of using them. :)</p>
<h3 style="text-align:justify;">Notes of Pinal Dave</h3>
<p style="text-align:justify;">I still remember my first manager and his advice: &#8220;Take a walk, when you have to use cursor&#8221;. I still remember this and follow it every single time; I just have to use cursor. Cursors are not always bad, but if it is used without proper understanding and without considering other alternatives, it is indeed a bad decision to use. I have often seen cases where there were alternate ready-made solutions available, but still the developer went ahead and implemented a cursor that was not optimized (hogging resources). I personally insist on always learning all the new features of SQL Server as I often figure out alternative of cursors when I am exploring new features.</p>
<h3 style="text-align:justify;">Additional Notes</h3>
<p style="text-align:justify;">SQL Server Interview Questions and Answers ISBN: 1466405643 Page#128-129<br />
<a href="http://blog.sqlauthority.com/2011/08/10/sql-server-use-insert-into-select-instead-of-cursor/" target="_blank"> Use INSERT INTO … SELECT instead of Cursor</a><br />
<a href="http://blog.sqlauthority.com/2008/11/20/sql-server-simple-use-of-cursor-to-print-all-stored-procedures-of-database/" target="_blank"> Simple Use of Cursor to Print All Stored Procedures of Database</a><br />
<a href="http://blog.sqlauthority.com/2008/11/22/sql-server-simple-use-of-cursor-to-print-all-stored-procedures-of-database-including-schema/" target="_blank"> Simple Use of Cursor to Print All Stored Procedures of Database Including Schema</a><br />
<a href="http://blog.sqlauthority.com/2007/01/01/sql-server-simple-example-of-cursor/" target="_blank"> Simple Example of Cursor</a><br />
<a href="http://blog.sqlauthority.com/2006/12/01/sql-server-cursor-to-kill-all-process-in-database/" target="_blank"> Cursor to Kill All Process in Database</a></p>
<h3 style="text-align:justify;">Prize</h3>
<p style="text-align:justify;">There are exciting prizes awaiting the winners. Click here for <a href="http://beyondrelational.com/quiz/sqlserver/general/2012/prizes.aspx" target="_blank">Prizes</a> and <a href="http://beyondrelational.com/quiz/faq.aspx" target="_blank">Frequently Asked Questions</a>.</p>
<p style="text-align:justify;"><strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/questions/195/a-sql-developer-got-surprised-when-he-learned-that-he-does-not-have-to-use-cursors-to-calculate-rank.aspx" target="_blank">Link to participate in SQL Quiz</a></strong></p>
<p style="text-align:justify;">Note: The SQL Quiz, winners and prizes are administrated by Beyond Relational. The goal of this blog post is to provide additional learning pointers only.</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>
<br />Filed under: <a href='http://blog.sqlauthority.com/category/tech/pinal-dave/'>Pinal Dave</a>, <a href='http://blog.sqlauthority.com/category/technology/postaday/'>PostADay</a>, <a href='http://blog.sqlauthority.com/category/readers-contribution/'>Readers Contribution</a>, <a href='http://blog.sqlauthority.com/category/readers-question/'>Readers Question</a>, <a href='http://blog.sqlauthority.com/category/technology/sql/'>SQL</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-authority/'>SQL Authority</a>, <a href='http://blog.sqlauthority.com/category/sql-interview-questions-and-answers/'>SQL Interview Questions and Answers</a>, <a href='http://blog.sqlauthority.com/category/sql-puzzle/'>SQL Puzzle</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-query/'>SQL Query</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-server/'>SQL Server</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-tips-and-tricks/'>SQL Tips and Tricks</a>, <a href='http://blog.sqlauthority.com/category/technology/t-sql/'>T SQL</a>, <a href='http://blog.sqlauthority.com/category/technology/'>Technology</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/16566/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/16566/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/16566/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/16566/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sqlauthority.wordpress.com/16566/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sqlauthority.wordpress.com/16566/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sqlauthority.wordpress.com/16566/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sqlauthority.wordpress.com/16566/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/16566/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/16566/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/16566/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/16566/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/16566/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/16566/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=16566&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2012/01/09/sql-server-using-ranking-functions-instead-of-sql-looping-logic-of-cursor-quiz-puzzle-8-of-31/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/num/8.jpg" medium="image" />
	</item>
		<item>
		<title>SQL SERVER &#8211; Indexed Views and Restrictions &#8211; Quiz &#8211; Puzzle &#8211; 7 of 31</title>
		<link>http://blog.sqlauthority.com/2012/01/08/sql-server-indexed-views-and-restrictions-quiz-puzzle-7-of-31/</link>
		<comments>http://blog.sqlauthority.com/2012/01/08/sql-server-indexed-views-and-restrictions-quiz-puzzle-7-of-31/#comments</comments>
		<pubDate>Sun, 08 Jan 2012 01:30:14 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[PostADay]]></category>
		<category><![CDATA[Readers Contribution]]></category>
		<category><![CDATA[Readers Question]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Interview Questions and Answers]]></category>
		<category><![CDATA[SQL Puzzle]]></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=16562</guid>
		<description><![CDATA[Year 2011 was a year of learning and opportunity for me. My recent book, SQL Server Interview Questions and Answers, has received such overwhelming love and support from all of you. While writing the book, I had two simple goals: (1) Master the Basics and (2) Ignite Learning. There was a constant request from the Community to take the learning of these books to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=16562&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Year 2011 was a year of learning and opportunity for me. My recent book, <a href="http://blog.sqlauthority.com/sql-server-books/sql-server-interview-questions-and-answers-for-all-database-developers-and-developers-administrators/" target="_blank"><strong>SQL Server Interview Questions and Answers</strong></a>, has received such overwhelming love and support from all of you. While writing the book, I had <a href="http://blog.sqlauthority.com/2011/12/22/sql-server-mastering-the-basics-igniting-learning-a-unique-learning-experience/" target="_blank"><strong>two simple goals</strong></a>: (1) <strong><em>Master the Basics</em></strong> and (2) <strong><em>Ignite Learning</em></strong>. There was a constant request from the Community to take the learning of these books to the next level. Here is an article which discusses the <a href="http://blog.sqlauthority.com/2012/01/01/sql-server-interview-questions-and-answers-perspectives-of-an-author/" target="_blank"><strong>Author&#8217;s Perspective</strong></a>.</p>
<p style="text-align:justify;">Beyond Relational has come up with a very interesting concept &#8211; they have converted a few of the questions from my book into<strong> </strong>the<strong> </strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/default.aspx" target="_blank"><strong>SQL Quiz</strong></a>. The quiz is indeed focused on my two goals. In addition, it’s going to put the learning of the book to a higher stage. Looking at this novel concept, <a href="http://blogs.extremeexperts.com/" target="_blank"><strong>Vinod Kumar</strong></a> (Co-author) and I have decided to help every participant and reader by giving a few hints and suggestions to solve the quiz.</p>
<h3 style="text-align:justify;">SQL Quiz</h3>
<p style="text-align:justify;"><img class="alignleft" style="margin:2px;" src="http://www.pinaldave.com/bimg/num/7.jpg" alt="" /></p>
<p style="text-align:justify;">A new trainee was confused when he discovered that the organization is discouraging the Indexed View (or materialized views). After talking to the senior team members he realized that Index Views which are good at certain tasks it comes with lots of restrictions. What are the restrictions of using INDEXED VIEWS inside SQL Server?</p>
<p style="text-align:justify;"><strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/questions/194/a-new-trainee-was-confused-when-he-discovered-that-organization-is-discouraging-the-indexed-view.aspx" target="_blank">Link to participate in SQL Quiz</a></strong></p>
<h3 style="text-align:justify;">Notes of Vinod Kumar</h3>
<p style="text-align:justify;">Not that I am a great supporter of using INDEXED VIEWS, but there are obviously some special case scenarios.  This <a href="http://msdn.microsoft.com/en-us/library/ms187864.aspx?WT.mc_id=aff-n-in-loc--pd" target="_blank"><strong>Hint </strong></a>gives some amazing documentation around its usage.</p>
<h3 style="text-align:justify;">Notes of Pinal Dave</h3>
<p style="text-align:justify;">As far as I can remember, Views are one of the very old concepts. Earlier in my career, around year 2000, Views were extremely useful to me. I used to rely on them for many reasons &#8211; preventing access to the data to users, hiding table definition from users, creating modular T-SQL logic, using materialized views for performance, you name it. However, I gradually started to use stored procedures and user access security features leading less and less use Views. However, I sometimes use Index Views  for special cases until now. And these special cases are what exactly we should learn today.</p>
<h3 style="text-align:justify;">Additional Notes</h3>
<p style="text-align:justify;">SQL Server Interview Questions and Answers ISBN: 1466405643 Page#50<br />
<strong><a href="http://blog.sqlauthority.com/2010/10/03/sql-server-the-limitations-of-the-views-eleven-and-more/" target="_blank"> The Limitations of the Views – Eleven and more…</a></strong><br />
<a href="http://blog.sqlauthority.com/2009/09/24/sql-server-interesting-observation-index-on-index-view-used-in-similar-query/" target="_blank"> Interesting Observation – Index on Index View Used in Similar Query</a><br />
<a href="http://blog.sqlauthority.com/2010/09/24/sql-server-outer-join-not-allowed-in-indexed-views-limitation-of-the-view-8/" target="_blank"> Outer Join Not Allowed in Indexed Views – Limitation of the View 8</a><br />
<a href="http://blog.sqlauthority.com/2010/09/23/sql-server-cross-database-queries-not-allowed-in-indexed-view-limitation-of-the-view-7/" target="_blank"> Cross Database Queries Not Allowed in Indexed View – Limitation of the View 7</a><br />
<a href="http://blog.sqlauthority.com/2010/09/26/sql-server-self-join-not-allowed-in-indexed-view-limitation-of-the-view-9/" target="_blank"> SELF JOIN Not Allowed in Indexed View – Limitation of the View 9</a><br />
<a href="http://blog.sqlauthority.com/2010/09/22/sql-server-union-not-allowed-but-or-allowed-in-index-view-limitation-of-the-view-6/" target="_blank"> UNION Not Allowed but OR Allowed in Index View – Limitation of the View 6</a><br />
<a href="http://blog.sqlauthority.com/2010/09/27/sql-server-keywords-view-definition-must-not-contain-for-indexed-view-limitation-of-the-view-10/" target="_blank"> Keywords View Definition Must Not Contain for Indexed View – Limitation of the View 10</a></p>
<h3 style="text-align:justify;">Prize</h3>
<p style="text-align:justify;">There are exciting prizes awaiting the winners. Click here for <a href="http://beyondrelational.com/quiz/sqlserver/general/2012/prizes.aspx" target="_blank">Prizes</a> and <a href="http://beyondrelational.com/quiz/faq.aspx" target="_blank">Frequently Asked Questions</a>.</p>
<p style="text-align:justify;"><strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/questions/194/a-new-trainee-was-confused-when-he-discovered-that-organization-is-discouraging-the-indexed-view.aspx" target="_blank">Link to participate in SQL Quiz</a></strong></p>
<p style="text-align:justify;">Note: The SQL Quiz, winners and prizes are administrated by Beyond Relational. The goal of this blog post is to provide additional learning pointers only.</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>
<br />Filed under: <a href='http://blog.sqlauthority.com/category/tech/pinal-dave/'>Pinal Dave</a>, <a href='http://blog.sqlauthority.com/category/technology/postaday/'>PostADay</a>, <a href='http://blog.sqlauthority.com/category/readers-contribution/'>Readers Contribution</a>, <a href='http://blog.sqlauthority.com/category/readers-question/'>Readers Question</a>, <a href='http://blog.sqlauthority.com/category/technology/sql/'>SQL</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-authority/'>SQL Authority</a>, <a href='http://blog.sqlauthority.com/category/sql-interview-questions-and-answers/'>SQL Interview Questions and Answers</a>, <a href='http://blog.sqlauthority.com/category/sql-puzzle/'>SQL Puzzle</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-query/'>SQL Query</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-server/'>SQL Server</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-tips-and-tricks/'>SQL Tips and Tricks</a>, <a href='http://blog.sqlauthority.com/category/technology/t-sql/'>T SQL</a>, <a href='http://blog.sqlauthority.com/category/technology/'>Technology</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/16562/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/16562/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/16562/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/16562/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sqlauthority.wordpress.com/16562/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sqlauthority.wordpress.com/16562/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sqlauthority.wordpress.com/16562/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sqlauthority.wordpress.com/16562/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/16562/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/16562/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/16562/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/16562/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/16562/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/16562/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=16562&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2012/01/08/sql-server-indexed-views-and-restrictions-quiz-puzzle-7-of-31/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/num/7.jpg" medium="image" />
	</item>
	</channel>
</rss>
