<?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</title>
	<atom:link href="http://blog.sqlauthority.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Fri, 27 Jan 2012 17:10:50 +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</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; 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>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/26.jpg" medium="image" />
	</item>
		<item>
		<title>SQLAuthority News &#8211; Interview with Book Authors after 2 Months of Book Released</title>
		<link>http://blog.sqlauthority.com/2012/01/26/sqlauthority-news-interview-with-book-authors-after-2-months-of-book-released/</link>
		<comments>http://blog.sqlauthority.com/2012/01/26/sqlauthority-news-interview-with-book-authors-after-2-months-of-book-released/#comments</comments>
		<pubDate>Thu, 26 Jan 2012 01:30:39 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[PostADay]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Interview Questions and Answers]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[SQLAuthority Book Review]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Video]]></category>

		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=17120</guid>
		<description><![CDATA[Community is the most motivating force for me. I have often found situations where I have done more and better things because there was community around me. My latest book SQL Server Interview Questions and Answers is the result of the community’s support and love. Without the wide acceptance of the community I would have [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=17120&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Community is the most motivating force for me. I have often found situations where I have done more and better things because there was community around me. My latest book <em>SQL Server Interview Questions and Answers</em> is the result of the community’s support and love. Without the wide acceptance of the community I would have never reached where I am. Thank you!</p>
<p style="text-align:justify;">Recently, the kind folks of INETA APAC &#8211; Sanjay Shetty and Raj Chaudhuri – conducted an interview with myself and Vinod Kumar (co-author of my book). We had lots of fun during the interview. Sanjay asks questions which, even as an author, I did not think of. My hope is that talking more about our book will help the community in the same way they all helped motivate me to write this book.  Another benefit of the interview was that Raj always has questions which dig out the secrets of the book publishing business. Well, we answered each question candidly. When the interview was about to be over &#8211; we realized that book publishing is indeed long process and, just like us, many need help understanding this subject.</p>
<p style="text-align:justify;">I know that I cannot be the only person who ever dreamed of becoming a published author. We would like to offer help to anybody who wants to write book. Writing this one book has taught us a lot and we are eager to share our hard-earned knowledge with you. If you have also written a technical book about computers, SQL Server, or just technology in general, I know that we will be able to help you in some way. Even if you are the sort of person who writes short stories in their free time, give us a try and we might be able to help you, too!</p>
<p style="text-align:justify;">Once again: Thanks Sanjay and Raj for giving us the honor to be featured in an interview with you.</p>
<p style="text-align:justify;"><span style="text-align:center; display: block;"><a href="http://blog.sqlauthority.com/2012/01/26/sqlauthority-news-interview-with-book-authors-after-2-months-of-book-released/"><img src="http://img.youtube.com/vi/_uQOSiq73f0/2.jpg" alt="" /></a></span></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/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/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/sqlauthority/sqlauthority-book-review/'>SQLAuthority Book Review</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 href='http://blog.sqlauthority.com/category/video/'>Video</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/17120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/17120/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/17120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/17120/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sqlauthority.wordpress.com/17120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sqlauthority.wordpress.com/17120/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sqlauthority.wordpress.com/17120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sqlauthority.wordpress.com/17120/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/17120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/17120/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/17120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/17120/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/17120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/17120/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=17120&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2012/01/26/sqlauthority-news-interview-with-book-authors-after-2-months-of-book-released/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&#38;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL SERVER &#8211; 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[Technology]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[SQL Interview Questions and Answers]]></category>
		<category><![CDATA[SQL Puzzle]]></category>
		<category><![CDATA[Readers Contribution]]></category>
		<category><![CDATA[Readers Question]]></category>
		<category><![CDATA[PostADay]]></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; Using SafePeak to Accelerate Performance of 3rd Party Applications</title>
		<link>http://blog.sqlauthority.com/2012/01/16/sql-server-using-safepeak-to-accelerate-performance-of-3rd-party-applications/</link>
		<comments>http://blog.sqlauthority.com/2012/01/16/sql-server-using-safepeak-to-accelerate-performance-of-3rd-party-applications/#comments</comments>
		<pubDate>Mon, 16 Jan 2012 01:30:17 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[PostADay]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Optimization]]></category>
		<category><![CDATA[SQL Performance]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL 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=16924</guid>
		<description><![CDATA[An exciting solution I found last year (2011) for SQL Server performance acceleration is SafePeak. Designed to specifically to accelerate and tune performance of cases where you have minimum control on the applications, like 3rd party line of business applications. SafePeak performs automated caching of queries and procedures results, returning with very high speed results [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=16924&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">An exciting solution I found last year (2011) for SQL Server performance acceleration is <a href="http://www.safepeak.com/download?source=sqlauthority-sidebar">SafePeak</a>. Designed to specifically to accelerate and tune performance of cases where you have minimum control on the applications, like 3<sup>rd</sup> party line of business applications. SafePeak performs automated <strong>caching</strong> of queries and procedures results, returning with very high speed results from memory and reducing the SQL load by factor of 10. No code changes needed. And that is make it very interesting and appealing!</p>
<p style="text-align:justify;"><img class="alignnone" src="http://www.pinaldave.com/bimg/safepeak64bit.png" alt="" width="499" height="262" /></p>
<p style="text-align:justify;">One of the questions I hear many times concern performance acceleration of 3<sup>rd</sup> party applications applications that are critical to business function, the <em><strong>“line of business”</strong></em> applications. In most cases critical software remain intact for many years, growing and expanding but also losing its performance edge and affecting the business for the worse, instead for the good. The main problem with fixing and tuning 3<sup>rd</sup> party apps is that it is a closed code or someone else’s code. Those applications are waiting for an upgrade every few years, while the business being affected for the worse.</p>
<p style="text-align:justify;">SafePeak idea: a middleware software that studies SQL Server schema (tables, views, stored procedures, functions, triggers) to learn about object dependencies, and then creates patterns of similar SQL queries and procedures executions while understanding their direct and indirect object dependents. And then it starts actively caching results in RAM, while keeping those update commands (DML, DDL and procs that do DML or DDL) to both effect the cache and the SQL Server. After downloading it (<a href="http://www.safepeak.com/download?source=sqlauthority-sidebar">www.safepeak.com/download</a>) the installation is on a standard Windows 2008 R2 virtual machine or a server (different then the SQL server) takes several minutes. Connecting the application is done by pointing the connection string to SafePeak (easy). Configuration is done via their very nice looking GUI and focuses on things SafePeak didn’t understood, which are usually procedures that have some dynamic code inside.</p>
<p style="text-align:justify;">Results can be very exciting: cached queries response time is reduced to 0.25 millisecond or so. Yes, I meant millisecond, pretty impressive. So queries that are slow become extremely fast and queries that are already fast become even faster.</p>
<p style="text-align:justify;">Because it no code change is involved this specifically fits well 3<sup>rd</sup> party applications – plug it in, play with it for couple of hours of fine-tuning and see the results.</p>
<p style="text-align:justify;"><a href="http://www.safepeak.com/download?source=sqlauthority-sidebar">SafePeak</a> supports SQL 2000, 2005, 2008 and 2008 R2 and can run in a private cloud or the public cloud.</p>
<p style="text-align:justify;">SafePeak provides a 14 days trial with all functions available for a single installation (they also have a safepeak cluster installation, which I plan to review in near future). The download is available here: <a href="http://www.safepeak.com/download?source=sqlauthority-sidebar">www.safepeak.com/download</a> &#8211; Good luck and tell me your stories.</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/technology/postaday/'>PostADay</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-optimization/'>SQL Optimization</a>, <a href='http://blog.sqlauthority.com/category/sql-performance/'>SQL Performance</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/16924/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/16924/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/16924/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/16924/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sqlauthority.wordpress.com/16924/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sqlauthority.wordpress.com/16924/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sqlauthority.wordpress.com/16924/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sqlauthority.wordpress.com/16924/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/16924/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/16924/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/16924/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/16924/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/16924/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/16924/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=16924&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-using-safepeak-to-accelerate-performance-of-3rd-party-applications/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/safepeak64bit.png" 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>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/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; A Quick Look at expressor Data Quality Solutions</title>
		<link>http://blog.sqlauthority.com/2012/01/11/sql-server-a-quick-look-at-expressor-data-quality-solutions/</link>
		<comments>http://blog.sqlauthority.com/2012/01/11/sql-server-a-quick-look-at-expressor-data-quality-solutions/#comments</comments>
		<pubDate>Wed, 11 Jan 2012 01:30:47 +0000</pubDate>
		<dc:creator>pinaldave</dc:creator>
				<category><![CDATA[Pinal Dave]]></category>
		<category><![CDATA[PostADay]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Authority]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Tips and Tricks]]></category>
		<category><![CDATA[SQL Utility]]></category>
		<category><![CDATA[T SQL]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=16910</guid>
		<description><![CDATA[Last month I described the extension framework that allows one to easily add functionality to an expressor Studio installation.  I then used this added functionality – the input and output operators to SalesForce.com – to develop an example application.  But expressor has a second mechanism that allows you to easily enhance the functionality of your installation – [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=16910&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Last month I described the extension framework that allows one to easily add functionality to an <a href="http://go.expressor-software.com/desktop-edition-etl-tool.html?campaignID=70140000000MapQ" target="_blank">expressor</a> Studio installation.  I then used this added functionality – the input and output operators to SalesForce.com – to develop an example application.  But <a href="http://go.expressor-software.com/desktop-edition-etl-tool.html?campaignID=70140000000MapQ" target="_blank">expressor</a> has a second mechanism that allows you to easily enhance the functionality of your installation – reusable templates.  The idea behind this approach is that once you develop an operator that performs processing that could have value in other applications you convert this operator into a template that can be easily integrated into additional projects.  This is the approach expressor has followed to add data quality features to expressor Studio.  For those of you interested in using this functionality, you can download a Zip file containing the operator templates from <a href="http://www.websmartexpress.com/" target="_blank">www.WEBSMARTexpress.com</a>.</p>
<p style="text-align:justify;"><strong>So what’s the approach?</strong></p>
<p style="text-align:justify;">First, <a href="http://go.expressor-software.com/desktop-edition-etl-tool.html?campaignID=70140000000MapQ" target="_blank">expressor</a> and Melissa Data created a partnership through which expressor Studio users could obtain a key to use the <a href="http://www.melissadata.com/dqt/websmart-web-services.htm" target="_blank">Melissa Data WebSmart Suite</a> .</p>
<p style="text-align:justify;">Second, expressor created a collection of operator templates, one for each service in the WebSmart Suite.</p>
<p style="text-align:justify;">And third, expressor packaged this collection of operator templates into an expressor library that you can easily integrate into any expressor library or project.</p>
<p style="text-align:justify;"><strong>Let’s see how this all comes together.</strong></p>
<p style="text-align:justify;">Once you register with on the WEBSMARTexpress Web site, you are given the URL to download the expressor operator template library – WEBSMARTexpress.zip.  Do not extract this archive file.  Rather you simply import the library into an expressor workspace.</p>
<ul style="text-align:justify;">
<li>Open the workspace.</li>
<li>Select the Studio &gt; Import Projects… menu item.</li>
<li>In the first window of the Import Projects wizard, browse to the file system location where you saved the operator template archive file and select the file for import.</li>
<li>In the wizard’s second window, select the LIB_WebSmart library and click Finish.  The library is added to your workspace.</li>
</ul>
<p style="text-align:justify;">If you now expand the library, you will see that it includes composite types, the operator templates, and some Datascript modules.</p>
<p style="text-align:justify;"><img class="alignnone" src="http://www.pinaldave.com/bimg/library.png" alt="" width="224" height="488" /></p>
<p style="text-align:justify;">Each composite type describes the return from one of the WebSmart services.  The scripting that provides the processing logic for each operator template is contained in a dedicated Datascript module.  You will not need to edit the coding within these Datascript modules but you will need to enter your Melissa Data key into the module MDVariables before you can access the WebSmart services.</p>
<p style="text-align:justify;">Double click on the MDVariables entry under the Datascript Modules folder to open this module in the script editor and on line 13 replace num with your key and then save and close the editor.</p>
<p style="text-align:justify;"><img class="alignnone" src="http://www.pinaldave.com/bimg/module.png" alt="" width="484" height="298" /></p>
<p style="text-align:justify;">Now create another library or project that will include the dataflow in which you will use one of the operator templates.  Be certain to reference the LIB_WebSmart library.</p>
<p style="text-align:justify;"><img class="alignnone" src="http://www.pinaldave.com/bimg/library_reference.png" alt="" width="198" height="314" /></p>
<p style="text-align:justify;">When you are laying out the dataflow, note that the operator templates are listed on the Templates tab within the Transformers grouping of operators.  To use one of the operator templates, simply drag it onto the dataflow.  When you are configuring this operator, do not change any of the settings on its Properties panel, but you must open the Rules Editor.  In the screen shots that follow, I’m working with the email validation service, but usage of all the operator templates is identical.</p>
<p style="text-align:justify;"><img class="alignnone" src="http://www.pinaldave.com/bimg/template_1.png" alt="" width="500" /></p>
<p style="text-align:justify;">At a minimum, I must connect the incoming attribute that contains the email address to be verified to the Rule_1 input parameter Email.  The outgoing parameters are already bound to their corresponding attributes in the output record.  The structure of the output is predefined by the composite type EmailResponse, which was included in the WEBSMART library.</p>
<p style="text-align:justify;"><img class="alignnone" src="http://www.pinaldave.com/bimg/template_2.png" alt="" width="500" height="258" /></p>
<p style="text-align:justify;">If I also want to include other incoming attributes in the record emitted by this operator, I must drag them into the Rule_1 input parameter listing, add corresponding attributes to the Output panel, and drag the newly added output attributes into the Rule_1 output parameter listing.</p>
<p style="text-align:justify;"><img class="alignnone" src="http://www.pinaldave.com/bimg/template_3_fullsize.png" alt="" width="500" /></p>
<p style="text-align:justify;">Note that to handle these additional values I did not need to edit the coding in either the operator template or its associated Datascript Module.</p>
<p style="text-align:justify;">And that’s all there is to it.  As your <a href="http://go.expressor-software.com/desktop-edition-etl-tool.html?campaignID=70140000000MapQ" target="_blank">expressor</a> dataflow executes, the email address in each record will be submitted to the WebSmart service for validation and the detailed information returned by the Web service will be added to the record emitted by the operator.</p>
<p style="text-align:justify;">Through their extension framework and operator template functionality, expressor software has provided two very effective approaches for extending the functionality of an <a href="http://go.expressor-software.com/desktop-edition-etl-tool.html?campaignID=70140000000MapQ" target="_blank">expressor</a> Studio installation.  The extension framework provides a mechanism to add new functionality to Studio while the operator template/Datascript Module approach is a simple way to reuse logic that you have previously developed.  And the partnership with Melissa Data demonstrates how straight-forward it is to integrate expressor with functionality or services provided by partner organizations.</p>
<p style="text-align:justify;">expressor is making this integration with Melissa Data available as part of their Desktop and Standard Editions.  You can download a trial of the Desktop Edition by <a href="http://go.expressor-software.com/desktop-edition-etl-tool.html?campaignID=70140000000MapQ" target="_blank">clicking this link</a>.  As always, I am impressed how quickly expressor evolves their product line and adds very valuable new capabilities to it every few months.   I encourage you to <a href="http://go.expressor-software.com/desktop-edition-etl-tool.html?campaignID=70140000000MapQ">download</a> their Desktop Edition trial.</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/technology/sql/'>SQL</a>, <a href='http://blog.sqlauthority.com/category/technology/sql-authority/'>SQL Authority</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/sql-utility/'>SQL Utility</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/16910/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/16910/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/16910/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/16910/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sqlauthority.wordpress.com/16910/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sqlauthority.wordpress.com/16910/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sqlauthority.wordpress.com/16910/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sqlauthority.wordpress.com/16910/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/16910/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/16910/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/16910/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/16910/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/16910/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/16910/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=16910&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-a-quick-look-at-expressor-data-quality-solutions/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/library.png" medium="image" />

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

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

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

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

		<media:content url="http://www.pinaldave.com/bimg/template_3_fullsize.png" 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>
		<item>
		<title>SQL SERVER &#8211; Collation and Collation Sensitivity &#8211; Quiz &#8211; Puzzle &#8211; 6 of 31</title>
		<link>http://blog.sqlauthority.com/2012/01/07/sql-server-collation-and-collation-sensitivity-quiz-puzzle-6-of-31/</link>
		<comments>http://blog.sqlauthority.com/2012/01/07/sql-server-collation-and-collation-sensitivity-quiz-puzzle-6-of-31/#comments</comments>
		<pubDate>Sat, 07 Jan 2012 01:30:19 +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=16559</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=16559&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/6.png" alt="" />A DBA had to restore its database on new server runs a query to validate the data. The same query on the same database started to give different results. After a quick research he figured out that collation was different of both the database. What is Collation and Collation Sensitivity inside SQL Server?</p>
<p style="text-align:justify;"><strong><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/questions/193/dba-had-to-restore-its-database-on-new-server-runs-a-query-to-validate-the-data.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 concepts of Collations have not changed for ages now. When it comes to localization and globalization, these concepts really help a lot. Here’s a hint to <a href="http://msdn.microsoft.com/en-us/library/ms143503.aspx?WT.mc_id=aff-n-in-loc--pd" target="_blank">documentation</a>. Just a small twist, how can you go and explicitly change the collation for a given query?</p>
<h3 style="text-align:justify;">Notes of Pinal Dave</h3>
<p style="text-align:justify;">Language is the most important part of communication. We all communicate with each other through language which both persons understand. If we do not talk in the language which the other person cannot understand, the end result is not fruitful. In a similar way, collation is very important to any database. I have often seen situations when the collation changes from case sensitive and case in-sensitive turning the query result hey-wire and creates chaos on the server.</p>
<h3 style="text-align:justify;">Additional Notes</h3>
<p style="text-align:justify;">SQL Server Interview Questions and Answers ISBN: 1466405643 Page#46-47<br />
<a href="http://blog.sqlauthority.com/2008/12/16/sql-server-find-collation-of-database-and-table-column-using-t-sql/" target="_blank">Find Collation of Database and Table Column Using T-SQL</a><br />
<a href="http://blog.sqlauthority.com/2007/06/11/sql-server-cannot-resolve-collation-conflict-for-equal-to-operation/" target="_blank">SQL SERVER – Cannot resolve collation conflict for equal to operation</a><br />
<a href="http://blog.sqlauthority.com/2007/08/30/sql-server-2005-find-database-collation-using-t-sql-and-ssms/" target="_blank">Find Database Collation Using T-SQL and SSMS</a><br />
<a href="http://blog.sqlauthority.com/2009/10/19/sql-server-change-collation-of-database-column-t-sql-script-consolidating-collations-extention-script/" target="_blank">Change Collation of Database Column – T-SQL Script – Consolidating Collations – Extension Script</a><br />
<a href="http://blog.sqlauthority.com/2008/12/03/sql-server-default-collation-of-sql-server-2008/" target="_blank">Default Collation of 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/193/dba-had-to-restore-its-database-on-new-server-runs-a-query-to-validate-the-data.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/16559/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/16559/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/16559/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/16559/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sqlauthority.wordpress.com/16559/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sqlauthority.wordpress.com/16559/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sqlauthority.wordpress.com/16559/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sqlauthority.wordpress.com/16559/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/16559/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/16559/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/16559/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/16559/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/16559/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/16559/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=16559&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2012/01/07/sql-server-collation-and-collation-sensitivity-quiz-puzzle-6-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/6.png" medium="image" />
	</item>
		<item>
		<title>SQL SERVER &#8211; Locking and Blocking &#8211; Important Aspect of Database and Effect on Performance &#8211; Quiz &#8211; Puzzle &#8211; 5 of 31</title>
		<link>http://blog.sqlauthority.com/2012/01/06/sql-server-locking-and-blocking-important-aspect-of-database-and-effect-on-performance-quiz-puzzle-5-of-31/</link>
		<comments>http://blog.sqlauthority.com/2012/01/06/sql-server-locking-and-blocking-important-aspect-of-database-and-effect-on-performance-quiz-puzzle-5-of-31/#comments</comments>
		<pubDate>Fri, 06 Jan 2012 01:30:38 +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=16554</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=16554&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/5.jpg" alt="" /></p>
<div style="text-align:justify;">
<p>Have you ever faced a situation when you are trying to retrieve any data and the query keeps on waiting on the data and eventually times out? One of the reasons for this can be locking. What are the different types of locks inside SQL Server 2008 R2?</p>
</div>
<p style="text-align:justify;"><a href="http://beyondrelational.com/quiz/sqlserver/general/2012/questions/192/have-you-ever-faced-situation-when-you-trying-to-retrieve-any-data-and-the-query-keeps-on-waiting-on.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;">Locking and Blocking are non-negotiable when it comes to working with Databases. This <a href="http://support.microsoft.com/kb/224453?WT.mc_id=aff-n-in-loc--pd" target="_blank">support article</a> gives great related information.</p>
<h3 style="text-align:justify;">Notes of Pinal Dave</h3>
<p style="text-align:justify;">Locking and Blocking is an interesting concept. I often see people getting confused between them. Deadlock and Livelock are other concepts which keep on getting people confused as well. I think in today&#8217;s note, I have not added any more hint but just asked further questions which are add to the confusion. Well, let me make things more interesting AND confusing. I think it will be a good idea to learn when a query times out due to deadlock and due to server time out or when the server is suffering from performance issues.</p>
<h3 style="text-align:justify;">Additional Notes</h3>
<p style="text-align:justify;">SQL Server Interview Questions and Answers ISBN: 1466405643 Page#41-43<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/192/have-you-ever-faced-situation-when-you-trying-to-retrieve-any-data-and-the-query-keeps-on-waiting-on.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/16554/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/16554/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sqlauthority.wordpress.com/16554/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sqlauthority.wordpress.com/16554/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sqlauthority.wordpress.com/16554/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sqlauthority.wordpress.com/16554/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sqlauthority.wordpress.com/16554/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sqlauthority.wordpress.com/16554/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sqlauthority.wordpress.com/16554/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sqlauthority.wordpress.com/16554/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sqlauthority.wordpress.com/16554/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sqlauthority.wordpress.com/16554/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sqlauthority.wordpress.com/16554/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sqlauthority.wordpress.com/16554/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;blog=668536&amp;post=16554&amp;subd=sqlauthority&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.sqlauthority.com/2012/01/06/sql-server-locking-and-blocking-important-aspect-of-database-and-effect-on-performance-quiz-puzzle-5-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/5.jpg" medium="image" />
	</item>
	</channel>
</rss>
