<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>SQL Server Journey with SQL Authority</title><link>http://blog.sqlauthority.com</link><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/SQLAuthority" /><description>Personal Notes of Pinal Dave</description><language>en</language><image><link>http://blog.sqlauthority.com</link><url>http://0.gravatar.com/blavatar/08e35387c05b61340e885b1763a69d9f?s=96&amp;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url><title>SQL Server Journey with SQL Authority</title></image><lastBuildDate>Thu, 23 May 2013 07:51:30 PDT</lastBuildDate><generator>http://wordpress.com/</generator><sy:updatePeriod xmlns:sy="http://purl.org/rss/1.0/modules/syndication/">hourly</sy:updatePeriod><sy:updateFrequency xmlns:sy="http://purl.org/rss/1.0/modules/syndication/">1</sy:updateFrequency><atom:link xmlns:atom="http://www.w3.org/2005/Atom" rel="search" type="application/opensearchdescription+xml" href="http://blog.sqlauthority.com/osd.xml" title="SQL Server Journey with SQL Authority" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/SQLAuthority" /><feedburner:info uri="sqlauthority" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://blog.sqlauthority.com/?pushpress=hub" /><feedburner:emailServiceId>SQLAuthority</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><feedburner:feedFlare href="http://add.my.yahoo.com/rss?url=http%3A%2F%2Ffeeds.feedburner.com%2FSQLAuthority" src="http://us.i1.yimg.com/us.yimg.com/i/us/my/addtomyyahoo4.gif">Subscribe with My Yahoo!</feedburner:feedFlare><feedburner:feedFlare href="http://www.newsgator.com/ngs/subscriber/subext.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2FSQLAuthority" src="http://www.newsgator.com/images/ngsub1.gif">Subscribe with NewsGator</feedburner:feedFlare><feedburner:feedFlare href="http://feeds.my.aol.com/add.jsp?url=http%3A%2F%2Ffeeds.feedburner.com%2FSQLAuthority" src="http://o.aolcdn.com/favorites.my.aol.com/webmaster/ffclient/webroot/locale/en-US/images/myAOLButtonSmall.gif">Subscribe with My AOL</feedburner:feedFlare><feedburner:feedFlare href="http://www.bloglines.com/sub/http://feeds.feedburner.com/SQLAuthority" src="http://www.bloglines.com/images/sub_modern11.gif">Subscribe with Bloglines</feedburner:feedFlare><feedburner:feedFlare href="http://www.netvibes.com/subscribe.php?url=http%3A%2F%2Ffeeds.feedburner.com%2FSQLAuthority" src="http://www.netvibes.com/img/add2netvibes.gif">Subscribe with Netvibes</feedburner:feedFlare><feedburner:feedFlare href="http://fusion.google.com/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2FSQLAuthority" src="http://buttons.googlesyndication.com/fusion/add.gif">Subscribe with Google</feedburner:feedFlare><feedburner:feedFlare href="http://www.pageflakes.com/subscribe.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2FSQLAuthority" src="http://www.pageflakes.com/ImageFile.ashx?instanceId=Static_4&amp;fileName=ATP_blu_91x17.gif">Subscribe with Pageflakes</feedburner:feedFlare><feedburner:browserFriendly>Journey to SQL Authority with Pinal Dave http://www.SQLAuthority.com</feedburner:browserFriendly><item><title>Blogging Best Practices – Frequently Asked Questions – Part 5</title><link>http://feedproxy.google.com/~r/SQLAuthority/~3/3sA7wP2y-o4/</link><category>Best Practices</category><category>Blogging</category><category>PostADay</category><category>SQL</category><category>SQL Authority</category><category>SQL Query</category><category>SQL Server</category><category>SQL Tips and Tricks</category><category>T SQL</category><category>Technology</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">pinaldave</dc:creator><pubDate>Thu, 23 May 2013 18:30:40 PDT</pubDate><guid isPermaLink="false">http://blog.sqlauthority.com/?p=23698</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p><strong>Abstract of my Pluralsight Course<a href="http://bit.ly/blog-better" target="_blank"> Building a Successful Blog</a> Module &#8211; Frequently Asked Questions.</strong></p>
<span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='500' height='312' src='http://www.youtube.com/embed/12p4j4Ht8os?version=3&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' frameborder='0'></iframe></span>
<p style="text-align:justify;">If you have been following this blog series about starting and maintaining a blog, you might be excited to go start blogging right now.  But if you have a few more questions, let me get them out of the way right now with some Frequently Asked Questions. Here are few of the <span class="GINGER_SOFATWARE_correct">questions</span> which I discuss over here.</p>
<p style="text-align:justify;"><i>Should I start Blogging?</i></p>
<p style="text-align:justify;">Of course!  It’s fun, easy (if you love what you do, it will be easy), it is rewarding, and you could even earn money.</p>
<p style="text-align:justify;"><i>What if I get bored?</i></p>
<p style="text-align:justify;">One of the biggest problems with starting a blog is losing interest after a few weeks, never posting, and slowly your blog disappears into obscurity.  Here are some ways to always feel fresh at blogging: change up your schedule.  If you find yourself getting bored, try writing at different times of the day, or even sitting at a different desk.</p>
<p style="text-align:justify;">Some people burn out because their set their expectations too high.  If you think you’ll be able to post multiple posts every day, and write extra posts so you’ll always have a queue, you’ll probably lose interesting in working so hard and stop altogether.  Set a goal for yourself: one post a day, or one post a week with one extra as <span class="GINGER_SOFATWARE_correct">buffer</span>.  Make a to-do list and cross off things as you accomplish them – even small victories will feel like big motivators.</p>
<p style="text-align:justify;"><img class="alignnone" alt="" src="http://www.pinaldave.com/bimg/blogimg/blog5.jpg" width="978" height="353" /></p>
<p style="text-align:justify;"><i>How much do I need to spend?</i></p>
<p style="text-align:justify;">You don’t need to spend any money if you don’t want to!  There are so many free blog hosts that spending any money on a venture you’re not sure you’ll like is a waste.  However, if you feel very passionate about your subject, invest $10 in a domain name so that you’ll have the best head start on internet stardom possible.  If you don’t want to invest any, or if you’re saving your money – spend what you can afford, even if it’s $0.</p>
<p style="text-align:justify;"><i>What do I write?</i></p>
<p style="text-align:justify;">So you’ve started a blog and now you want to know what to write.  I’m afraid you might have done things a little backward – it is best to choose a topic for your blog, and THEN start the blog.  If it’s too late for that – try not to overthink it.  Write about whatever you want, it’s YOUR blog.  Don’t stress too much about making that first post perfect – you should write about five or ten posts and post them all at once, so no one is going to go back to your first post and think “<span class="GINGER_SOFATWARE_noSuggestion GINGER_SOFATWARE_correct">pffft</span>, what a silly idea!”</p>
<p style="text-align:justify;"><span class="GINGER_SOFATWARE_correct">He</span> are few of the <span class="GINGER_SOFATWARE_correct">question</span> which I discuss in depth in the Pluralsight course.</p>
<div>
<ul>
<li><strong>How long should it take to write a post?</strong></li>
<li><strong>What if I get bored?</strong></li>
<li><strong>How much do I need to spend?</strong></li>
<li><strong>What do I write?</strong></li>
<li><strong>The name I wanted is taken. Now what?</strong></li>
<li><strong>Someone is stealing my posts! Help!</strong></li>
<li><strong>How long should my posts be?</strong></li>
<li><strong>Should I be on a writing schedule?</strong></li>
<li><strong>Will I have more readers the more often I post?</strong></li>
<li><strong>How can I promote my blog?</strong></li>
<li><strong>How many visitors am I getting? Am I popular yet?</strong></li>
<li><strong>What is SEO? Should I be worried about it?</strong></li>
<li><strong>Can I switch blog hosts? What if I want to switch later?</strong></li>
</ul>
</div>
<p style="text-align:justify;">There are so many more questions out there, I know.</p>
<p style="text-align:justify;">If you’re still curious about blogs and blogging, check out my course on <strong><a href="http://bit.ly/blog-better" target="_blank">Pluralsight</a></strong>!</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/best-practices/'>Best Practices</a>, <a href='http://blog.sqlauthority.com/category/blogging/'>Blogging</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/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/23698/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/23698/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&#038;blog=668536&#038;post=23698&#038;subd=sqlauthority&#038;ref=&#038;feed=1" width="1" height="1" /><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=3sA7wP2y-o4:wkwiPGPzSbA:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=3sA7wP2y-o4:wkwiPGPzSbA:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=3sA7wP2y-o4:wkwiPGPzSbA:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=l6gmwiTKsz0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=3sA7wP2y-o4:wkwiPGPzSbA:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?i=3sA7wP2y-o4:wkwiPGPzSbA:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/SQLAuthority/~4/3sA7wP2y-o4" height="1" width="1"/>]]></content:encoded><description>Abstract of my Pluralsight Course Building a Successful Blog Module &amp;#8211; Frequently Asked Questions. If you have been following this blog series about starting and maintaining a blog, you might be excited to go start blogging right now.  But if you have a few more questions, let me get them out of the way right now with [&amp;#8230;]&lt;img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;#038;blog=668536&amp;#038;post=23698&amp;#038;subd=sqlauthority&amp;#038;ref=&amp;#038;feed=1" width="1" height="1" /&gt;</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blog.sqlauthority.com/2013/05/24/blogging-best-practices-frequently-asked-questions-part-5/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">0</slash:comments><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://1.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&amp;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://www.pinaldave.com/bimg/blogimg/blog5.jpg" medium="image" /><feedburner:origLink>http://blog.sqlauthority.com/2013/05/24/blogging-best-practices-frequently-asked-questions-part-5/</feedburner:origLink></item><item><title>Blogging Best Practices – Blogging Rules, Ethics and Etiquette – Part 4</title><link>http://feedproxy.google.com/~r/SQLAuthority/~3/w67QOfiXLeI/</link><category>Best Practices</category><category>Blogging</category><category>PostADay</category><category>SQL</category><category>SQL Authority</category><category>SQL Query</category><category>SQL Server</category><category>SQL Tips and Tricks</category><category>T SQL</category><category>Technology</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">pinaldave</dc:creator><pubDate>Wed, 22 May 2013 18:30:59 PDT</pubDate><guid isPermaLink="false">http://blog.sqlauthority.com/?p=23696</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p><strong>Abstract of my Pluralsight Course<a href="http://bit.ly/blog-better" target="_blank"> Building a Successful Blog</a> Module &#8211; Blogging Rules, Ethics and Etiquette.</strong></p>
<span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='500' height='312' src='http://www.youtube.com/embed/12p4j4Ht8os?version=3&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' frameborder='0'></iframe></span>
<p style="text-align:justify;">To have a successful blog, your posts should be interesting, you probably would like to have a large audience, and you want to provide quality content to the subject.  However, to be truly successful, you also ought to follow a few ethical rules, as well – your blog might be popular, but if you are just plagiarizing from a less well-known source, your success is not honestly won, and not truly your own.</p>
<h3 style="text-align:justify;">Legal Issues</h3>
<p style="text-align:justify;">One of the biggest issues that bloggers ought to keep in mind is copyright law.  It can be very easy when blogging to get excited about an article, idea, or <span class="GINGER_SOFATWARE_correct">photo</span>, and immediately post a glowing review of it to your blog – only to get in trouble when the author or owner stumbles across it.  Shouldn’t they be happy with your free advertisement?  Shouldn’t they appreciate the business you are sending your way?  Unfortunately, discriminating between a blogger who is trying to help and one who is trying to pass off this cool new information as their own can be difficult to determine.  If you want to post something someone else created – text, photos, videos, music – CITE YOUR SOURCES!  Provide links, and ask permission – they may be able to provide a copy of that photo you love, but with their personal watermark.</p>
<p style="text-align:justify;">Right now it might be feeling like posting anything on your blog can be a dangerous proposition.  How can anyone post a picture on their blog without getting sued?  This problem has a flip side – freelance photographers will also have trouble getting their work out there.  That is where Creative Commons stepped in.  It is a non-profit organization that is dedicated to providing licenses and legal protections to artists’ work – any element, which includes <span class="GINGER_SOFATWARE_correct">designs</span>, photographs, logos, you name it.  There are six different kinds of licenses, and they protect and restrict in different ways.  There are now hundreds of websites that provide Creative Commons images for free or a small fee, and they do the legal footwork for the bloggers.  Everyone wins!</p>
<p style="text-align:justify;"><img class="alignnone" alt="" src="http://www.pinaldave.com/bimg/blogimg/blog4 (1).jpg" width="973" height="352" /></p>
<h3 style="text-align:justify;">Privacy</h3>
<p style="text-align:justify;">User privacy is a huge issue.  With the abundance of spam and spammers out there on the internet, all users are rightfully careful about protecting their private information.  Gathering private information about your readers without their knowledge is strictly prohibited, and you could be prosecuted to the full extent of the law.  Spreading or, worse, selling information given to you willingly – such as a form filled out to become a <span class="GINGER_SOFATWARE_correct">commenter</span> – without the <span class="GINGER_SOFATWARE_correct">commenter’s</span> knowledge or permission, is also strictly illegal.  Even if you are gathering e-mail addresses from readers to send out a weekly newsletter, please be sure to provide an opt-in or opt-out box, so that there is no question of whether your readers were spammed by you or received a desired e-mail from you.</p>
<p style="text-align:justify;"><img class="alignnone" alt="" src="http://www.pinaldave.com/bimg/blogimg/blog4 (2).jpg" width="975" height="351" /></p>
<h3 style="text-align:justify;">Ethics and Etiquette</h3>
<p style="text-align:justify;">This is my favorite subject and there are so many to discuss. There are many <span class="GINGER_SOFATWARE_correct">does</span> and <span class="GINGER_SOFATWARE_correct">don&#8217;ts</span> to do for blogging. Online behavior of any person represents a lot about them. There are other rules to keep in mind while blogging, especially my “grandma rule”. It will be not possible to write about everything which I discuss in the course over here so I suggest you head over to Pluralsight course and read them in detail.</p>
<p style="text-align:justify;">If you’re still curious about blogs and blogging, check out my course on <strong><a href="http://bit.ly/blog-better" target="_blank">Pluralsight</a></strong>!</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/best-practices/'>Best Practices</a>, <a href='http://blog.sqlauthority.com/category/blogging/'>Blogging</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/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/23696/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/23696/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&#038;blog=668536&#038;post=23696&#038;subd=sqlauthority&#038;ref=&#038;feed=1" width="1" height="1" /><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=w67QOfiXLeI:6AdQOD9uqyc:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=w67QOfiXLeI:6AdQOD9uqyc:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=w67QOfiXLeI:6AdQOD9uqyc:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=l6gmwiTKsz0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=w67QOfiXLeI:6AdQOD9uqyc:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?i=w67QOfiXLeI:6AdQOD9uqyc:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/SQLAuthority/~4/w67QOfiXLeI" height="1" width="1"/>]]></content:encoded><description>Abstract of my Pluralsight Course Building a Successful Blog Module &amp;#8211; Blogging Rules, Ethics and Etiquette. To have a successful blog, your posts should be interesting, you probably would like to have a large audience, and you want to provide quality content to the subject.  However, to be truly successful, you also ought to follow a few [&amp;#8230;]&lt;img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;#038;blog=668536&amp;#038;post=23696&amp;#038;subd=sqlauthority&amp;#038;ref=&amp;#038;feed=1" width="1" height="1" /&gt;</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blog.sqlauthority.com/2013/05/23/blogging-best-practices-blogging-rules-ethics-and-etiquette-part-4/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">0</slash:comments><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://1.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&amp;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://www.pinaldave.com/bimg/blogimg/blog4(1).jpg" medium="image" /><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://www.pinaldave.com/bimg/blogimg/blog4(2).jpg" medium="image" /><feedburner:origLink>http://blog.sqlauthority.com/2013/05/23/blogging-best-practices-blogging-rules-ethics-and-etiquette-part-4/</feedburner:origLink></item><item><title>Blogging Best Practices – Writing an Interesting Blog – Part 3</title><link>http://feedproxy.google.com/~r/SQLAuthority/~3/Tpi-Sku7B5M/</link><category>Best Practices</category><category>Blogging</category><category>PostADay</category><category>SQL</category><category>SQL Authority</category><category>SQL Query</category><category>SQL Server</category><category>SQL Tips and Tricks</category><category>T SQL</category><category>Technology</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">pinaldave</dc:creator><pubDate>Tue, 21 May 2013 18:30:03 PDT</pubDate><guid isPermaLink="false">http://blog.sqlauthority.com/?p=23694</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p style="text-align:justify;"><strong>Abstract of my Pluralsight Course<a href="http://bit.ly/blog-better" target="_blank"> Building a Successful Blog</a> Module &#8211; Writing an Interesting Blog.</strong></p>
<p style="text-align:justify;"><span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='500' height='312' src='http://www.youtube.com/embed/12p4j4Ht8os?version=3&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' frameborder='0'></iframe></span></p>
<h3 style="text-align:justify;">Getting Started</h3>
<p style="text-align:justify;">Is writing an interesting blog so simple that I can just TELL you how to do it right now?  Almost!  I’m sure you started your blog because you had something you felt you had to write about.  But now you’ve created the site and are staring at a blank page that represents all the millions of different directions you can go with this new idea.  Just remember as you write – if you wanted to write about it, there are certainly a few people who want to read it.  Here are a few ideas to get you started.</p>
<p style="text-align:justify;">Write what you would want to read.  You started this blog because you probably felt that there was something more you could personally add the subject, or that wasn’t being addressed.  There is surely a subject that gets you really hot under the collar (in a good way or a bad way).  This will always make an exciting blog post.  It’s something you wanted to read about and couldn’t find – so write about that!</p>
<p style="text-align:justify;">Create a picture in your mind of who you think is reading your blog – or who you’re like to read your blog.  You can even come up with a cast of characters who you think would be interested.  Each one will be different and have different interests – and then you can write posts to these imaginary readers.  The larger the cast, the more ideas who will be able to generate.</p>
<p style="text-align:justify;"><img class="alignnone" alt="" src="http://www.pinaldave.com/bimg/blogimg/blog3 (1).jpg" width="976" height="354" /></p>
<h3 style="text-align:justify;">Writing an Interesting Post</h3>
<p style="text-align:justify;">Some of the best orators start out with a story, and then link back to the original topic in a unique or interesting way.  This captures the audience’s attention at the very beginning, and then they are along for the whole ride.  Here is how to capture this same magic in your blog posts.</p>
<p style="text-align:justify;">Ask a question at the very beginning.  Here is an example: how can you write the most amazing blog post of all time?  Well, this question certainly is leading the readers to think they are about to find out!  Don’t overuse this technique, it can seem hackneyed and old, but used in the right context it can be very effective.</p>
<p style="text-align:justify;">Here are two tricks of many I discuss in my course.</p>
<p style="text-align:justify;"><strong>Start with action</strong> – A lone blogger, in front of a flickering computer screen, with an unknown fate – to prevail in the face of writing a blog post, or to crumble under the pressure.  This is obviously a little bit too melodramatic for an average blog post, but you get the idea.</p>
<p style="text-align:justify;"><strong>Paint a Picture</strong> – I don’t mean literally, of course.  But if you can paint a picture with words: the dark night sky was sprinkled with tiny stars, but I knew I could see <span class="GINGER_SOFATWARE_correct">dawn</span> on the dusky horizon.  Very soon, my blog post would be due.  <span class="GINGER_SOFATWARE_correct">Long</span> descriptions may not work for the average technical blog, but there are certainly ways to work them in.</p>
<p style="text-align:justify;">If you are really stuck and are staring at a blank screen because you can’t think of a catchy intro, just start writing and worry about it later.  You can even write your last paragraph, and work backwards from there.  Eventually you will get into the swing of writing and the introduction will come naturally.</p>
<p style="text-align:justify;"><img class="alignnone" alt="" src="http://www.pinaldave.com/bimg/blogimg/blog3 (2).jpg" width="977" height="353" /></p>
<h3 style="text-align:justify;">Make Your Blog Scannable</h3>
<p style="text-align:justify;">A <span class="GINGER_SOFATWARE_noSuggestion GINGER_SOFATWARE_correct">scannable</span> blog is a readable blog.  It does not mean that readers will stop by, scan for 15 seconds and leave – it means that readers will stop by, scan for 15 seconds, easily find a topic of interest, and stay – maybe becoming permanent readers!  You have to remember – people tend to read blogs in-between doing other things.  Blogs have to be quick and easy to read so that they can get back to work, minding their children, or cooking dinner.  Having an easily <span class="GINGER_SOFATWARE_correct">scannable</span> blog will make your blog more likely to become a popular stopping place for readers.  So what makes a blog <span class="GINGER_SOFATWARE_noSuggestion GINGER_SOFATWARE_correct">scannable</span>? Well, that is the secret I talk about in my course.</p>
<p style="text-align:justify;">In my course on Pluralsight, I also include information about writing a post from beginning to end, and overcoming the biggest of all <span class="GINGER_SOFATWARE_correct">bloggers</span> fears: blogger’s block.</p>
<p style="text-align:justify;">If you’re still curious about blogs and blogging, check out my course on <strong><a href="http://bit.ly/blog-better" target="_blank">Pluralsight</a></strong>!</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/best-practices/'>Best Practices</a>, <a href='http://blog.sqlauthority.com/category/blogging/'>Blogging</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/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/23694/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/23694/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&#038;blog=668536&#038;post=23694&#038;subd=sqlauthority&#038;ref=&#038;feed=1" width="1" height="1" /><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=Tpi-Sku7B5M:sZA2hy5KxdA:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=Tpi-Sku7B5M:sZA2hy5KxdA:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=Tpi-Sku7B5M:sZA2hy5KxdA:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=l6gmwiTKsz0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=Tpi-Sku7B5M:sZA2hy5KxdA:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?i=Tpi-Sku7B5M:sZA2hy5KxdA:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/SQLAuthority/~4/Tpi-Sku7B5M" height="1" width="1"/>]]></content:encoded><description>Abstract of my Pluralsight Course Building a Successful Blog Module &amp;#8211; Writing an Interesting Blog. Getting Started Is writing an interesting blog so simple that I can just TELL you how to do it right now?  Almost!  I’m sure you started your blog because you had something you felt you had to write about.  But now you’ve [&amp;#8230;]&lt;img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;#038;blog=668536&amp;#038;post=23694&amp;#038;subd=sqlauthority&amp;#038;ref=&amp;#038;feed=1" width="1" height="1" /&gt;</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blog.sqlauthority.com/2013/05/22/blogging-best-practices-writing-an-interesting-blog-part-3/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">1</slash:comments><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://1.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&amp;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://www.pinaldave.com/bimg/blogimg/blog3(1).jpg" medium="image" /><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://www.pinaldave.com/bimg/blogimg/blog3(2).jpg" medium="image" /><feedburner:origLink>http://blog.sqlauthority.com/2013/05/22/blogging-best-practices-writing-an-interesting-blog-part-3/</feedburner:origLink></item><item><title>Blogging Best Practices – Getting Started with Blogging – Part 2</title><link>http://feedproxy.google.com/~r/SQLAuthority/~3/iQXRoT1GYSU/</link><category>Best Practices</category><category>Blogging</category><category>PostADay</category><category>SQL</category><category>SQL Authority</category><category>SQL Query</category><category>SQL Server</category><category>SQL Tips and Tricks</category><category>T SQL</category><category>Technology</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">pinaldave</dc:creator><pubDate>Mon, 20 May 2013 18:30:41 PDT</pubDate><guid isPermaLink="false">http://blog.sqlauthority.com/?p=23692</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p style="text-align:justify;"><strong>Abstract of my Pluralsight Course<a href="http://bit.ly/blog-better" target="_blank"> Building a Successful Blog</a> Module &#8211; Getting Started with Blogging.</strong></p>
<p style="text-align:justify;"><span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='500' height='312' src='http://www.youtube.com/embed/12p4j4Ht8os?version=3&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' frameborder='0'></iframe></span></p>
<h3 style="text-align:justify;">Choosing a Blog Host</h3>
<p style="text-align:justify;">If you’ve recently decided to start blogging, the very first thing you have to decide on is which hosting service to use.  There are many blog hosts: Blogger, WordPress, <span class="GINGER_SOFATWARE_correct">Typepad</span>, to name just a few.  With so many options, how can you choose?</p>
<p style="text-align:justify;">There are a few criteria to keep in mind when choosing a blog host. What is the purpose of this blog?  If <span class="GINGER_SOFATWARE_correct">it</span> a personal website, you don’t need anything too technical or one that is uniquely designed for you.  However, if you are starting a blog for a business, you will want to make your blog look unique and stand out from the crowd – and you don’t want to run into trademark issues later.</p>
<p style="text-align:justify;"><span class="GINGER_SOFATWARE_noSuggestion GINGER_SOFATWARE_correct">Customizability</span> and technical abilities are also something to think about.  If you want your blog to have the perfect shade of blue and a special font, you will want a blog host with those options – but if you don’t feel comfortable coding in HTML, make sure your blog host takes care of those technical details for you!  Your budget will play into these considerations.  Many blog hosts are completely free – but these are often the kind of “cookie cutter” blogs that all look identical.  If you want something tailored to you, you can expect a monthly fee.</p>
<p style="text-align:justify;"><img class="alignnone" alt="" src="http://www.pinaldave.com/bimg/blogimg/blog2 (1).jpg" width="972" height="350" /></p>
<h3 style="text-align:justify;">Choosing a Domain Name</h3>
<p style="text-align:justify;">Choosing a domain name is no easy task.  Some people might say <span class="GINGER_SOFATWARE_correct">its</span> the hardest part of starting a blog or <span class="GINGER_SOFATWARE_correct">website</span> (and I do not recommend thinking up a name and <i>then</i> choosing what to blog about).  However, if the millions upon billions of websites already on the internet are any indication, you <i>will</i> be able to think of a domain name.  Here are some general rules to stick with:</p>
<p style="text-align:justify;">Use keywords.  Search engines use keywords to find your site and bring it up during searches.  These keywords are generally found in the content of your site – but these search programs check your domain name, too!  Use a “.com” address at all costs.  If your only option with a certain name is to choose .<span class="GINGER_SOFATWARE_correct">net</span> or .<span class="GINGER_SOFATWARE_correct">biz</span>, scrap the name and start over.  These suffixes scream “I don’t know what I’m doing!”</p>
<p style="text-align:justify;">Make it easy for your readers to find you again – make your domain name obvious.  It should be easy to spell, because 90% of individuals are terrible spellers, and avoid unnecessary additions at all costs.  These additions include “z” instead of “s”, hyphens (cool-website-look-here.com is terrible!), numbers instead of letters (especially the letter 0, which is easily confused with “o”), and slang or purposely misspelled words.</p>
<p style="text-align:justify;"><img class="alignnone" alt="" src="http://www.pinaldave.com/bimg/blogimg/blog2 (2).jpg" width="984" height="346" /></p>
<h3 style="text-align:justify;">Design Elements</h3>
<p style="text-align:justify;"><span class="GINGER_SOFATWARE_correct">Lets</span> talk about the real details of blog design.</p>
<p style="text-align:justify;">As I mentioned, a dark background and light font almost never looks good.  Start off with basic colors at first, and then branch out.  A good rule of thumb is that your blog should have no more than three colors, and they should blend well together.  A white background, black text, and a bright color for headlines, titles, <span class="GINGER_SOFATWARE_noSuggestion GINGER_SOFATWARE_correct">etc</span> will look very nice and can easily be <span class="GINGER_SOFATWARE_correct">customized down the</span> road.</p>
<p style="text-align:justify;">Be just as careful when choosing a font.  When you’re designing your blog, the thought of using Times New Roman or Arial might seem so boring you just want to scream.  But those fonts are universal for a reason – they are easy to read.  If your font is so unique that it is distracting, your content is not what people will remember.  Unless you are writing a blog about funny fonts, stick with something simple.</p>
<p style="text-align:justify;">Be sure to leave a decent amount of space between posts, or add a divider between posts so that readers won’t get confused.  This kind of ritual will actually make readers feel more comfortable – it is a steady, comforting presence.  Menus and links will help keep your blog organized and navigable.  They can reassure readers that your blog has a strong history of posts, and is not just another newcomer that will be here today but gone tomorrow.</p>
<p style="text-align:justify;">Well, there are few more interesting tips as well, which I have discussed in depth in my Pluralsight Course.</p>
<h3 style="text-align:justify;">Comments – Yea or Nay?</h3>
<p style="text-align:justify;">Most blog hosts allow commenting on individual posts or the blog as a whole.  Some will also provide the option to allow comments at all.  If you have ever stumbled into a nasty blog fight, it might give you pause to allow this kind of risk on your own blog, but there are so many benefits to allowing comments.  First of all, it allows you to build a community of like-minded individuals.  Commenters will interact with your material as well as each other.</p>
<p style="text-align:justify;">Of course, the downside of comments is the spam.  It can be mean commenters, people trying to stir up trouble, or just your average spammer trying to get their links clicked.  Because spam is such a widespread problem, any blog host that allows comments will also have a way to deal with the spam.  It can mean screening all comments, or simply keeping on top of comments and deleting the spam.</p>
<p style="text-align:justify;">If you’re still curious about blogs and blogging, check out my course on <strong><a href="http://bit.ly/blog-better" target="_blank">Pluralsight</a></strong>!</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/best-practices/'>Best Practices</a>, <a href='http://blog.sqlauthority.com/category/blogging/'>Blogging</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/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/23692/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/23692/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&#038;blog=668536&#038;post=23692&#038;subd=sqlauthority&#038;ref=&#038;feed=1" width="1" height="1" /><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=iQXRoT1GYSU:KtNizN6_mtQ:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=iQXRoT1GYSU:KtNizN6_mtQ:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=iQXRoT1GYSU:KtNizN6_mtQ:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=l6gmwiTKsz0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=iQXRoT1GYSU:KtNizN6_mtQ:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?i=iQXRoT1GYSU:KtNizN6_mtQ:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/SQLAuthority/~4/iQXRoT1GYSU" height="1" width="1"/>]]></content:encoded><description>Abstract of my Pluralsight Course Building a Successful Blog Module &amp;#8211; Getting Started with Blogging. Choosing a Blog Host If you’ve recently decided to start blogging, the very first thing you have to decide on is which hosting service to use.  There are many blog hosts: Blogger, WordPress, Typepad, to name just a few.  With so many [&amp;#8230;]&lt;img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;#038;blog=668536&amp;#038;post=23692&amp;#038;subd=sqlauthority&amp;#038;ref=&amp;#038;feed=1" width="1" height="1" /&gt;</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blog.sqlauthority.com/2013/05/21/blogging-best-practices-getting-started-with-blogging-part-2/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">0</slash:comments><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://1.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&amp;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://www.pinaldave.com/bimg/blogimg/blog2(1).jpg" medium="image" /><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://www.pinaldave.com/bimg/blogimg/blog2(2).jpg" medium="image" /><feedburner:origLink>http://blog.sqlauthority.com/2013/05/21/blogging-best-practices-getting-started-with-blogging-part-2/</feedburner:origLink></item><item><title>Blogging Best Practices – Concepts, Ideas and Motives – Part 1</title><link>http://feedproxy.google.com/~r/SQLAuthority/~3/K-hUP2Dz_QM/</link><category>Technology</category><category>SQL Server</category><category>SQL</category><category>SQL Query</category><category>SQL Tips and Tricks</category><category>SQL Authority</category><category>T SQL</category><category>Best Practices</category><category>PostADay</category><category>Blogging</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">pinaldave</dc:creator><pubDate>Sun, 19 May 2013 18:30:34 PDT</pubDate><guid isPermaLink="false">http://blog.sqlauthority.com/?p=23690</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p style="text-align:justify;"><strong>Abstract of my Pluralsight Course<a href="http://bit.ly/blog-better" target="_blank"> Building a Successful Blog</a> Module &#8211; Getting Started with Blogging.</strong></p>
<p style="text-align:justify;">Thinking about starting a blog? Confused about the entire idea of blogging?  I have created a course on <strong><a href="http://bit.ly/blog-better" target="_blank">Pluralsight </a></strong>relating to this very issue.  Let’s start with the easy questions: what is the difference between a blog and a website?  Websites are static sites with a single purpose.  A blog is a type of website – one that is dynamic and always changing when you post and update.  Websites and blogs are similar because they are both addresses on the internet, and a way to connect to the public.</p>
<p style="text-align:justify;"><span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='500' height='312' src='http://www.youtube.com/embed/12p4j4Ht8os?version=3&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' frameborder='0'></iframe></span></p>
<h3 style="text-align:justify;">Website or Blogs</h3>
<p style="text-align:justify;">Websites and blogs have different purposes, uses, and audiences.  Websites are good for businesses or individuals with a product to sell.  They act as a store front – they welcome the public, and stay the same over time so that their products are easy to find.  Blogs are more dynamic.  You can update a blog every day, or multiple times a week, to keep in touch with your audience.  This is like having a conversation with interested parties, and form a network or community of like-minded individuals.</p>
<p style="text-align:justify;">Deciding to blog can be a difficult decision – there are many pros and cons.  Blogs can be a challenge to set-up, and require maintenance.  But for me, the pros far outweigh the cons!  You get to talk about something you love, meet people with similar interests, and be in charge of your own “brand.”</p>
<p style="text-align:justify;"><img class="alignnone" alt="" src="http://www.pinaldave.com/bimg/blogimg/blog1 (1).jpg" width="978" height="353" /></p>
<h3 style="text-align:justify;">Different Types of Blogs</h3>
<p style="text-align:justify;">There are a huge variety of blogs, and many different types of bloggers.  Blogs fall into a few main categories: technology, personal, photography, automobile, and corporate.  I consider technology blogs to be anyone, professional or amateur, who talks about technology – hardware, software, highly specialized, or very general.</p>
<p style="text-align:justify;">Personal blogs are the kind that are about people’s personal interests.  This can be children, religion, crafting, or even just day-to-day updates.  Photography blogs can cover a wide variety (even personal and technology), but tend to be mainly high quality photographs taken by professional who want to share their work, or amateurs who are trying to get better and would like feedback.</p>
<p style="text-align:justify;">Automobile blogs can cover any sort of vehicle or interest.  They are often highly technical about one specific type of car, truck, boat, or sport.  Corporate blogs are professional blogs, run by companies.  They often have multiple authors, and are updated multiple times a day – or at least when breaking news about the company or product becomes available.</p>
<p style="text-align:justify;">As many different types of blogs as there are, there are an equal number of types of bloggers.   I like to divide them into four easy categories (often with a lot of cross-over).</p>
<p style="text-align:justify;"><img class="alignnone" alt="" src="http://www.pinaldave.com/bimg/blogimg/blog1 (2).jpg" width="977" height="352" /></p>
<h3 style="text-align:justify;">Different Types of Blogger</h3>
<p style="text-align:justify;">Professional: these are bloggers who blog for a living.  Maybe they work for a company and run the corporate blog.  Maybe they created their own personal blog that became extremely popular and generates a lot of income.  No matter how they got there, they are extremely successful and have found the magic button for becoming great bloggers.</p>
<p style="text-align:justify;">Amateurs: this obviously covers most blogs.  These people blog for the sake of blogging, because they love a topic or want to share their expertise.  Everybody starts an amateur, and can progress to any of these other types of bloggers.</p>
<p style="text-align:justify;">Artists: these bloggers can be amateurs or professionals.  They might be photographers, or simply good at painting a picture with their words.</p>
<p style="text-align:justify;">Multi-author blogs: any type of blog can be a multi-author blog.  Some blogs start out with more than one author, because they want multiple opinions, an individual can’t keep up with the amount of writing required, or because a group of friends has a similar interest and wants to start a blog.  More commonly, a blog explodes in popularity and needs a team of writers to keep up with the traffic.</p>
<p style="text-align:justify;">If you’re still curious about blogs and blogging, check out my course on <strong><a href="http://bit.ly/blog-better" target="_blank">Pluralsight</a></strong>!</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/best-practices/'>Best Practices</a>, <a href='http://blog.sqlauthority.com/category/blogging/'>Blogging</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/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/23690/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/23690/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&#038;blog=668536&#038;post=23690&#038;subd=sqlauthority&#038;ref=&#038;feed=1" width="1" height="1" /><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=K-hUP2Dz_QM:8RYszv07T74:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=K-hUP2Dz_QM:8RYszv07T74:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=K-hUP2Dz_QM:8RYszv07T74:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=l6gmwiTKsz0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=K-hUP2Dz_QM:8RYszv07T74:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?i=K-hUP2Dz_QM:8RYszv07T74:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/SQLAuthority/~4/K-hUP2Dz_QM" height="1" width="1"/>]]></content:encoded><description>Abstract of my Pluralsight Course Building a Successful Blog Module &amp;#8211; Getting Started with Blogging. Thinking about starting a blog? Confused about the entire idea of blogging?  I have created a course on Pluralsight relating to this very issue.  Let’s start with the easy questions: what is the difference between a blog and a website?  Websites are [&amp;#8230;]&lt;img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;#038;blog=668536&amp;#038;post=23690&amp;#038;subd=sqlauthority&amp;#038;ref=&amp;#038;feed=1" width="1" height="1" /&gt;</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blog.sqlauthority.com/2013/05/20/blogging-best-practices-concepts-ideas-and-motives-part-1/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">0</slash:comments><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://1.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&amp;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://www.pinaldave.com/bimg/blogimg/blog1(1).jpg" medium="image" /><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://www.pinaldave.com/bimg/blogimg/blog1(2).jpg" medium="image" /><feedburner:origLink>http://blog.sqlauthority.com/2013/05/20/blogging-best-practices-concepts-ideas-and-motives-part-1/</feedburner:origLink></item><item><title>Blogging Best Practices – Pluralsight Online Course Based on My Experience</title><link>http://feedproxy.google.com/~r/SQLAuthority/~3/m2qdPLKJeR8/</link><category>Best Practices</category><category>Blogging</category><category>PostADay</category><category>SQL</category><category>SQL Authority</category><category>SQL Query</category><category>SQL Server</category><category>SQL Tips and Tricks</category><category>T SQL</category><category>Technology</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">pinaldave</dc:creator><pubDate>Sat, 18 May 2013 18:30:13 PDT</pubDate><guid isPermaLink="false">http://blog.sqlauthority.com/?p=23777</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p style="text-align:justify;">I have been blogging for more than 6.5 years and I have so far written over 2500 articles on this blog and every blog has been <span class="GINGER_SOFATWARE_correct">journey</span> itself. Over six years I have not missed any single blog and no matter what happens I keep on blogging every day, month after month and year after year. This demonstrates how much I love to blog and engage with all of you. I honestly love all of you and respect a lot when you engage with me on this blog.</p>
<p style="text-align:justify;">During this journey, one of the most common suggestion I received was that I should write about how to build a successful blog. I have been delaying to write this subject for a long time, the reason was simple &#8211; I still see that I have a long way to go before I call myself successful.</p>
<p style="text-align:justify;"><span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='500' height='312' src='http://www.youtube.com/embed/12p4j4Ht8os?version=3&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' frameborder='0'></iframe></span></p>
<h3 style="text-align:justify;">Short Life Span</h3>
<p style="text-align:justify;">However, every single day I see new blogs coming up and some of them are so good that I immediately subscribe to them. Today when I go back to the my subscription list, I see out of the big list there are very few blogs are active. Some of the blogs are deserted and some of them are just dead. There are few blogs so good that I really wish the author was still engaged <span class="GINGER_SOFATWARE_correct">on</span> the blog and writing the interesting content <span class="GINGER_SOFATWARE_correct">everyday</span>.</p>
<p style="text-align:justify;">Due to any reason I see not all great blog continuing their journey. The most common reason I see is that <span class="GINGER_SOFATWARE_correct">blog author</span> has lost <span class="GINGER_SOFATWARE_correct">motivation</span> to write due to lack of interest or getting busy <span class="GINGER_SOFATWARE_correct">in</span> their other daily activities. Here is my question to you &#8211; if we can clean our teeth <span class="GINGER_SOFATWARE_correct">everyday</span>, why can&#8217;t we blog everyday?</p>
<h3 style="text-align:justify;">Recent Motivation</h3>
<p style="text-align:justify;">In the month of February I attended Pluralsight Author Summit. On the very last day at the event, I went to Snow Basin for skiing. Well, I do not know skiing but it is indeed fun to hang around with friends. During the  event, Pluralsight CEO Aaron Skonnard suggested that I should write a blog about how to build a successful blog as it many would be interested in reading about the secret behind building such a large audience and interesting stories. I absolutely see reason and logic behind what Aaron suggested and I decided to build a video course over this subject.</p>
<h3 style="text-align:justify;">Building a Successful Blog</h3>
<p style="text-align:justify;">Here is the link to Pluralsight Course<a href="http://bit.ly/blog-better" target="_blank"> </a><strong><a href="http://bit.ly/blog-better" target="_blank">Building a Successful Blog</a></strong>. There <span class="GINGER_SOFATWARE_correct">are</span> a total of six modules in this course. I have carefully <span class="GINGER_SOFATWARE_correct">build</span> each module keeping beginners and experts both in mind. Each module attempts to <span class="GINGER_SOFATWARE_correct">answers</span> questions for beginners as well as <span class="GINGER_SOFATWARE_correct">expert</span> in this field. Blogging is such a wide area that it is hard to know everything for everybody. During my journey of over six years I believe there are so many lessons that I have just learned in my recent years. My goal is that I give everything I know to the community and later community can build their own successful blog on the lessons and learning I have shared <span class="GINGER_SOFATWARE_correct">to</span> them.</p>
<p style="text-align:justify;">Here are modules of the Pluralsight Course<a href="http://bit.ly/blog-better" target="_blank"> </a><strong><a href="http://bit.ly/blog-better" target="_blank">Building a Successful Blog</a></strong></p>
<ul style="text-align:justify;">
<li>Introduction</li>
<li>Blogging Concepts, Ideas and Motives</li>
<li>Getting Started with Blogging</li>
<li>Writing an Interesting Blog</li>
<li>Blogging Rules, Ethics and Etiquette</li>
<li>Frequently Asked Questions</li>
<li>Checklist for Building successful Blog</li>
</ul>
<p style="text-align:justify;">In the next week, I will be discussing writing one blog post for each of the subject to touch base about them. I will give a quick insight about the content which I have covered in the course. I will be linking each of the above topics as blog posts are published on the blog.</p>
<p style="text-align:justify;">If you’re still curious about blogs and blogging, check out my course on <strong><a href="http://bit.ly/blog-better" target="_blank">Pluralsight</a></strong>!</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/best-practices/'>Best Practices</a>, <a href='http://blog.sqlauthority.com/category/blogging/'>Blogging</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/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/23777/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/23777/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&#038;blog=668536&#038;post=23777&#038;subd=sqlauthority&#038;ref=&#038;feed=1" width="1" height="1" /><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=m2qdPLKJeR8:z4wrDM1OBuo:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=m2qdPLKJeR8:z4wrDM1OBuo:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=m2qdPLKJeR8:z4wrDM1OBuo:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=l6gmwiTKsz0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=m2qdPLKJeR8:z4wrDM1OBuo:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?i=m2qdPLKJeR8:z4wrDM1OBuo:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/SQLAuthority/~4/m2qdPLKJeR8" height="1" width="1"/>]]></content:encoded><description>I have been blogging for more than 6.5 years and I have so far written over 2500 articles on this blog and every blog has been journey itself. Over six years I have not missed any single blog and no matter what happens I keep on blogging every day, month after month and year after year. [&amp;#8230;]&lt;img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;#038;blog=668536&amp;#038;post=23777&amp;#038;subd=sqlauthority&amp;#038;ref=&amp;#038;feed=1" width="1" height="1" /&gt;</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blog.sqlauthority.com/2013/05/19/blogging-best-practices-pluralsight-online-course-based-on-my-experience/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">1</slash:comments><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://1.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&amp;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content><feedburner:origLink>http://blog.sqlauthority.com/2013/05/19/blogging-best-practices-pluralsight-online-course-based-on-my-experience/</feedburner:origLink></item><item><title>SQL SERVER – Weekly Series – Memory Lane – #029</title><link>http://feedproxy.google.com/~r/SQLAuthority/~3/QK4O5Wuja5Q/</link><category>Memory Lane</category><category>PostADay</category><category>SQL</category><category>SQL Authority</category><category>SQL Query</category><category>SQL Server</category><category>SQL Tips and Tricks</category><category>T SQL</category><category>Technology</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">pinaldave</dc:creator><pubDate>Fri, 17 May 2013 18:30:33 PDT</pubDate><guid isPermaLink="false">http://blog.sqlauthority.com/?p=23590</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p style="text-align:justify;"><img class="alignleft" alt="" src="http://www.pinaldave.com/bimg/memorylane.jpg" width="200" height="129" />Here is the list of selected articles of SQLAuthority.com across all these years. Instead of just listing all the articles I have selected a few of my most favorite articles and have listed them here with additional notes below it. Let me know which one of the following is your favorite article from memory lane.</p>
<h3 style="text-align:justify;">2007</h3>
<p style="text-align:justify;"><strong><a href="http://blog.sqlauthority.com/2007/05/12/sql-server-2005-list-all-the-database/">List all the database</a><br />
</strong>A Simple script which list all the database from the server.</p>
<p style="text-align:justify;"><strong><a href="http://blog.sqlauthority.com/2007/05/13/sql-server-udf-function-to-parse-alphanumeric-characters-from-string/">Function to Parse AlphaNumeric Characters from String</a></strong><br />
Following function keeps only Alphanumeric characters in string and removes all the other character from the string. This is a very handy function when working with Alphanumeric String only. I have used this many times.</p>
<p style="text-align:justify;"><strong><a href="http://blog.sqlauthority.com/2007/05/13/sql-server-query-to-find-first-and-last-day-of-current-month/">Query to Find First and Last Day of Current Month</a></strong><br />
The blog contains the query, which will run respective on today’s date. It will return Last Day of Previous Month, First Day of Current Month, Today, Last Day of Previous Month and First Day of Next Month respective to current month.</p>
<p style="text-align:justify;"><strong><a href="http://blog.sqlauthority.com/2007/05/15/sql-server-binary-sequence-generator-truth-table-generator/">Binary Sequence Generator – Truth Table Generator</a></strong><br />
Run script from the blog in the query editor to generate truth table with its decimal value and binary sequence. The truth table is 512 rows long. This can be extended or reduced by adding or removing cross joins respectively.</p>
<p style="text-align:justify;"><strong><a href="http://blog.sqlauthority.com/2007/05/17/sql-server-disable-index-enable-index-alter-index/">Disable Index – Enable Index – ALTER Index</a></strong><br />
A straight to script blog where I demonstrate how to enable and disable index.</p>
<h3 style="text-align:justify;">2008</h3>
<p style="text-align:justify;"><strong><a href="http://blog.sqlauthority.com/2008/05/12/sql-server-sql-server-comparison-similarity-and-difference-temptable-vs-tempvariable-part-2/">SQL SERVER – Comparison : Similarity and Difference #TempTable vs @TempVariable – Part 2</a></strong><br />
There is lots of confusing going on about difference between TempTable and TempVariable. In this blog I take another attempt about how to find difference between TempTable and TempVariable.</p>
<p style="text-align:justify;"><a href="http://blog.sqlauthority.com/2008/05/18/sqlauthority-news-sql-server-database-administrator-job-description/"><strong>SQL SERVER Database Administrator Job Description</strong><br />
</a>I have received quite a lot of requests to update it or post something similar. Writing SQL Articles are easier than writing Job description for DBA. I have read many job description and job posting at <strong>Best SQL Jobs</strong> and found the following job description.<a href="http://blog.sqlauthority.com/2008/05/18/sqlauthority-news-sql-server-database-administrator-job-description/"><br />
</a></p>
<h3 style="text-align:justify;">2009</h3>
<p style="text-align:justify;">This year, I have attended my very first TechEd and presented very first session ever. Here is a photo with my wife Nupur at this event.</p>
<p style="text-align:justify;"><img class="alignnone" alt="" src="http://www.pinaldave.com/bimg/TechEdIn/DSC04022.jpg" width="500" height="375" /></p>
<p style="text-align:justify;"><strong><a href="http://blog.sqlauthority.com/2009/05/17/sql-server-how-to-drop-temp-table-check-existence-of-temp-table/">How to Drop Temp Table – Check Existence of Temp Table</a></strong><br />
A quick direct to script blog post.</p>
<h3 style="text-align:justify;">2010</h3>
<p style="text-align:justify;"><a href="http://blog.sqlauthority.com/2010/05/12/sql-server-understanding-alter-index-all-rebuild-with-disabled-clustered-index/"><strong>Understanding ALTER INDEX ALL REBUILD with Disabled Clustered Index</strong><br />
</a>The difference between ALTER INDEX ALL REBUILD and ALTER INDEX REBUILD along with the disabled clustered index. Instead of writing a big theory, we will go over the demo right away. Here are the steps that we intend to follow.</p>
<p style="text-align:justify;">1) Create Clustered and Non-clustered Index<br />
2) Disable Clustered and Non-clustered Index<br />
3) Enable – a) All Indexes, b) Clustered Index</p>
<p style="text-align:justify;"><strong><a href="http://blog.sqlauthority.com/2010/05/14/sql-server-find-most-expensive-queries-using-dmv/">Find Most Expensive Queries Using DMV</a></strong><br />
I was asked in recent query tuning consultation project, if I can share my script which I use to figure out which is the most expensive queries are running on SQL Server. This script is very basic and very simple, there are many different versions are available online.</p>
<p style="text-align:justify;"><a href="http://blog.sqlauthority.com/2010/05/15/sql-server-list-all-the-dmv-and-dmf-on-server/"><strong>List All the DMV and DMF on Server</strong><br />
</a>“How many DMVs and DVFs are there in SQL Server 2008?” – this question was asked to me in one of the recent SQL Server Trainings. The answer is very simple in this blog post.</p>
<h3 style="text-align:justify;">2011</h3>
<p style="text-align:justify;"><a href="http://blog.sqlauthority.com/2011/05/12/sql-server-import-csv-file-into-database-table-using-ssis/"><strong>Import CSV File into Database Table Using SSIS</strong><br />
</a>It is a very frequent request to upload CSV file to database or Import CSV file into a database. I have previously written an article how one can do this using T-SQL over here <strong><a href="http://blog.sqlauthority.com/2008/02/06/sql-server-import-csv-file-into-sql-server-using-bulk-insert-load-comma-delimited-file-into-sql-server/" target="_blank"> Import CSV File Into SQL Server Using Bulk Insert</a></strong>. One of the request which I quite often encounter is how I can do the same using SSIS package and automate it. Today we will understand the same using images.</p>
<p style="text-align:justify;"><strong><a href="http://blog.sqlauthority.com/2011/05/14/sqlauthority-news-restart-remote-computer-shutdown-remote-computer/">Restart Remote Computer – Shutdown Remote Computer</a></strong><br />
Here is a quick trick which I use almost everyday. I have more than one computer at my desk and I manage multiple instances from a single monitor. Some of my computers are in a different location and I have to physically walk there. In this blog post, I demonstrated a quick method where I can use CMD prompt to restart and shutdown remote computer.</p>
<h3 style="text-align:justify;">2012</h3>
<p style="text-align:justify;"><strong><a href="http://blog.sqlauthority.com/2012/05/14/sql-server-columnstore-index-and-sys-dm_db_index_usage_stats/">Columnstore Index and sys.dm_db_index_usage_stats</a></strong><br />
Regular SQL Server DMV does not give information for usage stats for columnstore indexes and for that one has to use different DMV. In this blog post I explain the same in detail with DMV script. I also describe my journey how I come across this DMV.</p>
<p style="text-align:justify;"><a href="http://blog.sqlauthority.com/2012/05/15/sql-server-get-schema-name-from-object-id-using-object_schema_name/"><strong>Get Schema Name from Object ID using OBJECT_SCHEMA_NAME</strong><br />
</a>Sometime a simple solution have even simpler solutions but we often do not practice it as we do not see the value in it or find it useful. Well, today’s blog post is also about something which I have seen not practiced much in codes. We are so much comfortable with an alternative usage that we do not feel like switching how we query the data.</p>
<p style="text-align:justify;"><a href="http://blog.sqlauthority.com/2012/05/16/sql-server-sql-in-sixty-seconds-5-videos-from-joes-2-pros-series-sql-exam-prep-series-70-433/"><strong>SQL in Sixty Seconds – 5 Videos from Joes 2 Pros Series</strong><br />
</a>Here are the five videos which Rick and I have built for Joes 2 Pros series.</p>
<p style="text-align:justify;"><span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='500' height='312' src='http://www.youtube.com/embed/0g61qFIOL0o?version=3&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' frameborder='0'></iframe></span></p>
<p style="text-align:justify;"><span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='500' height='312' src='http://www.youtube.com/embed/fPjOhr3b5Pk?version=3&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' frameborder='0'></iframe></span></p>
<p style="text-align:justify;"><span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='500' height='312' src='http://www.youtube.com/embed/0GTeUHkdZtc?version=3&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' frameborder='0'></iframe></span></p>
<p style="text-align:justify;"><span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='500' height='312' src='http://www.youtube.com/embed/fbOGQlkFVqI?version=3&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' frameborder='0'></iframe></span></p>
<p style="text-align:justify;"><span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='500' height='312' src='http://www.youtube.com/embed/NnaTqgyJGyU?version=3&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' frameborder='0'></iframe></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/memory-lane/'>Memory Lane</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/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/23590/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/23590/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&#038;blog=668536&#038;post=23590&#038;subd=sqlauthority&#038;ref=&#038;feed=1" width="1" height="1" /><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=QK4O5Wuja5Q:ufC61CAJbU4:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=QK4O5Wuja5Q:ufC61CAJbU4:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=QK4O5Wuja5Q:ufC61CAJbU4:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=l6gmwiTKsz0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=QK4O5Wuja5Q:ufC61CAJbU4:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?i=QK4O5Wuja5Q:ufC61CAJbU4:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/SQLAuthority/~4/QK4O5Wuja5Q" height="1" width="1"/>]]></content:encoded><description>Here is the list of selected articles of SQLAuthority.com across all these years. Instead of just listing all the articles I have selected a few of my most favorite articles and have listed them here with additional notes below it. Let me know which one of the following is your favorite article from memory lane. [&amp;#8230;]&lt;img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;#038;blog=668536&amp;#038;post=23590&amp;#038;subd=sqlauthority&amp;#038;ref=&amp;#038;feed=1" width="1" height="1" /&gt;</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blog.sqlauthority.com/2013/05/18/sql-server-weekly-series-memory-lane-029/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">0</slash:comments><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://1.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&amp;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://www.pinaldave.com/bimg/memorylane.jpg" medium="image" /><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://www.pinaldave.com/bimg/TechEdIn/DSC04022.jpg" medium="image" /><feedburner:origLink>http://blog.sqlauthority.com/2013/05/18/sql-server-weekly-series-memory-lane-029/</feedburner:origLink></item><item><title>SQL SERVER – Solution to Puzzle – REPLICATE over 8000 Characters</title><link>http://feedproxy.google.com/~r/SQLAuthority/~3/0QCCm-QXHR0/</link><category>PostADay</category><category>SQL</category><category>SQL Authority</category><category>SQL Function</category><category>SQL Puzzle</category><category>SQL Query</category><category>SQL Server</category><category>SQL Tips and Tricks</category><category>T SQL</category><category>Technology</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">pinaldave</dc:creator><pubDate>Thu, 16 May 2013 18:30:31 PDT</pubDate><guid isPermaLink="false">http://blog.sqlauthority.com/?p=23736</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p style="text-align:justify;">Earlier this week, I asked a puzzle about how REPLICATE works with 8000 and over 8000 characters. I strongly suggest to read the original blog post where I have described the problem in detail <strong><a title="Permanent Link to SQL SERVER – Puzzle and Answer – REPLICATE over 8000 Characters" href="http://blog.sqlauthority.com/2013/05/13/sql-server-puzzle-and-answer-replicate-over-8000-characters/" rel="bookmark">SQL SERVER Puzzle – REPLICATE over 8000 Characters</a></strong>.</p>
<p style="text-align:justify;">Just quick to summarize the puzzle. Here is the quick recap of the same.</p>
<p style="text-align:justify;">Now let us run following script.</p>
<p style="text-align:justify;"><code style="font-size:12px;"><span style="color:blue;">DECLARE </span><span style="color:#434343;">@FirstString </span><span style="color:blue;">VARCHAR</span><span style="color:gray;"><span class="GINGER_SOFATWARE_correct">(</span></span><span style="color:magenta;">MAX</span><span style="color:gray;">)<br />
</span><span style="color:blue;">DECLARE </span><span style="color:#434343;">@SecondString </span><span style="color:blue;">VARCHAR</span><span style="color:gray;"><span class="GINGER_SOFATWARE_correct">(</span></span><span style="color:magenta;">MAX</span><span style="color:gray;">)<br />
</span><span style="color:blue;">DECLARE </span><span style="color:#434343;">@ThirdString </span><span style="color:blue;">VARCHAR</span><span style="color:gray;"><span class="GINGER_SOFATWARE_correct">(</span></span><span style="color:magenta;">MAX</span><span style="color:gray;">)<br />
</span><span style="color:blue;">SET </span><span style="color:#434343;">@FirstString </span><span style="color:blue;">= </span><span style="color:magenta;">REPLICATE</span><span style="color:gray;"><span class="GINGER_SOFATWARE_correct">(</span></span><span style="color:red;">'A'</span><span style="color:gray;"><span class="GINGER_SOFATWARE_correct">,</span></span><span style="color:black;">4000</span><span style="color:gray;">)<br />
</span><span style="color:blue;">SELECT </span><span style="color:magenta;">LEN</span><span style="color:gray;"><span class="GINGER_SOFATWARE_correct">(</span></span><span style="color:#434343;">@FirstString</span><span style="color:gray;">) </span><span style="color:black;">LenFirstString</span><span style="color:gray;">;<br />
</span><span style="color:blue;">SET </span><span style="color:#434343;">@SecondString </span><span style="color:blue;">= </span><span style="color:magenta;">REPLICATE</span><span style="color:gray;"><span class="GINGER_SOFATWARE_correct">(</span></span><span style="color:red;">'B'</span><span style="color:gray;"><span class="GINGER_SOFATWARE_correct">,</span></span><span style="color:black;">8000</span><span style="color:gray;">)<br />
</span><span style="color:blue;">SELECT </span><span style="color:magenta;">LEN</span><span style="color:gray;"><span class="GINGER_SOFATWARE_correct">(</span></span><span style="color:#434343;">@SecondString</span><span style="color:gray;">) </span><span style="color:black;">LenSecondString</span><span style="color:gray;">;<br />
</span><span style="color:blue;">SET </span><span style="color:#434343;">@ThirdString </span><span style="color:blue;">= </span><span style="color:magenta;">REPLICATE</span><span style="color:gray;"><span class="GINGER_SOFATWARE_correct">(</span></span><span style="color:red;">'C'</span><span style="color:gray;"><span class="GINGER_SOFATWARE_correct">,</span></span><span style="color:black;">11000</span><span style="color:gray;">)<br />
</span><span style="color:blue;">SELECT </span><span style="color:magenta;">LEN</span><span style="color:gray;"><span class="GINGER_SOFATWARE_correct">(</span></span><span style="color:#434343;">@ThirdString</span><span style="color:gray;">) </span><span style="color:black;">LenThirdString</span><span style="color:gray;">;</span></code></p>
<p style="text-align:justify;">The script above will return following result:</p>
<p style="text-align:justify;"><img class="alignnone" alt="" src="http://www.pinaldave.com/bimg/replicatepuz2.jpg" width="500" height="500" /></p>
<h3 style="text-align:justify;"><strong>Quiz 1:</strong></h3>
<p style="text-align:justify;">Pay attention to the last resultant and you will notice that the length of the @ThirdString is only 8000. WHY?</p>
<h3 style="text-align:justify;">Answer 1:</h3>
<p style="text-align:justify;">The reason for the same is that if the first parameter of the REPLICATE function is not of type varchar<span class="GINGER_SOFATWARE_correct">(</span>max) or nvarchar<span class="GINGER_SOFATWARE_correct">(</span>max), REPLICATE truncates the return value at 8,000 bytes. To return values greater than 8,000 bytes, the first parameter must be explicitly cast to the appropriate varchar<span class="GINGER_SOFATWARE_correct">(</span>max) or nvarchar<span class="GINGER_SOFATWARE_correct">(</span>max).</p>
<h3 style="text-align:justify;"><strong>Quiz 2:</strong></h3>
<p style="text-align:justify;">What changes I should do in the REPLICATE function so it will give the appropriate result in the case of @ThirdString. In our case, it should return the value of <strong>11000</strong> and not 8000.</p>
<p style="text-align:justify;"><strong>Answer 2:</strong></p>
<p style="text-align:justify;">To return the result as 11000, one has to just CAST or CONVERT the first parameters to VARCHAR<span class="GINGER_SOFATWARE_correct">(</span>MAX) or NVARCHAR<span class="GINGER_SOFATWARE_correct">(</span>MAX). Here is the example of the same.</p>
<p><code style="font-size:12px;"><span style="color:blue;">DECLARE </span><span style="color:#434343;">@ThirdString </span><span style="color:blue;">VARCHAR</span><span style="color:gray;"><span class="GINGER_SOFATWARE_correct">(</span></span><span style="color:magenta;">MAX</span><span style="color:gray;">)<br />
</span><span style="color:blue;">SET </span><span style="color:#434343;">@ThirdString </span><span style="color:blue;">= </span><span style="color:magenta;">REPLICATE</span><span style="color:gray;"><span class="GINGER_SOFATWARE_correct">(</span></span><span style="color:magenta;">CONVERT</span><span style="color:gray;"><span class="GINGER_SOFATWARE_correct">(</span></span><span style="color:blue;">VARCHAR</span><span style="color:gray;"><span class="GINGER_SOFATWARE_correct">(</span></span><span style="color:magenta;">MAX</span><span style="color:gray;">),</span><span style="color:red;">'C'</span><span style="color:gray;">)<span class="GINGER_SOFATWARE_correct">,</span></span><span style="color:black;">11000</span><span style="color:gray;">)<br />
</span><span style="color:blue;">SELECT </span><span style="color:magenta;">LEN</span><span style="color:gray;"><span class="GINGER_SOFATWARE_correct">(</span></span><span style="color:#434343;">@ThirdString</span><span style="color:gray;">) </span><span style="color:black;">LenThirdString</span><span style="color:gray;">;</span></code></p>
<p>Now let us see the result set.</p>
<p><img class="alignnone" alt="" src="http://www.pinaldave.com/bimg/replicate8000.jpg" width="605" height="202" /></p>
<h3 style="text-align:justify;">DB Optimizer</h3>
<p style="text-align:justify;">One last thing: Do not forget to download <strong><a href="http://bit.ly/emb-apr-13" target="_blank">DB Optimizer XE3.5 Pro</a></strong>. It is my favorite tool for performance tuning.</p>
<p style="text-align:justify;">If you notice that this was not very difficult puzzle but it was interesting for sure. There are so many valid answers that it will be not possible to name every single person. I strongly encourage all of you to go over the <strong><a href="http://blog.sqlauthority.com/2013/05/13/sql-server-puzzle-and-answer-replicate-over-8000-characters/" target="_blank">original blog post</a></strong> and read all the comments. Though all the comments are very similar there are so many new information there that I will say wealth of information just right there in the comments area.</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-function/'>SQL Function</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/23736/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/23736/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&#038;blog=668536&#038;post=23736&#038;subd=sqlauthority&#038;ref=&#038;feed=1" width="1" height="1" /><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=0QCCm-QXHR0:gKlcD-BzFFU:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=0QCCm-QXHR0:gKlcD-BzFFU:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=0QCCm-QXHR0:gKlcD-BzFFU:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=l6gmwiTKsz0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=0QCCm-QXHR0:gKlcD-BzFFU:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?i=0QCCm-QXHR0:gKlcD-BzFFU:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/SQLAuthority/~4/0QCCm-QXHR0" height="1" width="1"/>]]></content:encoded><description>Earlier this week, I asked a puzzle about how REPLICATE works with 8000 and over 8000 characters. I strongly suggest to read the original blog post where I have described the problem in detail SQL SERVER Puzzle – REPLICATE over 8000 Characters. Just quick to summarize the puzzle. Here is the quick recap of the same. Now [&amp;#8230;]&lt;img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;#038;blog=668536&amp;#038;post=23736&amp;#038;subd=sqlauthority&amp;#038;ref=&amp;#038;feed=1" width="1" height="1" /&gt;</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blog.sqlauthority.com/2013/05/17/sql-server-solution-to-puzzle-replicate-over-8000-characters/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">2</slash:comments><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://1.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&amp;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://www.pinaldave.com/bimg/replicatepuz2.jpg" medium="image" /><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://www.pinaldave.com/bimg/replicate8000.jpg" medium="image" /><feedburner:origLink>http://blog.sqlauthority.com/2013/05/17/sql-server-solution-to-puzzle-replicate-over-8000-characters/</feedburner:origLink></item><item><title>SQLAuthority News – 2500 Blog Posts, 2 Million Views per month, 62 Million Total Views</title><link>http://feedproxy.google.com/~r/SQLAuthority/~3/qQGLfa3Flz0/</link><category>About Me</category><category>PostADay</category><category>SQL</category><category>SQL Authority</category><category>SQL Query</category><category>SQL Server</category><category>SQL Tips and Tricks</category><category>SQLAuthority News</category><category>T SQL</category><category>sql milestone</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">pinaldave</dc:creator><pubDate>Wed, 15 May 2013 18:30:24 PDT</pubDate><guid isPermaLink="false">http://blog.sqlauthority.com/?p=23716</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p style="text-align:justify;">Today, I am very happy as the journey I started almost 6.5 years ago has very important milestone. I have stopped blogging about my milestone for a long time as I believe that was just taking up the space <span class="GINGER_SOFATWARE_correct">in</span> my blog and was not providing any useful information. However, today is a special day. This is my 2500th blog post and now the next 2500th blog post will come after many years.</p>
<p style="text-align:justify;">When I started this blog I had no idea that I will be blogging after more than 6 years and I will ever reach to 2500th blog post. It was all just started as my personal bookmark. I was expecting that I will be a single reader of this blog and had no idea for a long time that even other people can read my blog as well. Once the very first comment appeared everything was just new world for me.</p>
<p style="text-align:justify;"><a href="http://www.pinaldave.com/bimg/2500post.jpg"><img class="alignnone" alt="" src="http://www.pinaldave.com/bimg/2500post.jpg" width="1095" height="427" /></a></p>
<p style="text-align:justify;">I never thought I would be able to engage with so many people from all over the world. I initially thought my blog will be majorly read by Indians as India has largest population but I am delighted to see that there is a balance among continents. As of today, this blog is the most read in USA and second place is India. Thank you readers from all over the world to support me  in spreading the knowledge.</p>
<p><div class="wp-caption alignnone" style="width: 979px"><a href="http://www.pinaldave.com/bimg/worldstats.jpg"><img alt="" src="http://www.pinaldave.com/bimg/worldstats.jpg" width="969" height="525" /></a><p class="wp-caption-text">Click to Enlarge</p></div>
<p style="text-align:justify;">Another interesting and important detail is that I have been receiving over 2,000,000 views per month consistently every month. I never thought so many IT Professional would be reading this blog. When I see this 2 million number, I wonder often about readers.</p>
<p style="text-align:justify;"><a href="http://www.pinaldave.com/bimg/sitestats201305.jpg"><img class="alignnone" title="Click to Enlarge" alt="" src="http://www.pinaldave.com/bimg/sitestats201305.jpg" width="1156" height="362" /></a></p>
<p style="text-align:justify;">If you are my blog reader, I would like to know you, would you please tell me who you are and why do you visit this blog? I encourage all you to leave a comment in the comments section. <span style="color:#ff0000;"><strong>On this 2500th blog post, I will select random 10 readers and will send them surprise educational gift.</strong></span></p>
<h3 style="text-align:justify;">Online Course on how to Build a Successful Blog</h3>
<p style="text-align:justify;">I am often asked what are the best practices to build a successful blog. I have built a video course on the topic of How to build a successful blog. </p>
<p style="text-align:justify;">Watch the teaser of this course.</p>
<p style="text-align:justify;"><span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='500' height='312' src='http://www.youtube.com/embed/12p4j4Ht8os?version=3&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' frameborder='0'></iframe></span></p>
<p style="text-align:justify;">Here are few of the topics which I am covering in the course:</p>
<ul style="text-align:justify;">
<li><span style="line-height:13px;">Blogging – Concepts, Ideas And Motives</span></li>
<li><span style="line-height:13px;">Getting Started With Blogging</span></li>
<li><span style="line-height:13px;">Writing An Interesting Blog</span></li>
<li><span style="line-height:13px;">Blogging Rules, Ethics And Etiquette</span></li>
<li><span style="line-height:13px;">Frequently Asked Questions</span></li>
<li><span style="line-height:13px;">Checklist For Building Successful Blog</span></li>
</ul>
<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/about-me/'>About Me</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/sqlauthority/sqlauthority-news/'>SQLAuthority News</a>, <a href='http://blog.sqlauthority.com/category/technology/t-sql/'>T SQL</a> Tagged: <a href='http://blog.sqlauthority.com/tag/sql-milestone/'>sql milestone</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/23716/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/23716/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&#038;blog=668536&#038;post=23716&#038;subd=sqlauthority&#038;ref=&#038;feed=1" width="1" height="1" /><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=qQGLfa3Flz0:SyUEqNw9HZo:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=qQGLfa3Flz0:SyUEqNw9HZo:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=qQGLfa3Flz0:SyUEqNw9HZo:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=l6gmwiTKsz0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=qQGLfa3Flz0:SyUEqNw9HZo:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?i=qQGLfa3Flz0:SyUEqNw9HZo:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/SQLAuthority/~4/qQGLfa3Flz0" height="1" width="1"/>]]></content:encoded><description>Today, I am very happy as the journey I started almost 6.5 years ago has very important milestone. I have stopped blogging about my milestone for a long time as I believe that was just taking up the space in my blog and was not providing any useful information. However, today is a special day. [&amp;#8230;]&lt;img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;#038;blog=668536&amp;#038;post=23716&amp;#038;subd=sqlauthority&amp;#038;ref=&amp;#038;feed=1" width="1" height="1" /&gt;</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blog.sqlauthority.com/2013/05/16/sqlauthority-news-2500-blog-posts-2-million-views-per-month-62-million-total-views/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">117</slash:comments><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://1.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&amp;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://www.pinaldave.com/bimg/2500post.jpg" medium="image" /><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://www.pinaldave.com/bimg/worldstats.jpg" medium="image" /><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://www.pinaldave.com/bimg/sitestats201305.jpg" medium="image">
			<media:title type="html">Click to Enlarge</media:title>
		</media:content><feedburner:origLink>http://blog.sqlauthority.com/2013/05/16/sqlauthority-news-2500-blog-posts-2-million-views-per-month-62-million-total-views/</feedburner:origLink></item><item><title>SQL SERVER – SQL Puzzle of SET ANSI_NULL – Win USD 50 worth Amazon Gift Cards and Bubble Copter R/C</title><link>http://feedproxy.google.com/~r/SQLAuthority/~3/ei-JKWE4xaI/</link><category>PostADay</category><category>SQL</category><category>SQL Authority</category><category>SQL Puzzle</category><category>SQL Query</category><category>SQL Server</category><category>SQL Tips and Tricks</category><category>SQLAuthority News</category><category>T SQL</category><category>Technology</category><category>NuoDB</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">pinaldave</dc:creator><pubDate>Tue, 14 May 2013 18:30:03 PDT</pubDate><guid isPermaLink="false">http://blog.sqlauthority.com/?p=23627</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p style="text-align:justify;">We all love puzzles and here <span class="GINGER_SOFATWARE_correct">is</span> interesting puzzle which you can play with me and win Amazon Gift Cards and Bubble Copter R/C. The contest for Amazon Gift Card is open worldwide, however, Bubble Copter winner will be chosen from <strong>USA</strong> only.</p>
<p style="text-align:justify;">First run following script:</p>
<p style="text-align:justify;"><code style="font-size:12px;"><span style="color:blue;">SET </span><span style="color:black;">ANSI_NULLS </span><span style="color:blue;">ON</span><span style="color:gray;">;<br />
</span><span style="color:green;">-- Query1<br />
</span><span style="color:blue;">SELECT </span><span style="color:red;">'SQLAuthority' </span><span style="color:blue;">AS </span><span style="color:black;">Statement11<br />
</span><span style="color:blue;">WHERE </span><span style="color:red;">'Authority' </span><span style="color:blue;">IN </span><span style="color:gray;">(</span><span style="color:red;">'S'</span><span style="color:gray;">,</span><span style="color:red;">'Q'</span><span style="color:gray;">, </span><span style="color:red;">'L'</span><span style="color:gray;">, </span><span style="color:red;">'Authority'</span><span style="color:gray;">, NULL);<br />
</span><span style="color:green;">-- Query 2<br />
</span><span style="color:blue;">SELECT </span><span style="color:red;">'SQLAuthority' </span><span style="color:blue;">AS </span><span style="color:black;">Statement12<br />
</span><span style="color:blue;">WHERE </span><span style="color:red;">'Authority' </span><span style="color:gray;">NOT </span><span style="color:blue;">IN </span><span style="color:gray;">(</span><span style="color:red;">'S'</span><span style="color:gray;">,</span><span style="color:red;">'Q'</span><span style="color:gray;">, </span><span style="color:red;">'L'</span><span style="color:gray;">, NULL);</span></code></p>
<p style="text-align:justify;">You will get <span class="GINGER_SOFATWARE_correct">following result</span>:</p>
<p style="text-align:justify;"><img class="alignnone" alt="" src="http://www.pinaldave.com/bimg/emptyresult.jpg" width="500" height="407" /></p>
<p style="text-align:justify;">You can clearly see that in the first case we are getting different results. Here are the questions you need to answer to win the Amazon Gift Cards and Bubble Copter R/C.</p>
<p style="text-align:justify;">There are two steps to take participate in the contest:</p>
<h3 style="text-align:justify;">Step 1: Answer the Question</h3>
<p style="text-align:justify;">Question: Why do Query 1 return results but Query 2 does not return any result?</p>
<p style="text-align:justify;">Answer this question in comments area along with the question in Step2.</p>
<h3 style="text-align:justify;">Step 2: Identify File Size</h3>
<p style="text-align:justify;">Question: What <span class="GINGER_SOFATWARE_correct">is the size of the <a href="http://bit.ly/devart-contest-may13" target="_blank"><b>DevArt Schema Compare</b></a></span><b></b> installation file in <strong>KB</strong>? Please leave a note in the comment area.</p>
<p style="text-align:justify;">Please note the size of the file should be KB and not in MB. You can download the file from <strong><a href="http://bit.ly/devart-contest-may13" target="_blank">here</a></strong>.</p>
<h3 style="text-align:justify;">Giveaway:</h3>
<ul style="text-align:justify;">
<li><span style="line-height:13px;">2 lucky winners will get <strong>USD 25 worth Amazon Gift Card</strong> (Open worldwide, Total giveaway value USD 250)</span></li>
<li>One lucky winner fro<span style="color:#000000;">m </span><strong><span style="color:#ff0000;"><span class="GINGER_SOFATWARE_correct">USA</span> </span></strong>will get  <a href="http://www.thinkgeek.com/product/1118/?pfm=geektoys_newest_1118_7" target="_blank"><strong>Bubble Copter R/C</strong></a> (Shipping from USA to other countries is not possible)</li>
</ul>
<p style="text-align:justify;"><img class="alignnone" alt="" src="http://www.pinaldave.com/bimg/wincopteramazon.jpg" width="500" /></p>
<h3 style="text-align:justify;">Rules and Conditions:</h3>
<ul style="text-align:justify;">
<li><span style="line-height:13px;">Contest open till May 25 12:00 GMT. </span></li>
<li>Please leave your answer in the comment area in following format:
<ul>
<li>Answer to Q1:</li>
<li>Answer to Q2:</li>
</ul>
</li>
<li>Please note that winner will be selected after May 25th by random selection and will be posted as a comment to this blog.</li>
<li>The answers will be kept hidden till the winner will be announced to have fair competition.</li>
</ul>
<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-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/sqlauthority/sqlauthority-news/'>SQLAuthority News</a>, <a href='http://blog.sqlauthority.com/category/technology/t-sql/'>T SQL</a>, <a href='http://blog.sqlauthority.com/category/technology/'>Technology</a> Tagged: <a href='http://blog.sqlauthority.com/tag/nuodb/'>NuoDB</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/23627/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/23627/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&#038;blog=668536&#038;post=23627&#038;subd=sqlauthority&#038;ref=&#038;feed=1" width="1" height="1" /><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=ei-JKWE4xaI:32by5e_mRl4:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=ei-JKWE4xaI:32by5e_mRl4:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=ei-JKWE4xaI:32by5e_mRl4:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=l6gmwiTKsz0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=ei-JKWE4xaI:32by5e_mRl4:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?i=ei-JKWE4xaI:32by5e_mRl4:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/SQLAuthority/~4/ei-JKWE4xaI" height="1" width="1"/>]]></content:encoded><description>We all love puzzles and here is interesting puzzle which you can play with me and win Amazon Gift Cards and Bubble Copter R/C. The contest for Amazon Gift Card is open worldwide, however, Bubble Copter winner will be chosen from USA only. First run following script: SET ANSI_NULLS ON; -- Query1 SELECT 'SQLAuthority' AS Statement11 [&amp;#8230;]&lt;img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;#038;blog=668536&amp;#038;post=23627&amp;#038;subd=sqlauthority&amp;#038;ref=&amp;#038;feed=1" width="1" height="1" /&gt;</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blog.sqlauthority.com/2013/05/15/sql-server-sql-puzzle-of-set-ansi_null-win-usd-250-worth-amazon-gift-cards-and-bubble-copter-rc/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">7</slash:comments><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://1.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&amp;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://www.pinaldave.com/bimg/emptyresult.jpg" medium="image" /><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://www.pinaldave.com/bimg/wincopteramazon.jpg" medium="image" /><feedburner:origLink>http://blog.sqlauthority.com/2013/05/15/sql-server-sql-puzzle-of-set-ansi_null-win-usd-250-worth-amazon-gift-cards-and-bubble-copter-rc/</feedburner:origLink></item><item><title>SQL SERVER – How to use xp_sscanf in Real World Scenario?</title><link>http://feedproxy.google.com/~r/SQLAuthority/~3/5q25rlxg0Cc/</link><category>PostADay</category><category>SQL</category><category>SQL Authority</category><category>SQL Puzzle</category><category>SQL Query</category><category>SQL Server</category><category>SQL Tips and Tricks</category><category>T SQL</category><category>Technology</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">pinaldave</dc:creator><pubDate>Mon, 13 May 2013 18:30:55 PDT</pubDate><guid isPermaLink="false">http://blog.sqlauthority.com/?p=23726</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p style="text-align:justify;">I need your help. I recently came across extended stored procedure xp_sscanf. After reading a lot about it and searching online, I could not figure out how and where in real world, I will use this function.</p>
<p style="text-align:justify;">Microsoft documentations suggest that this extended stored procedure <em><strong>reads data from the string into the argument locations specified by each format argument</strong></em>. I still do not get it. I know it is very similar to C function but again I am not sure where in the real world I will use this function. Here is the demonstration of how this function works.</p>
<p style="text-align:justify;">Following example is an enhanced version of the example provided on <a href="http://msdn.microsoft.com/en-IN/library/ms181431(v=sql.110).aspx" target="_blank">MSDN</a>.</p>
<p style="text-align:justify;"><code style="font-size:12px;"><span style="color:blue;">DECLARE </span><span style="color:#434343;">@valueb </span><span style="color:blue;">VARCHAR</span><span style="color:gray;">(</span><span style="color:black;">20</span><span style="color:gray;">), </span><span style="color:#434343;">@filename </span><span style="color:blue;">VARCHAR</span><span style="color:gray;">(</span><span style="color:black;">20</span><span style="color:gray;">), </span><span style="color:#434343;">@message </span><span style="color:blue;">VARCHAR</span><span style="color:gray;">(</span><span style="color:black;">20</span><span style="color:gray;">)<br />
</span><span style="color:blue;">EXEC </span><span style="color:darkred;">xp_sscanf </span><span style="color:red;">'sync -b123 -fauthors10.tmp -rrandom'</span><span style="color:gray;">, </span><span style="color:red;">'sync -b%s -f%s -r%s'</span><span style="color:gray;">,<br />
</span><span style="color:#434343;">@valueb </span><span style="color:black;">OUTPUT</span><span style="color:gray;">, </span><span style="color:#434343;">@filename </span><span style="color:black;">OUTPUT</span><span style="color:gray;">, </span><span style="color:#434343;">@message </span><span style="color:black;">OUTPUT<br />
</span><span style="color:blue;">SELECT </span><span style="color:#434343;">@valueb</span><span style="color:gray;">, </span><span style="color:#434343;">@filename</span><span style="color:gray;">, </span><span style="color:#434343;">@message</span></code></p>
<p style="text-align:justify;">The above query will return us following result:</p>
<pre>-------------------- -------------------- --------------------
123                  authors10.tmp        random</pre>
<p style="text-align:justify;">Here is the result set.</p>
<p style="text-align:justify;"><img class="alignnone" alt="" src="http://www.pinaldave.com/bimg/xp_sscanf.jpg" width="803" height="243" /></p>
<p style="text-align:justify;">You can see how xp_sscanf retrieves the parameters from the string and returns as an output. However, I am still not sure where I will use this feature in real world scenarios. Any insight and or guidance will be helpful.</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-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/23726/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/23726/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&#038;blog=668536&#038;post=23726&#038;subd=sqlauthority&#038;ref=&#038;feed=1" width="1" height="1" /><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=5q25rlxg0Cc:nJSz67nOw_I:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=5q25rlxg0Cc:nJSz67nOw_I:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=5q25rlxg0Cc:nJSz67nOw_I:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=l6gmwiTKsz0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=5q25rlxg0Cc:nJSz67nOw_I:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?i=5q25rlxg0Cc:nJSz67nOw_I:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/SQLAuthority/~4/5q25rlxg0Cc" height="1" width="1"/>]]></content:encoded><description>I need your help. I recently came across extended stored procedure xp_sscanf. After reading a lot about it and searching online, I could not figure out how and where in real world, I will use this function. Microsoft documentations suggest that this extended stored procedure reads data from the string into the argument locations specified [&amp;#8230;]&lt;img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;#038;blog=668536&amp;#038;post=23726&amp;#038;subd=sqlauthority&amp;#038;ref=&amp;#038;feed=1" width="1" height="1" /&gt;</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blog.sqlauthority.com/2013/05/14/sql-server-how-to-use-xp_sscanf-in-real-world-scenario/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">6</slash:comments><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://1.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&amp;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://www.pinaldave.com/bimg/xp_sscanf.jpg" medium="image" /><feedburner:origLink>http://blog.sqlauthority.com/2013/05/14/sql-server-how-to-use-xp_sscanf-in-real-world-scenario/</feedburner:origLink></item><item><title>SQL SERVER – Puzzle and Answer – REPLICATE over 8000 Characters</title><link>http://feedproxy.google.com/~r/SQLAuthority/~3/Hdm1dtlnTac/</link><category>PostADay</category><category>SQL</category><category>SQL Authority</category><category>SQL Function</category><category>SQL Puzzle</category><category>SQL Query</category><category>SQL Server</category><category>SQL Tips and Tricks</category><category>T SQL</category><category>Technology</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">pinaldave</dc:creator><pubDate>Sun, 12 May 2013 18:30:57 PDT</pubDate><guid isPermaLink="false">http://blog.sqlauthority.com/?p=23681</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p style="text-align:justify;">It has been a long time since we have played a puzzle over this blog. This Monday, let us play a quick puzzle.</p>
<p style="text-align:justify;">SQL Server have REPLICATE function which will replicate the string passed as many as times as the second parameter. For example execute following string.</p>
<p style="text-align:justify;"><code style="font-size:12px;"><span style="color:blue;">SELECT </span><span style="color:red;">'Ha'</span><span style="color:gray;">+</span><span style="color:magenta;">REPLICATE</span><span style="color:gray;">(</span><span style="color:red;">'ha'</span><span style="color:gray;">,</span><span style="color:black;">20</span><span style="color:gray;">)</span></code></p>
<p style="text-align:justify;">The script above will return following result:</p>
<div class="wp-caption alignnone" style="width: 420px"><img alt="" src="http://www.pinaldave.com/bimg/replicatepuz1.jpg" width="410" height="140" /><p class="wp-caption-text">`</p></div>
<p style="text-align:justify;">You can notice that it has returned a string <em>ha</em> about 20 times after first <em>Ha</em>.</p>
<p style="text-align:justify;">Now let us run following script.</p>
<p style="text-align:justify;"><code style="font-size:12px;"><span style="color:blue;">DECLARE </span><span style="color:#434343;">@FirstString </span><span style="color:blue;">VARCHAR</span><span style="color:gray;">(</span><span style="color:magenta;">MAX</span><span style="color:gray;">)<br />
</span><span style="color:blue;">DECLARE </span><span style="color:#434343;">@SecondString </span><span style="color:blue;">VARCHAR</span><span style="color:gray;">(</span><span style="color:magenta;">MAX</span><span style="color:gray;">)<br />
</span><span style="color:blue;">DECLARE </span><span style="color:#434343;">@ThirdString </span><span style="color:blue;">VARCHAR</span><span style="color:gray;">(</span><span style="color:magenta;">MAX</span><span style="color:gray;">)<br />
</span><span style="color:blue;">SET </span><span style="color:#434343;">@FirstString </span><span style="color:blue;">= </span><span style="color:magenta;">REPLICATE</span><span style="color:gray;">(</span><span style="color:red;">'A'</span><span style="color:gray;">,</span><span style="color:black;">4000</span><span style="color:gray;">)<br />
</span><span style="color:blue;">SELECT </span><span style="color:magenta;">LEN</span><span style="color:gray;">(</span><span style="color:#434343;">@FirstString</span><span style="color:gray;">) </span><span style="color:black;">LenFirstString</span><span style="color:gray;">;<br />
</span><span style="color:blue;">SET </span><span style="color:#434343;">@SecondString </span><span style="color:blue;">= </span><span style="color:magenta;">REPLICATE</span><span style="color:gray;">(</span><span style="color:red;">'B'</span><span style="color:gray;">,</span><span style="color:black;">8000</span><span style="color:gray;">)<br />
</span><span style="color:blue;">SELECT </span><span style="color:magenta;">LEN</span><span style="color:gray;">(</span><span style="color:#434343;">@SecondString</span><span style="color:gray;">) </span><span style="color:black;">LenSecondString</span><span style="color:gray;">;<br />
</span><span style="color:blue;">SET </span><span style="color:#434343;">@ThirdString </span><span style="color:blue;">= </span><span style="color:magenta;">REPLICATE</span><span style="color:gray;">(</span><span style="color:red;">'C'</span><span style="color:gray;">,</span><span style="color:black;">11000</span><span style="color:gray;">)<br />
</span><span style="color:blue;">SELECT </span><span style="color:magenta;">LEN</span><span style="color:gray;">(</span><span style="color:#434343;">@ThirdString</span><span style="color:gray;">) </span><span style="color:black;">LenThirdString</span><span style="color:gray;">;</span></code></p>
<p style="text-align:justify;">The script above will return following result:</p>
<p style="text-align:justify;"><img class="alignnone" alt="" src="http://www.pinaldave.com/bimg/replicatepuz2.jpg" width="500" height="500" /></p>
<h3 style="text-align:justify;"><strong>Quiz 1:</strong></h3>
<p style="text-align:justify;">Pay attention to the last resultant and you will notice that the length of the @ThirdString is only 8000. WHY?</p>
<p style="text-align:justify;">Here is the second part of the Quiz.</p>
<h3 style="text-align:justify;"><strong>Quiz 2:</strong></h3>
<p style="text-align:justify;">What changes I should do in the REPLICATE function so it will give the appropriate result in the case of @ThirdString. In our case, it should return the value of <strong>11000</strong> and not 8000.</p>
<h3 style="text-align:justify;">DB Optimizer</h3>
<p style="text-align:justify;">One last thing: Do not forget to download <strong><a href="http://bit.ly/emb-apr-13" target="_blank">DB Optimizer XE3.5 Pro</a></strong>. It is my favorite tool for performance tuning.</p>
<p style="text-align:justify;">Please leave a comment with your answer. I will publish the answer to this puzzle on coming Friday&#8217;s blog post and will mention the names of the all the valid users.</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-function/'>SQL Function</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/23681/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/23681/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&#038;blog=668536&#038;post=23681&#038;subd=sqlauthority&#038;ref=&#038;feed=1" width="1" height="1" /><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=Hdm1dtlnTac:lOpnvhQs98U:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=Hdm1dtlnTac:lOpnvhQs98U:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=Hdm1dtlnTac:lOpnvhQs98U:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=l6gmwiTKsz0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=Hdm1dtlnTac:lOpnvhQs98U:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?i=Hdm1dtlnTac:lOpnvhQs98U:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/SQLAuthority/~4/Hdm1dtlnTac" height="1" width="1"/>]]></content:encoded><description>It has been a long time since we have played a puzzle over this blog. This Monday, let us play a quick puzzle. SQL Server have REPLICATE function which will replicate the string passed as many as times as the second parameter. For example execute following string. SELECT 'Ha'+REPLICATE('ha',20) The script above will return following result: [&amp;#8230;]&lt;img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;#038;blog=668536&amp;#038;post=23681&amp;#038;subd=sqlauthority&amp;#038;ref=&amp;#038;feed=1" width="1" height="1" /&gt;</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blog.sqlauthority.com/2013/05/13/sql-server-puzzle-and-answer-replicate-over-8000-characters/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">150</slash:comments><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://1.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&amp;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://www.pinaldave.com/bimg/replicatepuz1.jpg" medium="image" /><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://www.pinaldave.com/bimg/replicatepuz2.jpg" medium="image" /><feedburner:origLink>http://blog.sqlauthority.com/2013/05/13/sql-server-puzzle-and-answer-replicate-over-8000-characters/</feedburner:origLink></item><item><title>SQL SERVER – Interesting Observation of CONCAT_NULL_YIELDS_NULL and CONCAT in SQL Server 2012 onwards</title><link>http://feedproxy.google.com/~r/SQLAuthority/~3/CLVAsjZlaCU/</link><category>PostADay</category><category>SQL</category><category>SQL Authority</category><category>SQL Function</category><category>SQL Query</category><category>SQL Server</category><category>SQL Tips and Tricks</category><category>T SQL</category><category>Technology</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">pinaldave</dc:creator><pubDate>Sat, 11 May 2013 18:30:25 PDT</pubDate><guid isPermaLink="false">http://blog.sqlauthority.com/?p=23673</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p style="text-align:justify;">Have you ever worked with CONCAT_NULL_YIELDS_NULL earlier in your career? If yes, you will find this post very interesting. If you have not worked with this function before I think this post will teach you something very interesting.</p>
<p style="text-align:justify;">Before we start please note that as per SQL Server official documentation CONCAT_NULL_YIELDS_NULL will be always ON in the future so avoid setting it off. What this function essentially does is that when it is on it will return a null value when any other value is connected it with using + operator. If CONCAT_NULL_YIELDS_NULL is set to OFF it will return the original value instead of NULL.</p>
<p style="text-align:justify;">Let us see a simple example of the same.</p>
<p style="text-align:justify;"><code style="font-size:12px;"><span style="color:green;">-- Before SQL Server 2012<br />
-- SET CONCAT_NULL_YIELDS_NULL ON<br />
</span><span style="color:blue;">SET </span><span style="color:black;">CONCAT_NULL_YIELDS_NULL </span><span style="color:blue;">ON</span><span style="color:gray;">;<br />
</span><span style="color:black;">GO<br />
</span><span style="color:blue;">SELECT </span><span style="color:red;">'Some Value' </span><span style="color:gray;">+ NULL </span><span style="color:blue;">AS </span><span style="color:black;"><span class="GINGER_SOFATWARE_correct">EarlierVersion</span></span><span style="color:gray;">;<br />
</span><span style="color:black;">GO<br />
</span><span style="color:green;">-- SET CONCAT_NULL_YIELDS_NULL OFF<br />
</span><span style="color:blue;">SET </span><span style="color:black;">CONCAT_NULL_YIELDS_NULL </span><span style="color:blue;">OFF</span><span style="color:gray;">;<br />
</span><span style="color:black;">GO<br />
</span><span style="color:blue;">SELECT </span><span style="color:red;">'Some Value' </span><span style="color:gray;">+ NULL </span><span style="color:blue;">AS </span><span style="color:black;"><span class="GINGER_SOFATWARE_correct">EarlierVersion</span></span><span style="color:gray;">;<br />
</span><span style="color:black;">GO<br />
</span></code></p>
<p style="text-align:justify;"><img class="alignnone" alt="" src="http://www.pinaldave.com/bimg/CONCAT_NULL_YIELDS_NULL1.jpg" width="500" height="501" /></p>
<p style="text-align:justify;">However, in SQL Server 2012 the behavior of the &#8216;+&#8217; operator remains the same but the behavior of function CONCAT is <span class="GINGER_SOFATWARE_correct">bit</span> different and it totally ignores this value. Here is the example of it.</p>
<p style="text-align:justify;"><code style="font-size:12px;"><span style="color:green;">--- SQL Server 2012 and onwards<br />
-- SET CONCAT_NULL_YIELDS_NULL ON<br />
</span><span style="color:blue;">SET </span><span style="color:black;">CONCAT_NULL_YIELDS_NULL </span><span style="color:blue;">ON</span><span style="color:gray;">;<br />
</span><span style="color:black;">GO<br />
</span><span style="color:blue;">SELECT </span><span style="color:black;">CONCAT</span><span style="color:gray;"><span class="GINGER_SOFATWARE_correct">(</span></span><span style="color:red;">'Some Value'</span><span style="color:gray;">, NULL) </span><span style="color:blue;">AS </span><span style="color:black;">SS2012</span><span style="color:gray;">;<br />
</span><span style="color:black;">GO<br />
</span><span style="color:green;">-- SET CONCAT_NULL_YIELDS_NULL OFF<br />
</span><span style="color:blue;">SET </span><span style="color:black;">CONCAT_NULL_YIELDS_NULL </span><span style="color:blue;">OFF</span><span style="color:gray;">;<br />
</span><span style="color:black;">GO<br />
</span><span style="color:blue;">SELECT </span><span style="color:black;">CONCAT</span><span style="color:gray;"><span class="GINGER_SOFATWARE_correct">(</span></span><span style="color:red;">'Some Value'</span><span style="color:gray;">, NULL) </span><span style="color:blue;">AS </span><span style="color:black;">SS2012</span><span style="color:gray;">;<br />
</span><span style="color:black;">GO</span></code></p>
<p style="text-align:justify;"><img class="alignnone" alt="" src="http://www.pinaldave.com/bimg/CONCAT_NULL_YIELDS_NULL2.jpg" width="500" height="524" /></p>
<p style="text-align:justify;">I assume this may be intentional as in <span class="GINGER_SOFATWARE_correct">future</span> the value of CONCAT_NULL_YIELDS_NULL will be always ON. <span class="GINGER_SOFATWARE_correct">Irespectively</span> I find it very interesting how CONCAT function works with NULLs.</p>
<p style="text-align:justify;">Read more about CONCAT function over here as well you can watch the video about how the concrete function works with SQL Server 2012.</p>
<p><strong><a href="http://blog.sqlauthority.com/2011/09/16/sql-server-denali-string-function-concat-a-quick-introduction/" target="_blank"><span class="GINGER_SOFATWARE_correct">String</span> Function – CONCAT<span class="GINGER_SOFATWARE_correct">(</span>) – A Quick Introduction</a></strong></p>
<span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='500' height='312' src='http://www.youtube.com/embed/HbbRpg-tHz4?version=3&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' frameborder='0'></iframe></span>
<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-function/'>SQL Function</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/23673/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/23673/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&#038;blog=668536&#038;post=23673&#038;subd=sqlauthority&#038;ref=&#038;feed=1" width="1" height="1" /><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=CLVAsjZlaCU:SYFyg94Z92s:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=CLVAsjZlaCU:SYFyg94Z92s:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=CLVAsjZlaCU:SYFyg94Z92s:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=l6gmwiTKsz0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=CLVAsjZlaCU:SYFyg94Z92s:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?i=CLVAsjZlaCU:SYFyg94Z92s:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/SQLAuthority/~4/CLVAsjZlaCU" height="1" width="1"/>]]></content:encoded><description>Have you ever worked with CONCAT_NULL_YIELDS_NULL earlier in your career? If yes, you will find this post very interesting. If you have not worked with this function before I think this post will teach you something very interesting. Before we start please note that as per SQL Server official documentation CONCAT_NULL_YIELDS_NULL will be always ON in the [&amp;#8230;]&lt;img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;#038;blog=668536&amp;#038;post=23673&amp;#038;subd=sqlauthority&amp;#038;ref=&amp;#038;feed=1" width="1" height="1" /&gt;</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blog.sqlauthority.com/2013/05/12/sql-server-interesting-observation-of-concat_null_yields_null-and-concat-in-sql-server-2012-onwards/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">1</slash:comments><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://1.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&amp;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://www.pinaldave.com/bimg/CONCAT_NULL_YIELDS_NULL1.jpg" medium="image" /><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://www.pinaldave.com/bimg/CONCAT_NULL_YIELDS_NULL2.jpg" medium="image" /><feedburner:origLink>http://blog.sqlauthority.com/2013/05/12/sql-server-interesting-observation-of-concat_null_yields_null-and-concat-in-sql-server-2012-onwards/</feedburner:origLink></item><item><title>SQL SERVER – Weekly Series – Memory Lane – #028</title><link>http://feedproxy.google.com/~r/SQLAuthority/~3/1JzrTwiE52k/</link><category>Memory Lane</category><category>PostADay</category><category>SQL</category><category>SQL Authority</category><category>SQL Query</category><category>SQL Server</category><category>SQL Tips and Tricks</category><category>T SQL</category><category>Technology</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">pinaldave</dc:creator><pubDate>Fri, 10 May 2013 18:30:38 PDT</pubDate><guid isPermaLink="false">http://blog.sqlauthority.com/?p=23588</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p style="text-align:justify;"><img class="alignleft" alt="" src="http://www.pinaldave.com/bimg/memorylane.jpg" width="200" height="129" />Here is the list of selected articles of SQLAuthority.com across all these years. Instead of just listing all the articles I have selected a few of my most favorite articles and have listed them here with additional notes below it. Let me know which one of the following is your favorite article from memory lane.</p>
<h3 style="text-align:justify;">2007</h3>
<p style="text-align:justify;"><strong><a href="http://blog.sqlauthority.com/2007/04/21/sql-server-interview-questions-and-answers-complete-list-download/"></a><a href="http://blog.sqlauthority.com/2007/05/06/sql-server-udf-function-to-convert-list-to-table/">UDF – Function to Convert List to Table<br />
</a></strong><span class="GINGER_SOFATWARE_correct">Article</span> contains UDF <span class="GINGER_SOFATWARE_correct">written</span> for SQL SERVER 2005. It will also work well with the very big TEXT field. If you want to use this on SQL SERVER 2000 replace VARCHAR<span class="GINGER_SOFATWARE_correct">(</span>MAX) with VARCHAR<span class="GINGER_SOFATWARE_correct">(</span>8000) or any other <span class="GINGER_SOFATWARE_noSuggestion GINGER_SOFATWARE_correct">varchar</span> limit. It will work with INT as well as VARCHAR. It will convert the list to table.</p>
<p style="text-align:justify;"><strong><a href="http://blog.sqlauthority.com/2007/05/06/sql-server-creating-comma-separate-values-list-from-table-udf-sp/">Creating Comma Separate Values List from Table – UDF – SP</a></strong><br />
<span class="GINGER_SOFATWARE_correct">Script</span> contained in the blog will create common separate values (CSV) or common separate list <span class="GINGER_SOFATWARE_correct">from</span> tables, convert list to table. Following script is written for SQL SERVER 2005. It will also work well with the very big TEXT field. If you want to use this on SQL SERVER 2000 replace VARCHAR (MAX) with VARCHAR<span class="GINGER_SOFATWARE_correct">(</span>8000) or any other varchar limit. It will work with INT as well as VARCHAR.</p>
<p style="text-align:justify;"><strong><a href="http://blog.sqlauthority.com/2007/05/07/sql-server-20052000-examples-and-explanation-for-goto/">Examples and Explanation for GOTO</a></strong><br />
GOTO statement can be used anywhere within a procedure, batch, or function. GOTO can be nested as well. GOTO can be executed by any valid user on SQL SERVER. GOTO can co-exists with other control of flow statements (IF<span class="GINGER_SOFATWARE_correct">…</span>ELSE, WHILE). GOTO can only go<span class="GINGER_SOFATWARE_correct">(</span>jump) to label in the same batch, it can not go to label outside of the batch.</p>
<p style="text-align:justify;"><strong><a href="http://blog.sqlauthority.com/2007/05/08/sql-server-index-optimization-checklist/">Index Optimization <span class="GINGER_SOFATWARE_correct">CheckList</span></a></strong><br />
Index optimization is always interesting subject to me. Every time I receive <span class="GINGER_SOFATWARE_correct">request</span> to help optimize query or query on any specific table. I always ask Jr<span class="GINGER_SOFATWARE_correct">.</span>DBA to go over following list first before I take a look at it. Most of the time the Query Speed is optimized just following basic rules mentioned below. Once following checklist applied interesting optimization part begins which only experiment and experience can resolve.</p>
<p style="text-align:justify;"><strong><a href="http://blog.sqlauthority.com/2007/05/11/sql-server-explanation-sql-command-go/">Explanation SQL Command GO</a></strong><br />
GO is not a Transact-SQL statement; it is often used in T-SQL code. Go causes all statements from the beginning of the script or the last GO statement (whichever is closer) to be compiled into one execution plan and sent to the server independent of any other batches. SQL Server utilities interpret GO as a signal that they should send the current batch of Transact-SQL statements to an instance of SQL Server. The current batch of statements is composed of all statements entered since the last GO, or since the start of the ad hoc session or script if this is the first GO.</p>
<h3 style="text-align:justify;">2008</h3>
<p style="text-align:justify;">Here are two straight to script blog posts where I explain how to do something quickly and easily.</p>
<ul style="text-align:justify;">
<li><strong><a href="http://blog.sqlauthority.com/2008/05/05/sql-server-find-table-in-every-database-of-sql-server-part-2-2/">Find Table in Every Database of SQL Server</a></strong></li>
<li><strong><a href="http://blog.sqlauthority.com/2008/05/08/sql-server-2005-find-tables-with-foreign-key-constraint-in-database-part-2/">Find Tables With Foreign Key Constraint in Database</a></strong></li>
</ul>
<h3 style="text-align:justify;">2009</h3>
<p style="text-align:justify;"><strong><a href="http://blog.sqlauthority.com/2009/05/09/sql-server-find-last-date-time-updated-for-any-table/">Find Last Date Time Updated for Any Table</a></strong><br />
If a user wants to <span class="GINGER_SOFATWARE_correct">finds</span> out when was the last table updated he can query dynamic management view (<span class="GINGER_SOFATWARE_noSuggestion GINGER_SOFATWARE_correct">dmv</span>) – <span class="GINGER_SOFATWARE_noSuggestion GINGER_SOFATWARE_correct">sys</span>. dm_db_index_usage_stats and easily figure out when the table was updated last. Let us comprehend this example by creating a table and updating it. We can use <span class="GINGER_SOFATWARE_correct">dmv</span> to determine when it was updated last.</p>
<p style="text-align:justify;"><strong><a href="http://blog.sqlauthority.com/2009/05/11/sql-server-questions-and-answers-with-database-administrators/">Questions and Answers with Database Administrators</a></strong><br />
Interesting conversation &#8211; I recommend everyone to read this.</p>
<p style="text-align:justify;"><strong>Q. According to you what goes into making the best Database Administrator?</strong></p>
<p style="text-align:justify;">A. The primary job of DBAs is to secure the data. They should be able to keep it safe as well as reproduce it efficiently, whenever required. So as per my view, a Database Administrator who can fulfill the requirements of Securing Data and Retrieving Data is the best DBA.</p>
<p style="text-align:justify;">When I hire a DBA I always ask them questions about backup strategies and efficient restoring methodologies.</p>
<h3 style="text-align:justify;">2010</h3>
<p style="text-align:justify;"><strong><a href="http://blog.sqlauthority.com/2010/05/05/sql-server-get-latest-sql-query-for-sessions-dmv/">Get Latest SQL Query for <span class="GINGER_SOFATWARE_correct">Sessions</span> – DMV</a></strong><br />
A straight to script blog which is my favorite as well.</p>
<p style="text-align:justify;"><strong><a href="http://blog.sqlauthority.com/2010/05/09/sql-server-size-of-index-table-for-each-index-solution-2/">Size of Index Table for Each Index – Solution 2</a></strong><br />
Another blog post where I explain how to find <span class="GINGER_SOFATWARE_correct">size</span> of index using T-SQL script.</p>
<p style="text-align:justify;"><a href="http://blog.sqlauthority.com/2010/05/11/sql-server-spatial-database-queries-what-about-blob-t-sql-tuesday-006/"><strong>Spatial Database Queries – What About BLOB</strong><br />
</a>In this blog post I explain how to find distance between two cities using <span class="GINGER_SOFATWARE_correct">Spatial Database</span>.</p>
<p style="text-align:justify;"><img class="alignnone" alt="" src="http://www.pinaldave.com/bimg/MapIndia2.jpg" width="500" height="500" /></p>
<p style="text-align:justify;"><strong><a href="http://blog.sqlauthority.com/2010/05/12/sql-server-understanding-alter-index-all-rebuild-with-disabled-clustered-index/">Understanding ALTER INDEX ALL REBUILD with Disabled Clustered Index</a></strong><br />
Not everyone knows the difference between ALTER INDEX ALL REBUILD and disabled Clustered index. In this blog post, I have tried to explain the same with <span class="GINGER_SOFATWARE_correct">example</span>.</p>
<h3 style="text-align:justify;">2011</h3>
<p style="text-align:justify;"><strong><a href="http://blog.sqlauthority.com/2011/05/07/sql-server-2008-2008-r2-create-script-to-copy-database-schema-and-all-the-objects-data-schema-stored-procedure-functions-triggers-tables-views-constraints-and-all-other-database-objects/">Create Script to Copy Database Schema and All The Objects – Data, Schema, Stored Procedure, Functions, Triggers, Tables, Views, Constraints and All Other Database Objects</a></strong><br />
One of the most popular blog post because it is the basic requirement of the developer. Developers like to do things their own way <span class="GINGER_SOFATWARE_correct">on</span> their database. This blog post explains how developers can absolutely create another replica of the database and later do practice over it.</p>
<p style="text-align:justify;"><strong><a href="http://blog.sqlauthority.com/2011/05/08/sql-server-what-kind-of-lock-with-nolock-hint-takes-on-object/">What Kind of Lock WITH (NOLOCK) Hint Takes on Object?<br />
</a></strong>Do we know what kind of lock WITH<span class="GINGER_SOFATWARE_correct">(</span>NOLOCK) hint takes <span class="GINGER_SOFATWARE_correct">on</span> object. <span class="GINGER_SOFATWARE_correct">Answer</span> is <strong>Schema Lock</strong>. Yes, WITH<span class="GINGER_SOFATWARE_correct">(</span>NOLOCK) hint takes Schema Lock on the object which is accessed. In this blog post we have working example where I demonstrate the same.</p>
<p style="text-align:justify;"><strong><a href="http://blog.sqlauthority.com/2011/05/10/sql-server-resource-database-id-32767/">Resource Database ID – 32767</a></strong><br />
The Resource database is a read-only database that contains all the system objects that are included with SQL Server. SQL Server system objects, such as <span class="GINGER_SOFATWARE_correct">sys</span><span class="GINGER_SOFATWARE_correct">.</span>objects, are physically persisted in the Resource database, but they logically appear in the <span class="GINGER_SOFATWARE_noSuggestion GINGER_SOFATWARE_correct">sys</span> schema of every database.</p>
<h3 style="text-align:justify;">2012</h3>
<p style="text-align:justify;">In year 2012 in a single week, I had come up with the Quiz based on the Joes 2 Pros Book and here are the five questions asked in the quiz. Just like every other quiz, this quiz also had a video <span class="GINGER_SOFATWARE_correct">hints</span>. Something very unique and never been attempted.</p>
<ul style="text-align:justify;">
<li><strong><a href="http://blog.sqlauthority.com/2012/05/07/sql-server-quiz-and-video-introduction-to-sql-server-security/">Quiz and Video – Introduction to SQL Server Security</a></strong></li>
<li><strong><a href="http://blog.sqlauthority.com/2012/05/08/sql-server-quiz-and-video-introduction-to-hierarchical-query-using-a-recursive-cte/">Quiz and Video – Introduction to Hierarchical Query using a Recursive CTE</a></strong></li>
<li><strong><a href="http://blog.sqlauthority.com/2012/05/09/sql-server-quiz-and-video-introduction-to-basics-of-a-query-hint/">Quiz and Video – Introduction to Basics of a Query Hint</a></strong></li>
<li><strong><a href="http://blog.sqlauthority.com/2012/05/10/sql-server-quiz-and-video-introduction-to-sql-error-actions/">Quiz and Video – Introduction to SQL Error Actions</a></strong></li>
<li><strong><a href="http://blog.sqlauthority.com/2012/05/11/sql-server-quiz-and-video-introduction-to-discovering-xml-data-type-methods/">Quiz and Video – Introduction to Discovering XML Data Type Methods</a></strong></li>
</ul>
<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/memory-lane/'>Memory Lane</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/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/23588/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/23588/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&#038;blog=668536&#038;post=23588&#038;subd=sqlauthority&#038;ref=&#038;feed=1" width="1" height="1" /><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=1JzrTwiE52k:UPMhOkYVeGc:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=1JzrTwiE52k:UPMhOkYVeGc:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=1JzrTwiE52k:UPMhOkYVeGc:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=l6gmwiTKsz0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=1JzrTwiE52k:UPMhOkYVeGc:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?i=1JzrTwiE52k:UPMhOkYVeGc:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/SQLAuthority/~4/1JzrTwiE52k" height="1" width="1"/>]]></content:encoded><description>Here is the list of selected articles of SQLAuthority.com across all these years. Instead of just listing all the articles I have selected a few of my most favorite articles and have listed them here with additional notes below it. Let me know which one of the following is your favorite article from memory lane. [&amp;#8230;]&lt;img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;#038;blog=668536&amp;#038;post=23588&amp;#038;subd=sqlauthority&amp;#038;ref=&amp;#038;feed=1" width="1" height="1" /&gt;</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blog.sqlauthority.com/2013/05/11/sql-server-weekly-series-memory-lane-028/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">0</slash:comments><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://1.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&amp;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://www.pinaldave.com/bimg/memorylane.jpg" medium="image" /><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://www.pinaldave.com/bimg/MapIndia2.jpg" medium="image" /><feedburner:origLink>http://blog.sqlauthority.com/2013/05/11/sql-server-weekly-series-memory-lane-028/</feedburner:origLink></item><item><title>SQL SERVER – Adding Column Defaulting to Current Datetime in Table</title><link>http://feedproxy.google.com/~r/SQLAuthority/~3/HU64rRcTnV4/</link><category>PostADay</category><category>SQL</category><category>SQL Authority</category><category>SQL DateTime</category><category>SQL Query</category><category>SQL Server</category><category>SQL Tips and Tricks</category><category>T SQL</category><category>Technology</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">pinaldave</dc:creator><pubDate>Thu, 09 May 2013 18:30:23 PDT</pubDate><guid isPermaLink="false">http://blog.sqlauthority.com/?p=23652</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p style="text-align:justify;">Presenting a technical session is a greatest experience one can have and I enjoy doing the same. While I write this blog post, I am presenting at <strong><a href="http://blog.sqlauthority.com/2013/05/02/sqlauthority-news-presenting-3-technical-sessions-at-great-indian-developer-summit-may-7-2013-bangalore/" target="_blank">Great Indian Developer Summit</a></strong> in India. The event is a grand success and I am having a great time at this event. One of the questions which I often receive is how do one can add the column to existing table which will be auto-populated with the current datetime when the original row is inserted. There is indeed a simple solution to achieve this goal. One has to just create table with default value as a current datetime.</p>
<p style="text-align:justify;">In following example we will first create a sample table and later we will add a column which will be defaulted to the current date time when any new record is inserted. The only drawback of this method is that if there is any existing row in your table it will be automatically have the current date time when the column is created. Honestly I do not see any solution to this issue as this is related to design of the database. If you know what was the datetime when rows were created you can update those rows with those value otherwise, just have any values stored there.</p>
<p style="text-align:justify;">Let us see our solution. Let us first create a table which does not have column with current datetime. In our case we will assume that there are only two rows in the table.</p>
<p><code style="font-size:12px;"><span style="color:blue;">USE </span><span style="color:black;">tempdb<br />
GO<br />
</span><span style="color:green;">-- Create Table<br />
</span><span style="color:blue;">CREATE TABLE </span><span style="color:black;">TestTable </span><span style="color:gray;">(</span><span style="color:black;">ID </span><span style="color:blue;">INT</span><span style="color:gray;">, </span><span style="color:black;">Col1 </span><span style="color:blue;">VARCHAR</span><span style="color:gray;">(</span><span style="color:black;">100</span><span style="color:gray;">));<br />
</span><span style="color:green;">-- Insert Values<br />
</span><span style="color:blue;">INSERT INTO </span><span style="color:black;">TestTable </span><span style="color:gray;">(</span><span style="color:black;">ID</span><span style="color:gray;">, </span><span style="color:black;">Col1</span><span style="color:gray;">)<br />
</span><span style="color:blue;">SELECT </span><span style="color:black;">1</span><span style="color:gray;">, </span><span style="color:red;">'First'<br />
</span><span style="color:blue;">UNION </span><span style="color:gray;">ALL<br />
</span><span style="color:blue;">SELECT </span><span style="color:black;">2</span><span style="color:gray;">, </span><span style="color:red;">'Second'</span><span style="color:gray;">;<br />
</span><span style="color:green;">-- Select from table<br />
</span><span style="color:blue;">SELECT </span><span style="color:gray;">*<br />
</span><span style="color:blue;">FROM </span><span style="color:black;">TestTable<br />
GO</span></code></p>
<p style="text-align:justify;"><img class="alignnone" alt="" src="http://www.pinaldave.com/bimg/DateInserted1.jpg" width="254" height="91" /></p>
<p style="text-align:justify;">Now let us add a column to this table with default value as a current datetime. You will notice that the two rows which are inserted into the table have current datetime.</p>
<p><code style="font-size:12px;"><span style="color:green;">-- Add Column with Default Current Date Time<br />
</span><span style="color:blue;">ALTER TABLE </span><span style="color:black;">TestTable<br />
</span><span style="color:blue;">ADD </span><span style="color:black;">DateInserted </span><span style="color:blue;">DATETIME </span><span style="color:gray;">NOT NULL </span><span style="color:blue;">DEFAULT </span><span style="color:gray;">(</span><span style="color:magenta;">GETDATE</span><span style="color:gray;">());<br />
</span><span style="color:green;">-- Select from table<br />
</span><span style="color:blue;">SELECT </span><span style="color:gray;">*<br />
</span><span style="color:blue;">FROM </span><span style="color:black;">TestTable<br />
GO</span></code></p>
<p style="text-align:justify;"><img class="alignnone" alt="" src="http://www.pinaldave.com/bimg/DateInserted2.jpg" width="337" height="88" /></p>
<p style="text-align:justify;">As a third step let us enter the a new row. Make sure that you do not insert any value in the newly created column where you have default value as a current date time.</p>
<p><code style="font-size:12px;"><span style="color:green;">-- Now Insert New Rows<br />
</span><span style="color:blue;">INSERT INTO </span><span style="color:black;">TestTable </span><span style="color:gray;">(</span><span style="color:black;">ID</span><span style="color:gray;">, </span><span style="color:black;">Col1</span><span style="color:gray;">)<br />
</span><span style="color:blue;">SELECT </span><span style="color:black;">3</span><span style="color:gray;">, </span><span style="color:red;">'Third'</span><span style="color:gray;">;<br />
</span><span style="color:blue;">INSERT INTO </span><span style="color:black;">TestTable </span><span style="color:gray;">(</span><span style="color:black;">ID</span><span style="color:gray;">, </span><span style="color:black;">Col1</span><span style="color:gray;">)<br />
</span><span style="color:blue;">SELECT </span><span style="color:black;">4</span><span style="color:gray;">, </span><span style="color:red;">'Fourth'</span><span style="color:gray;">;<br />
</span><span style="color:black;">GO<br />
</span><span style="color:green;">-- Select from table<br />
</span><span style="color:blue;">SELECT </span><span style="color:gray;">*<br />
</span><span style="color:blue;">FROM </span><span style="color:black;">TestTable<br />
GO</span></code></p>
<p style="text-align:justify;"><img class="alignnone" alt="" src="http://www.pinaldave.com/bimg/DateInserted3.jpg" width="362" height="128" /></p>
<p style="text-align:justify;">You will notice in the result set that the new column will contain current date time of the row created. This way you can get the value when the row was created.</p>
<p style="text-align:justify;">Now you can clean up the resultset.</p>
<p><code style="font-size:12px;"><span style="color:green;">-- Clean up<br />
</span><span style="color:blue;">DROP TABLE </span><span style="color:black;">TestTable<br />
GO</span></code></p>
<p style="text-align:justify;">Here is the question back to you &#8211; &#8220;It is simple to create a column where we have default daytime value to know when the row was created. Is there any way to know when the row was updated without explicitly updating any column with datetime?&#8221;</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-datetime/'>SQL DateTime</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/23652/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/23652/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&#038;blog=668536&#038;post=23652&#038;subd=sqlauthority&#038;ref=&#038;feed=1" width="1" height="1" /><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=HU64rRcTnV4:XzXT8rTd_ic:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=HU64rRcTnV4:XzXT8rTd_ic:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=HU64rRcTnV4:XzXT8rTd_ic:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=l6gmwiTKsz0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=HU64rRcTnV4:XzXT8rTd_ic:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?i=HU64rRcTnV4:XzXT8rTd_ic:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/SQLAuthority/~4/HU64rRcTnV4" height="1" width="1"/>]]></content:encoded><description>Presenting a technical session is a greatest experience one can have and I enjoy doing the same. While I write this blog post, I am presenting at Great Indian Developer Summit in India. The event is a grand success and I am having a great time at this event. One of the questions which I [&amp;#8230;]&lt;img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;#038;blog=668536&amp;#038;post=23652&amp;#038;subd=sqlauthority&amp;#038;ref=&amp;#038;feed=1" width="1" height="1" /&gt;</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blog.sqlauthority.com/2013/05/10/sql-server-adding-column-defaulting-to-current-datetime-in-table/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">7</slash:comments><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://1.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&amp;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://www.pinaldave.com/bimg/DateInserted1.jpg" medium="image" /><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://www.pinaldave.com/bimg/DateInserted2.jpg" medium="image" /><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://www.pinaldave.com/bimg/DateInserted3.jpg" medium="image" /><feedburner:origLink>http://blog.sqlauthority.com/2013/05/10/sql-server-adding-column-defaulting-to-current-datetime-in-table/</feedburner:origLink></item><item><title>SQL SERVER – A New Approach to Scale .NET Applications</title><link>http://feedproxy.google.com/~r/SQLAuthority/~3/ApHQpIGMIuI/</link><category>PostADay</category><category>SQL</category><category>SQL Authority</category><category>SQL Query</category><category>SQL Server</category><category>SQL Tips and Tricks</category><category>T SQL</category><category>Technology</category><category>NuoDB</category><category>Scale</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">pinaldave</dc:creator><pubDate>Wed, 08 May 2013 18:30:11 PDT</pubDate><guid isPermaLink="false">http://blog.sqlauthority.com/?p=23645</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p style="text-align:justify;" align="left">In a <a href="http://blog.sqlauthority.com/2013/04/22/sql-server-discussion-scale-up-vs-scale-out-architectures/">previous article</a>, I wrote about scale-up vs. <span class="GINGER_SOFATWARE_correct">scale</span>-out architectures using SQL Server and NuoDB as examples.  <span class="GINGER_SOFATWARE_correct">NuoDB</span> recently announced the general availability of their latest product release, 1.1, and it looks like they’ve made significant progress in improving their Microsoft support. <span class="GINGER_SOFATWARE_noSuggestion GINGER_SOFATWARE_correct">NuoDB</span> now supports 64-bit Windows environments, natively integrates with Visual Studio, LINQ and <span class="GINGER_SOFATWARE_correct">EntityFramework</span> to name a few.</p>
<p style="text-align:justify;" align="left">For those of you who haven’t had a chance to read my <a href="http://blog.sqlauthority.com/2013/04/22/sql-server-discussion-scale-up-vs-scale-out-architectures/">previous article</a>, NuoDB is a distributed cloud database that supports SQL and ACID transactions. A single logical NuoDB database can be deployed on one or many cloud machines to support the scale-out model without the need to partition, <span class="GINGER_SOFATWARE_correct">shard</span>, or replicate.</p>
<p style="text-align:justify;" align="left"><img class="alignnone" alt="" src="http://www.pinaldave.com/bimg/nuodbscaleimage1.png" width="649" height="161" /></p>
<p style="text-align:justify;" align="left">The NuoDB distributed architecture enables you to scale computational and storage resources independently. Meaning, if your application demands higher <span class="GINGER_SOFATWARE_correct">transactional</span> throughput, simply add more transaction engines, and if you need a highly available redundant database, add more storage managers.</p>
<p style="text-align:justify;" align="left">A typical scale-out architecture might look like this:</p>
<p style="text-align:justify;" align="left"><img class="alignnone" alt="" src="http://www.pinaldave.com/bimg/nuodbscaleimage2.png" width="658" height="412" /></p>
<p style="text-align:justify;" align="left">Each process in the NuoDB architecture represents a virtual or <span class="GINGER_SOFATWARE_correct">physical cloud resource</span> but the database as a whole continues to represent itself as a single logical database to any client that’s connected to it.</p>
<p style="text-align:justify;" align="left">Many of you have been developing, deploying and maintaining .NET applications using SQL Server and might be familiar with setting up a server farm or <span class="GINGER_SOFATWARE_correct">application cluster</span> to improve performance. As you know, this is no easy task, from both a development and deployment perspective.  I’m not advocating that you eliminate SQL Server from your stack, but let’s entertain the idea of using NuoDB as the primary database for your application <span class="GINGER_SOFATWARE_noSuggestion GINGER_SOFATWARE_correct">backend</span>. Since it presents itself as a single logical database to your application regardless of how many machines it might be running on, you’re able to simplify your code and your scale-out strategy. The transaction engine layer of NuoDB uses a dynamic caching mechanism to eliminate the need to shard or federate your data. Transaction engines connect directly to client applications and are able to process all transaction types (CRUD) and maintain data consistency across the entire deployment environment. This opens up the opportunity to write applications specifically designed for a scale-up architecture and leverage NuoDB to provide scale-out capabilities. Below is an example of co-locating transaction engines on each node in a server farm.</p>
<p style="text-align:justify;" align="left"><img class="alignnone" alt="" src="http://www.pinaldave.com/bimg/nuodbscaleimage3.png" width="669" height="188" /></p>
<p style="text-align:justify;" align="left"> The genius of this system is that co-located transaction engines should be the most responsive to the application. However, in the event that one or more transaction engines get tied up, the broker process automatically connects applications to the next most responsive. There is no prerequisite for the data to actually be present on the transaction engine. <span class="GINGER_SOFATWARE_correct">NuoDB</span> uses a built-in asynchronous replication technique to get data directly from other transaction engines or storage managers.</p>
<p style="text-align:justify;" align="left">I have been following <strong><a href="http://bit.ly/sql-nuodb" target="_blank">NuoDB </a></strong>for some time now and with each release the technology becomes more exciting. Click <strong><a href="http://go.nuodb.com/download-request-SQL-authority.html">here</a> </strong>if you would like to try out the latest 64-bit version of NuoDB that includes an ADO.NET driver for Visual Studio integration. Comments welcome!</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/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> Tagged: <a href='http://blog.sqlauthority.com/tag/nuodb/'>NuoDB</a>, <a href='http://blog.sqlauthority.com/tag/scale/'>Scale</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/23645/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/23645/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&#038;blog=668536&#038;post=23645&#038;subd=sqlauthority&#038;ref=&#038;feed=1" width="1" height="1" /><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=ApHQpIGMIuI:HyuHnTGgSfA:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=ApHQpIGMIuI:HyuHnTGgSfA:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=ApHQpIGMIuI:HyuHnTGgSfA:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=l6gmwiTKsz0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=ApHQpIGMIuI:HyuHnTGgSfA:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?i=ApHQpIGMIuI:HyuHnTGgSfA:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/SQLAuthority/~4/ApHQpIGMIuI" height="1" width="1"/>]]></content:encoded><description>In a previous article, I wrote about scale-up vs. scale-out architectures using SQL Server and NuoDB as examples.  NuoDB recently announced the general availability of their latest product release, 1.1, and it looks like they’ve made significant progress in improving their Microsoft support. NuoDB now supports 64-bit Windows environments, natively integrates with Visual Studio, LINQ [&amp;#8230;]&lt;img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;#038;blog=668536&amp;#038;post=23645&amp;#038;subd=sqlauthority&amp;#038;ref=&amp;#038;feed=1" width="1" height="1" /&gt;</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blog.sqlauthority.com/2013/05/09/sql-server-a-new-approach-to-scale-net-applications/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">0</slash:comments><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://1.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&amp;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://www.pinaldave.com/bimg/nuodbscaleimage1.png" medium="image" /><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://www.pinaldave.com/bimg/nuodbscaleimage2.png" medium="image" /><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://www.pinaldave.com/bimg/nuodbscaleimage3.png" medium="image" /><feedburner:origLink>http://blog.sqlauthority.com/2013/05/09/sql-server-a-new-approach-to-scale-net-applications/</feedburner:origLink></item><item><title>SQL SERVER – RESEED Identity Column in Database Table – Rest Table Identity Value – SQL in Sixty Seconds #051</title><link>http://feedproxy.google.com/~r/SQLAuthority/~3/nXFkXD9lEB8/</link><category>Database</category><category>Pinal Dave</category><category>PostADay</category><category>SQL</category><category>SQL Authority</category><category>SQL in Sixty Seconds</category><category>SQL Interview Questions and Answers</category><category>SQL Query</category><category>SQL Scripts</category><category>SQL Server</category><category>SQL Tips and Tricks</category><category>T SQL</category><category>Technology</category><category>Video</category><category>Identity</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">pinaldave</dc:creator><pubDate>Tue, 07 May 2013 18:30:12 PDT</pubDate><guid isPermaLink="false">http://blog.sqlauthority.com/?p=23639</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p style="text-align:justify;">This is the 51th episode of SQL in Sixty Seconds Video and we will see in this episode how to RESEED identity of the table column. Identity column is every increasing (or decreasing) value based on the interval specified in its property. In today&#8217;s SQL in Sixty Seconds video we will see that how we can reseed the identity value to any other value. In the video I demonstrate that we can set the value to any value which is greater than the current column value however, you can also set the identity value to any value lower than the current column as well.</p>
<p style="text-align:justify;">In the real world, developers sometimes delete few rows from the table and due to any reasons they want to reseed the identity value to a lower value, this feature can be very much useful. However, there is one question which keeps on ringing in my mind that is why would anyone need to reseed identity. Anyway here is the SQL in Sixty Seconds Video which explains how we can reseed identity value.</p>
<p style="text-align:justify;">Let us see the same concept in following SQL in Sixty Seconds Video:</p>
<p style="text-align:justify;"><span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='500' height='312' src='http://www.youtube.com/embed/V6yRvhwUs9Y?version=3&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' frameborder='0'></iframe></span></p>
<p style="text-align:justify;">Here is the script used in this episode:</p>
<p><code style="font-size:12px;"><span style="color:blue;">USE </span><span style="color:black;"><span class="GINGER_SOFATWARE_noSuggestion GINGER_SOFATWARE_correct">tempdb</span><br />
GO<br />
</span><span style="color:green;">-- Create Table<br />
</span><span style="color:blue;">CREATE TABLE </span><span style="color:black;">TestTable </span><span style="color:gray;">(</span><span style="color:black;">ID </span><span style="color:blue;">INT </span><span style="color:#434343;">IDENTITY</span><span style="color:gray;"><span class="GINGER_SOFATWARE_correct">(</span></span><span style="color:black;">1</span><span style="color:gray;">,</span><span style="color:black;">1</span><span style="color:gray;">), </span><span style="color:black;">Col1 </span><span style="color:blue;">VARCHAR</span><span style="color:gray;"><span class="GINGER_SOFATWARE_correct">(</span></span><span style="color:black;">100</span><span style="color:gray;">));<br />
</span><span style="color:green;">-- Insert Table<br />
</span><span style="color:blue;">INSERT INTO </span><span style="color:black;">TestTable </span><span style="color:gray;">(</span><span style="color:black;">Col1</span><span style="color:gray;">)<br />
</span><span style="color:blue;">SELECT </span><span style="color:red;">'First'<br />
</span><span style="color:blue;">UNION </span><span style="color:gray;">ALL<br />
</span><span style="color:blue;">SELECT </span><span style="color:red;">'Second'<br />
</span><span style="color:blue;">UNION </span><span style="color:gray;">ALL<br />
</span><span style="color:blue;">SELECT </span><span style="color:red;">'Third'<br />
</span><span style="color:blue;">UNION </span><span style="color:gray;">ALL<br />
</span><span style="color:blue;">SELECT </span><span style="color:red;">'Fourth'<br />
</span><span style="color:blue;">UNION </span><span style="color:gray;">ALL<br />
</span><span style="color:blue;">SELECT </span><span style="color:red;">'Fifth'</span><span style="color:gray;">;<br />
</span><span style="color:green;">-- Select <span class="GINGER_SOFATWARE_correct">data</span><br />
</span><span style="color:blue;">SELECT </span><span style="color:gray;">*<br />
</span><span style="color:blue;">FROM </span><span style="color:black;">TestTable<br />
GO<br />
</span><span style="color:green;">-- Returns current Identity Value<br />
</span><span style="color:blue;">DBCC </span><span style="color:black;">CHECKIDENT </span><span style="color:gray;">(</span><span style="color:red;">'TestTable'</span><span style="color:gray;">, </span><span style="color:black;">NORESEED</span><span style="color:gray;">);<br />
</span><span style="color:green;">-- Resets the current Identity value to <span class="GINGER_SOFATWARE_correct">maximum value</span><br />
</span><span style="color:blue;">DBCC </span><span style="color:black;">CHECKIDENT </span><span style="color:gray;">(</span><span style="color:red;">'TestTable'</span><span style="color:gray;">, </span><span style="color:black;">RESEED</span><span style="color:gray;">, </span><span style="color:black;">11</span><span style="color:gray;">);<br />
</span><span style="color:green;">-- Insert Table<br />
</span><span style="color:blue;">INSERT INTO </span><span style="color:black;">TestTable </span><span style="color:gray;">(</span><span style="color:black;">Col1</span><span style="color:gray;">)<br />
</span><span style="color:blue;">SELECT </span><span style="color:red;">'First'<br />
</span><span style="color:blue;">UNION </span><span style="color:gray;">ALL<br />
</span><span style="color:blue;">SELECT </span><span style="color:red;">'Second'<br />
</span><span style="color:blue;">UNION </span><span style="color:gray;">ALL<br />
</span><span style="color:blue;">SELECT </span><span style="color:red;">'Third'<br />
</span><span style="color:blue;">UNION </span><span style="color:gray;">ALL<br />
</span><span style="color:blue;">SELECT </span><span style="color:red;">'Fourth'<br />
</span><span style="color:blue;">UNION </span><span style="color:gray;">ALL<br />
</span><span style="color:blue;">SELECT </span><span style="color:red;">'Fifth'</span><span style="color:gray;">;<br />
</span><span style="color:green;">-- Select Table<br />
</span><span style="color:blue;">SELECT </span><span style="color:gray;">*<br />
</span><span style="color:blue;">FROM </span><span style="color:black;">TestTable<br />
</span><span style="color:blue;">ORDER BY </span><span style="color:black;">ID</span><span style="color:gray;">;<br />
</span><span style="color:green;">-- Drop Table<br />
</span><span style="color:blue;">DROP TABLE </span><span style="color:black;">TestTable</span><span style="color:gray;">;</span></code></p>
<p>&nbsp;</p>
<p style="text-align:justify;"><strong style="text-align:justify;">Related Tips in SQL in Sixty Seconds:</strong></p>
<ul style="text-align:justify;">
<li><strong><span style="text-align:justify;"><a href="http://blog.sqlauthority.com/2012/08/24/sql-server-delete-truncate-and-reseed-identity/" target="_blank">DELETE, TRUNCATE and RESEED Identity</a></span></strong></li>
<li><strong><a href="http://blog.sqlauthority.com/2012/08/23/sql-server-reseting-identity-values-for-all-tables/" target="_blank"><span class="GINGER_SOFATWARE_correct">Reseting</span> Identity Values for All Tables</a></strong></li>
<li><strong><a href="http://blog.sqlauthority.com/2012/08/27/sql-server-answer-value-of-identity-column-after-truncate-command/" target="_blank">Value of Identity Column after TRUNCATE command</a></strong></li>
<li><strong><a href="http://blog.sqlauthority.com/2012/06/18/sql-server-identifying-column-data-type-of-uniqueidentifier-without-querying-system-tables/" target="_blank">Identifying Column Data Type of <span class="GINGER_SOFATWARE_correct">uniqueidentifier</span> without Querying System Tables</a></strong></li>
<li><strong><a href="http://blog.sqlauthority.com/2012/01/04/sql-server-understanding-identity-beyond-its-every-increasing-nature-quiz-puzzle-3-of-31/" target="_blank">Understanding Identity Beyond its Every Increasing Nature</a></strong></li>
<li><strong><a href="http://blog.sqlauthority.com/2010/08/19/sql-server-negative-identity-seed-value-and-negative-increment-interval/" target="_blank">Negative Identity Seed Value and Negative Increment Interval</a></strong></li>
</ul>
<p style="text-align:justify;"><em><strong>What would you like to see in the next SQL in Sixty Seconds video?</strong></em></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/database/'>Database</a>, <a href='http://blog.sqlauthority.com/category/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-in-sixty-seconds/'>SQL in Sixty Seconds</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/sql-scripts/'>SQL Scripts</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 href='http://blog.sqlauthority.com/category/video/'>Video</a> Tagged: <a href='http://blog.sqlauthority.com/tag/identity/'>Identity</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/23639/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/23639/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&#038;blog=668536&#038;post=23639&#038;subd=sqlauthority&#038;ref=&#038;feed=1" width="1" height="1" /><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=nXFkXD9lEB8:UbmX3eO1rho:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=nXFkXD9lEB8:UbmX3eO1rho:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=nXFkXD9lEB8:UbmX3eO1rho:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=l6gmwiTKsz0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=nXFkXD9lEB8:UbmX3eO1rho:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?i=nXFkXD9lEB8:UbmX3eO1rho:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/SQLAuthority/~4/nXFkXD9lEB8" height="1" width="1"/>]]></content:encoded><description>This is the 51th episode of SQL in Sixty Seconds Video and we will see in this episode how to RESEED identity of the table column. Identity column is every increasing (or decreasing) value based on the interval specified in its property. In today&amp;#8217;s SQL in Sixty Seconds video we will see that how we [&amp;#8230;]&lt;img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;#038;blog=668536&amp;#038;post=23639&amp;#038;subd=sqlauthority&amp;#038;ref=&amp;#038;feed=1" width="1" height="1" /&gt;</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blog.sqlauthority.com/2013/05/08/sql-server-reseed-identity-in-table-column-rest-table-identity-value-sql-in-sixty-seconds-051/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">3</slash:comments><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://1.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&amp;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content><feedburner:origLink>http://blog.sqlauthority.com/2013/05/08/sql-server-reseed-identity-in-table-column-rest-table-identity-value-sql-in-sixty-seconds-051/</feedburner:origLink></item><item><title>SQLAuthority News – Sharding or No Sharding of Database – Working on my Weekend Project</title><link>http://feedproxy.google.com/~r/SQLAuthority/~3/34rlP4BgyCE/</link><category>PostADay</category><category>SQL</category><category>SQL Authority</category><category>SQL Query</category><category>SQL Server</category><category>SQL Tips and Tricks</category><category>T SQL</category><category>Technology</category><category>NuoDB</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">pinaldave</dc:creator><pubDate>Mon, 06 May 2013 18:30:56 PDT</pubDate><guid isPermaLink="false">http://blog.sqlauthority.com/?p=23636</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p style="text-align:justify;">Recently I came across situation where database sharding was once again a suggested solution by architectures. <span class="GINGER_SOFATWARE_correct">Everytime</span> I hear the word sharding I remember my earlier article about <strong><a href="http://bit.ly/sql-nuodb" target="_blank">NuoDB </a></strong>on <strong><a href="http://blog.sqlauthority.com/2012/11/27/sql-server-shard-no-more-an-innovative-look-at-distributed-peer-to-peer-sql-database/" target="_blank">Shard No More – An Innovative Look at Distributed Peer-to-peer SQL Database</a></strong>. Sharding requires developers to think about things like rollbacks, constraints, and referential integrity across tables within their applications when these types of concerns are best handled by the database. It also makes other common operations such as joins, searches, and memory management very difficult.</p>
<p style="text-align:justify;"><img class="alignnone" alt="" src="http://www.pinaldave.com/bimg/nuodbshard2.jpg" width="500" height="179" /></p>
<p style="text-align:justify;">Each <strong><a href="http://go.nuodb.com/download-request-SQL-authority.html" target="_blank">NuoDB</a></strong> database consists of at least three or more processes that enable a single database to run across multiple hosts. These processes include a Broker, a Transaction Engine and a Storage Manager.  Brokers are responsible for connecting client applications to Transaction Engines and maintain a global view of the network to keep track of the multiple Transaction Engines available at any time. Transaction Engines are in-memory processes that client applications connect to for processing SQL transactions. <span class="GINGER_SOFATWARE_correct">Storage</span> Managers are responsible for persisting data to disk and serving up records to the Transaction Managers if they don’t exist in memory.</p>
<p style="text-align:justify;">Here is my question to you all &#8211; <em><strong>do you ever face a situation of sharding of your database is required? When is sharding required not a good solution?</strong></em></p>
<p style="text-align:justify;">I have downloaded <strong><a href="http://bit.ly/sql-nuodb" target="_blank">NuoDB</a> </strong>today and going to build a small application which I can play with to build a scenario where sharding is no longer required. Would you be interesting in joining me with this exercise? I would like to work along with you to build such a scenario. <strong><a href="http://bit.ly/sql-nuodb" target="_blank">Download NuoDB</a></strong> and let us start building something interesting.</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/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> Tagged: <a href='http://blog.sqlauthority.com/tag/nuodb/'>NuoDB</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/23636/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/23636/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&#038;blog=668536&#038;post=23636&#038;subd=sqlauthority&#038;ref=&#038;feed=1" width="1" height="1" /><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=34rlP4BgyCE:NNVqyG2354o:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=34rlP4BgyCE:NNVqyG2354o:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=34rlP4BgyCE:NNVqyG2354o:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=l6gmwiTKsz0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=34rlP4BgyCE:NNVqyG2354o:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?i=34rlP4BgyCE:NNVqyG2354o:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/SQLAuthority/~4/34rlP4BgyCE" height="1" width="1"/>]]></content:encoded><description>Recently I came across situation where database sharding was once again a suggested solution by architectures. Everytime I hear the word sharding I remember my earlier article about NuoDB on Shard No More – An Innovative Look at Distributed Peer-to-peer SQL Database. Sharding requires developers to think about things like rollbacks, constraints, and referential integrity across tables [&amp;#8230;]&lt;img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;#038;blog=668536&amp;#038;post=23636&amp;#038;subd=sqlauthority&amp;#038;ref=&amp;#038;feed=1" width="1" height="1" /&gt;</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blog.sqlauthority.com/2013/05/07/sqlauthority-news-sharding-or-no-sharding-of-database-working-on-my-weekend-project/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">4</slash:comments><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://1.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&amp;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://www.pinaldave.com/bimg/nuodbshard2.jpg" medium="image" /><feedburner:origLink>http://blog.sqlauthority.com/2013/05/07/sqlauthority-news-sharding-or-no-sharding-of-database-working-on-my-weekend-project/</feedburner:origLink></item><item><title>SQL SERVER – Azure SQL Databases Backup Made Easy with SQLBackupAndFTP</title><link>http://feedproxy.google.com/~r/SQLAuthority/~3/XqzxfVYGMjs/</link><category>PostADay</category><category>SQL</category><category>SQL Authority</category><category>SQL Backup and Restore</category><category>SQL Query</category><category>SQL Server</category><category>SQL Tips and Tricks</category><category>T SQL</category><category>Technology</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">pinaldave</dc:creator><pubDate>Sun, 05 May 2013 18:30:03 PDT</pubDate><guid isPermaLink="false">http://blog.sqlauthority.com/?p=23621</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p class="c11 c13" style="text-align:justify;"><span class="c0" style="font-size:13px;">Azure SQL database backup used to be a difficult task. Not any more. With </span><strong><span class="c1 c4" style="font-size:13px;"><a class="c10" href="http://sqlbackupandftp.com/Azure-SQL-Database-backup/?ref=242">SQLBackupAndFTP with Azure</a></span></strong><span class="c0" style="font-size:13px;"> it became trivial. Here’s what you basically need to do:</span></p>
<p class="c2" style="text-align:justify;"><span class="c0">Once  </span><strong><span class="c1 c4"><a class="c10" href="http://sqlbackupandftp.com/Azure-SQL-Database-backup/?ref=242">SQLBackupAndFTP with Azure</a></span></strong><span class="c0">  is installed</span><span class="c0">, click at &#8220;</span><span class="c0 c3">Connect to SQL Server / Azure</span><span class="c0">&#8221; button and specify connection properties for your Azure SQL Databases:</span></p>
<p class="c2" style="text-align:justify;"><img alt="" src="http://www.pinaldave.com/bimg/SQLBackupAndFTP-Azure/image03.png" width="637" height="511" /></p>
<p class="c2" style="text-align:justify;"><span class="c0">Then click &#8220;</span><span class="c0 c3">Run Now</span><span class="c0">&#8221; to backup your Azure SQL Database(s):</span></p>
<p class="c2" style="text-align:justify;"><img alt="" src="http://www.pinaldave.com/bimg/SQLBackupAndFTP-Azure/image00.png" width="723" height="574" /></p>
<p class="c2" style="text-align:justify;"><span class="c0">Scheduling backups is also very simple &#8211; just check “Schedule this job on the main form” to run once daily or go to Advanced Settings for more options</span></p>
<p class="c2" style="text-align:justify;"><img alt="" src="http://www.pinaldave.com/bimg/SQLBackupAndFTP-Azure/image04.png" width="403" height="135" /></p>
<p class="c2" style="text-align:justify;"><span class="c0">Sounds simple? There are just a couple more things you need for this to work: you should know your Azure Server Name and Azure should allow your IP to connect. Let me explain how <span class="GINGER_SOFATWARE_correct">to do</span> it.</span></p>
<h3 class="c9" style="text-align:justify;"><span class="c5">How to find your </span><span class="c5">Azure SQL Databases Server Name/Connection String</span></h3>
<p class="c2" style="text-align:justify;"><span class="c0">If you do not know a server name of Azure SQL Database, you can find this out on  </span><span class="c1 c4"><a class="c10" href="https://manage.windowsazure.com/">Windows Azure Management</a></span><span class="c0"> site.  Sign in with your Microsoft account and click the &#8220;SQL DATABASES&#8221; menu item, then click your database name</span></p>
<p class="c2" style="text-align:justify;"><img alt="" src="http://www.pinaldave.com/bimg/SQLBackupAndFTP-Azure/image01.png" width="741" height="472" /></p>
<p class="c2" style="text-align:justify;"><span class="c0">Then click “</span><span class="c0 c3">Show connection strings</span><span class="c0">” link in the bottom right corner:</span></p>
<p class="c2" style="text-align:justify;"><img alt="" src="http://www.pinaldave.com/bimg/SQLBackupAndFTP-Azure/image05.png" width="314" height="351" /></p>
<p class="c2" style="text-align:justify;"><span class="c0">You will see the connection strings for many platforms. Just copy to clipboard &#8220;Server&#8221; property value of &#8220;ADO.NET&#8221; connection like in the screenshot below:</span></p>
<p class="c2" style="text-align:justify;"><img alt="" src="http://www.pinaldave.com/bimg/SQLBackupAndFTP-Azure/image06.png" width="485" height="667" /></p>
<p class="c2" style="text-align:justify;"><span class="c0">And paste it into the &#8220;Server Name&#8221; field of the &#8220;Connect to SQL Server / Azure&#8221; window in SQLBackupAndFTP:</span></p>
<p class="c2" style="text-align:justify;"><img alt="" src="http://www.pinaldave.com/bimg/SQLBackupAndFTP-Azure/image07.png" width="400" height="320" /></p>
<h3 class="c9" style="text-align:justify;"><span class="c5">Allow your IP address to connect  to your Azure SQL <span class="GINGER_SOFATWARE_correct">Databases</span> server</span></h3>
<p class="c2" style="text-align:justify;"><span class="c0">For SQLBackupAndFTP to connect to Azure SQL Database, you need to configure Azure&#8217;s firewall. Otherwise you will be getting the error: </span><span class="c0 c8">Cannot open [server] requested by the login. Client with IP address [<span class="GINGER_SOFATWARE_correct">ip</span>-address] is not allowed to access to the server&#8230;</span></p>
<p class="c2" style="text-align:justify;"><span class="c0">Login to </span><span class="c1 c4"><a class="c10" href="https://manage.windowsazure.com/">Windows Azure Management</a></span><span class="c0"> site with your Microsoft account, click &#8220;SQL DATABASES&#8221; menu  item, then click your database:</span></p>
<p class="c2" style="text-align:justify;"><img alt="" src="http://www.pinaldave.com/bimg/SQLBackupAndFTP-Azure/image01.png" width="741" height="472" /></p>
<p class="c2" style="text-align:justify;"><span class="c0">Then click &#8220;</span><span class="c0 c3">Manage allowed IP addresses</span><span class="c0">&#8221; link in the bottom right corner::</span></p>
<p class="c2" style="text-align:justify;"><img alt="" src="http://www.pinaldave.com/bimg/SQLBackupAndFTP-Azure/image02.png" width="311" height="348" /></p>
<p class="c2" style="text-align:justify;"><span class="c0">You will see a page where you can specify an allowed IP addresses for your databases:</span></p>
<p class="c2" style="text-align:justify;"><img alt="" src="http://www.pinaldave.com/bimg/SQLBackupAndFTP-Azure/image08.png" width="800" height="513" /></p>
<p class="c2" style="text-align:justify;"><span class="c0">On this page you can configure your firewall to allow the machine where SQLBackupAndFTP is running access to Azure. After adding the proper IP you should have no problem connecting <span class="GINGER_SOFATWARE_correct">to</span> Azure.</span></p>
<h3 class="c11" style="text-align:justify;"><span class="c5 c3">Summary </span></h3>
<p class="c11" style="text-align:justify;"><span class="c1">With </span><span class="c0"> </span><strong><span class="c1 c4"><a class="c10" href="http://sqlbackupandftp.com/Azure-SQL-Database-backup/?ref=242">SQLBackupAndFTP with Azure</a></span></strong> <span class="c1">it is very simple to take backups of Azure SQL databases as well as <span class="GINGER_SOFATWARE_correct">of</span> regular SQL Server.</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/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-backup-and-restore/'>SQL Backup and Restore</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/23621/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/23621/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&#038;blog=668536&#038;post=23621&#038;subd=sqlauthority&#038;ref=&#038;feed=1" width="1" height="1" /><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=XqzxfVYGMjs:E0iU6Z1r-X0:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=XqzxfVYGMjs:E0iU6Z1r-X0:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=XqzxfVYGMjs:E0iU6Z1r-X0:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=l6gmwiTKsz0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=XqzxfVYGMjs:E0iU6Z1r-X0:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?i=XqzxfVYGMjs:E0iU6Z1r-X0:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/SQLAuthority/~4/XqzxfVYGMjs" height="1" width="1"/>]]></content:encoded><description>Azure SQL database backup used to be a difficult task. Not any more. With SQLBackupAndFTP with Azure it became trivial. Here’s what you basically need to do: Once  SQLBackupAndFTP with Azure  is installed, click at &amp;#8220;Connect to SQL Server / Azure&amp;#8221; button and specify connection properties for your Azure SQL Databases: Then click &amp;#8220;Run Now&amp;#8221; to [&amp;#8230;]&lt;img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;#038;blog=668536&amp;#038;post=23621&amp;#038;subd=sqlauthority&amp;#038;ref=&amp;#038;feed=1" width="1" height="1" /&gt;</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blog.sqlauthority.com/2013/05/06/sql-server-azure-sql-databases-backup-made-easy-with-sqlbackupandftp/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">2</slash:comments><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://1.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&amp;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://www.pinaldave.com/bimg/SQLBackupAndFTP-Azure/image03.png" medium="image" /><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://www.pinaldave.com/bimg/SQLBackupAndFTP-Azure/image00.png" medium="image" /><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://www.pinaldave.com/bimg/SQLBackupAndFTP-Azure/image04.png" medium="image" /><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://www.pinaldave.com/bimg/SQLBackupAndFTP-Azure/image01.png" medium="image" /><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://www.pinaldave.com/bimg/SQLBackupAndFTP-Azure/image05.png" medium="image" /><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://www.pinaldave.com/bimg/SQLBackupAndFTP-Azure/image06.png" medium="image" /><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://www.pinaldave.com/bimg/SQLBackupAndFTP-Azure/image07.png" medium="image" /><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://www.pinaldave.com/bimg/SQLBackupAndFTP-Azure/image01.png" medium="image" /><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://www.pinaldave.com/bimg/SQLBackupAndFTP-Azure/image02.png" medium="image" /><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://www.pinaldave.com/bimg/SQLBackupAndFTP-Azure/image08.png" medium="image" /><feedburner:origLink>http://blog.sqlauthority.com/2013/05/06/sql-server-azure-sql-databases-backup-made-easy-with-sqlbackupandftp/</feedburner:origLink></item><item><title>SQL SERVER – sys.dm_xe_map_values – Reasons for Statement Recompilation</title><link>http://feedproxy.google.com/~r/SQLAuthority/~3/W9aqbDXR-sI/</link><category>PostADay</category><category>SQL</category><category>SQL Authority</category><category>SQL DMV</category><category>SQL Query</category><category>SQL Server</category><category>SQL Tips and Tricks</category><category>T SQL</category><category>Technology</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">pinaldave</dc:creator><pubDate>Sat, 04 May 2013 18:30:32 PDT</pubDate><guid isPermaLink="false">http://blog.sqlauthority.com/?p=23612</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p style="text-align:justify;">Sometime I feel I know a lot about SQL Server and very next moment, I realize that honestly I do not know much about this product. Earlier today, I had similar moments. I was playing with few DMVs and suddenly I ended up on the DMV sys.dm_xe_map_values. There are only four columns and one of the columns is a GUID.</p>
<p style="text-align:justify;">The reason I ended up on this DMV was because I was asked a question what are the different reasons any statement can be recompiled. I knew few of the reasons why would any statement recompile but I was not aware of all the reasons for any statement recompilation. After doing some search on the internet and my older archived I figured out the reasons for Statement Recompilation using sails. dm_xe_map_values.</p>
<p style="text-align:justify;">If you have collected trace using either SQL Server Profiler or an Extended Events session, you can capture SP:Recompile event in your trace. When you look at the event it displays the reason for recompiling the statement. However, when you run following statement in SQL Server Management Studio, you can find all the possible reasons for statement recompilation.</p>
<p style="text-align:justify;"><code style="font-size:12px;"><span style="color:blue;">SELECT </span><span style="color:black;">dxmv.name</span><span style="color:gray;">,<br />
</span><span style="color:black;">dxmv.map_key</span><span style="color:gray;">,<br />
</span><span style="color:black;">dxmv.map_value<br />
</span><span style="color:blue;">FROM </span><span style="color:black;">sys.dm_xe_map_values </span><span style="color:blue;">AS </span><span style="color:black;">dxmv<br />
</span><span style="color:blue;">WHERE </span><span style="color:black;">dxmv.name </span><span style="color:blue;">= </span><span style="color:red;">N'statement_recompile_cause'<br />
</span><span style="color:blue;">ORDER BY </span><span style="color:black;">dxmv.map_key</span><span style="color:gray;">;</span></code></p>
<p style="text-align:justify;">When I ran this query, I got following 14 different reasons for statement recompilation. I personally was not aware of all the 14 and it was interesting learning for me.</p>
<pre>map_key map_value
1 Schema changed
2 Statistics changed
3 Deferred compile
4 Set option change
5 Temp table changed
6 Remote rowset changed
7 For browse permissions changed
8 Query notification environment changed
9 PartitionView changed
10 Cursor options changed
11 Option (recompile) requested
12 Parameterized plan flushed
13 Test plan linearization
14 Plan affecting database version changed</pre>
<p style="text-align:justify;">It will be interesting to build a test case for each of the compilation reason, as it will give a great learning experience.</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-dmv/'>SQL DMV</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/23612/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/23612/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&#038;blog=668536&#038;post=23612&#038;subd=sqlauthority&#038;ref=&#038;feed=1" width="1" height="1" /><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=W9aqbDXR-sI:lYkhq3rrAi4:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=W9aqbDXR-sI:lYkhq3rrAi4:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=W9aqbDXR-sI:lYkhq3rrAi4:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=l6gmwiTKsz0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=W9aqbDXR-sI:lYkhq3rrAi4:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?i=W9aqbDXR-sI:lYkhq3rrAi4:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/SQLAuthority/~4/W9aqbDXR-sI" height="1" width="1"/>]]></content:encoded><description>Sometime I feel I know a lot about SQL Server and very next moment, I realize that honestly I do not know much about this product. Earlier today, I had similar moments. I was playing with few DMVs and suddenly I ended up on the DMV sys.dm_xe_map_values. There are only four columns and one of the [&amp;#8230;]&lt;img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;#038;blog=668536&amp;#038;post=23612&amp;#038;subd=sqlauthority&amp;#038;ref=&amp;#038;feed=1" width="1" height="1" /&gt;</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blog.sqlauthority.com/2013/05/05/sql-server-sys-dm_xe_map_values-reasons-for-statement-recompilation/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">1</slash:comments><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://1.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&amp;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content><feedburner:origLink>http://blog.sqlauthority.com/2013/05/05/sql-server-sys-dm_xe_map_values-reasons-for-statement-recompilation/</feedburner:origLink></item><item><title>SQL SERVER – Weekly Series – Memory Lane – #027</title><link>http://feedproxy.google.com/~r/SQLAuthority/~3/0MlryKyI_1M/</link><category>Memory Lane</category><category>PostADay</category><category>SQL</category><category>SQL Authority</category><category>SQL Query</category><category>SQL Server</category><category>SQL Tips and Tricks</category><category>T SQL</category><category>Technology</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">pinaldave</dc:creator><pubDate>Fri, 03 May 2013 18:30:25 PDT</pubDate><guid isPermaLink="false">http://blog.sqlauthority.com/?p=23585</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p style="text-align:justify;"><img class="alignleft" alt="" src="http://www.pinaldave.com/bimg/memorylane.jpg" width="200" height="129" />Here is the list of selected articles of SQLAuthority.com across all these years. Instead of just listing all the articles I have selected a few of my most favorite articles and have listed them here with additional notes below it. Let me know which one of the following is your favorite article from memory lane.</p>
<h3 style="text-align:justify;">2007</h3>
<p style="text-align:justify;"><strong><a href="http://blog.sqlauthority.com/2007/04/28/sql-server-good-better-and-best-programming-techniques/">Good, Better and Best Programming Techniques</a><br />
</strong>Well, here is my note which I prepared to discuss in my earlier meeting. This is not complete and is not in very details. This note contains what I think is best programming technique in SQL. There are lots to add here and many <span class="GINGER_SOFATWARE_correct">opinion</span> are very <span class="GINGER_SOFATWARE_correct">generic</span> to SQL and other programming languages.</p>
<p style="text-align:justify;"><strong><a href="http://blog.sqlauthority.com/2007/04/28/sql-server-explanation-sql-server-merge-join/">Explanation SQL SERVER Merge Join</a></strong><br />
Merge join itself is very fast, but it can be an expensive choice if sort operations are required. However, if the data volume is large and the desired data can be obtained presorted from existing B-tree indexes, merge join is often the fastest available join algorithm.</p>
<p style="text-align:justify;"><strong><a href="http://blog.sqlauthority.com/2007/04/29/sql-server-random-number-generator-script-sql-query/">Random Number Generator Script – SQL Query</a></strong><br />
One of the most popular blog <span class="GINGER_SOFATWARE_correct">post</span> where I demonstrate how many different ways one can generate random numbers. I have also built a SQL in Sixty Seconds Video on this subject as well.</p>
<p style="text-align:justify;"><span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='500' height='312' src='http://www.youtube.com/embed/1d29ka0hHnc?version=3&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' frameborder='0'></iframe></span></p>
<p style="text-align:justify;"><strong><a href="http://blog.sqlauthority.com/2007/04/30/sql-server-set-rowcount-retrieving-or-limiting-the-first-n-records-from-a-sql-query/">SET ROWCOUNT – Retrieving or Limiting the First N Records from a SQL Query</a></strong><br />
SET ROWCOUNT option is ignored for INSERT, UPDATE, and DELETE statements against remote tables and local, remote partitioned views and when an explicit TOP expression is used in the same statement. This includes statements in which INSERT is followed by a SELECT clause. SET ROWCOUNT overrides the SELECT statement TOP keyword if the <span class="GINGER_SOFATWARE_correct">rowcount</span> is the smaller value.</p>
<p style="text-align:justify;"><strong><a href="http://blog.sqlauthority.com/2007/04/30/case-sensitive-sql-query-search/" target="_blank">Collate – Case Sensitive SQL Query Search</a></strong><br />
Here is a quick script which does case sensitive SQL Query Search in the database.</p>
<p style="text-align:justify;"><a href="http://blog.sqlauthority.com/2007/05/01/sql-server-copy-column-headers-in-query-analyzers-in-result-set/"><strong>Copy Column Headers in Query Analyzers in Result Set</strong><br />
</a>Another very popular request which I transformed into SQL in Sixty Seconds Video.</p>
<p style="text-align:justify;"><span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='500' height='312' src='http://www.youtube.com/embed/BL5GO-jH3HA?version=3&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' frameborder='0'></iframe></span></p>
<p style="text-align:justify;"><strong><a href="http://blog.sqlauthority.com/2007/05/01/sql-server-user-defined-functions-udf-to-reverse-string-udf_reversestring/">User Defined Functions (UDF) to Reverse String – UDF_ReverseString</a></strong><br />
UDF_ReverseString User Defined Functions returns the Reversed String starting from certain positions. First parameters take the string to be reversed. Second parameters take the position from where the string starts reversing.</p>
<p style="text-align:justify;"><a href="http://blog.sqlauthority.com/2007/05/02/sql-server-2005-top-improvementsenhancements/"><strong>TOP Improvements/EnhancementsSQL Server 2005 introduces two enhancements to the TOP clause.</strong><br />
</a>1) User can specify an expression as an input to the TOP keyword.<br />
2) User can use TOP in modification statements (INSERT, UPDATE, and DELETE).</p>
<p style="text-align:justify;"><strong><a href="http://blog.sqlauthority.com/2007/05/03/sql-server-enable-login-disable-login-using-alter-logic-change-name-of-the-sa/">Enable Login – Disable Login using ALTER LOGIC – Change name of the ‘SA’</a></strong><br />
One of the most important but ignored SQL Security Tip. A must read for everyone!</p>
<h3 style="text-align:justify;">2008</h3>
<p style="text-align:justify;"><strong>Find Table in Every Database of SQL Server</strong><br />
This is one of the most asked T-SQL Script where user <span class="GINGER_SOFATWARE_correct">want</span> to know where the table is used in every single database on the server. It is a two part story. Do not miss to read <strong><a href="http://blog.sqlauthority.com/2008/04/29/sql-server-find-table-in-every-database-of-sql-server/" target="_blank">Part 1</a></strong> and <strong><a href="http://blog.sqlauthority.com/2008/04/30/sql-server-find-table-in-every-database-of-sql-server-part-2/" target="_blank">Part 2</a></strong>.</p>
<p style="text-align:justify;"><a href="http://blog.sqlauthority.com/2008/05/04/sql-server-2000-sql-server-delete-duplicate-records-rows-readers-contribution/"><strong>Delete Duplicate Records – Rows – Readers Contribution</strong><br />
</a>A quick script from reader very important article but very less explored by users. Let me know your thoughts about this one.</p>
<h3 style="text-align:justify;">2009</h3>
<p style="text-align:justify;"><strong><a href="http://blog.sqlauthority.com/2009/04/28/sql-server-introduction-to-sql-server-encryption-and-symmetric-key-encryption-tutorial-with-script/">Introduction to SQL Server Encryption and Symmetric Key Encryption Tutorial with Script</a></strong><br />
SQL Server 2005 and later versions provide encryption as a new feature to protect data against hackers’ attacks. Hackers might be able to penetrate the database or tables, but owing to encryption they would not be able to understand the data or make use of it. Nowadays, it has become imperative to encrypt crucial security-related data while storing in the database as well as during transmission across a network between the client and the server.</p>
<p style="text-align:justify;"><strong><a href="http://blog.sqlauthority.com/2009/04/29/sql-server-solution-to-puzzle-shortest-code-to-perform-ssn-validation/">Solution to Puzzle – Shortest Code to Perform SSN Validation</a></strong><br />
<strong>Write the shortest T-SQL Code that removes invalid SSN values and returns a result set with only valid SSN values</strong>. This blog post was <span class="GINGER_SOFATWARE_correct">winner</span> of the T-SQL Challenges on the same subject. <span class="GINGER_SOFATWARE_correct">If</span> will be interesting to see if you can come up with a better optimized solution.</p>
<p style="text-align:justify;"><a href="http://blog.sqlauthority.com/2009/05/02/sql-server-example-of-ddl-dml-dcl-and-tcl-commands/"><strong>Example of DDL, DML, DCL and TCL Commands</strong><br />
</a>Data Manipulation Language, Data Definition Language, Data Control Language, Transactional Control Language explained in simple words.</p>
<p style="text-align:justify;"><a href="http://blog.sqlauthority.com/2009/05/03/sql-server-add-or-remove-identity-property-on-column/"><strong>Add or Remove Identity Property on <span class="GINGER_SOFATWARE_correct">Column</span></strong><br />
</a>How difficult is it to add an Identity property to an existing column in a table? Is there any T-SQL that can perform this action? For most, the answer to the above two questions is an absolute NO! There is no straightforward T-SQL like ALTER TABLE… <span class="GINGER_SOFATWARE_correct">or</span> MODIFY COLUMN to add an Identity Property to an existing column in a table. However, there is an easy way to accomplish this action. It can be done through SSMS.</p>
<p style="text-align:justify;"><strong><a href="http://blog.sqlauthority.com/2009/05/04/sql-server-roadmap-of-microsoft-certifications-sql-server-certifications-2/">Roadmap of Microsoft Certifications – SQL Server Certifications</a></strong><br />
There are several benefits you can gain after clearing certification exams. After passing the first exam, developers earn credential of Microsoft Certified Professional commonly known as MCP. Once credentials are achieved developers get access to an official transcript, logos and certificates, and have their own landing page on Microsoft.com! According to Microsoft’s official site, real MCPs get real benefits of  <strong>Reward, Respect and Recognition</strong>.</p>
<h3 style="text-align:justify;">2010</h3>
<p style="text-align:justify;"><strong><a href="http://blog.sqlauthority.com/2010/04/28/sql-server-guid-vs-int-your-opinion/">GUID <span class="GINGER_SOFATWARE_correct">vs</span> INT – Your Opinion</a><br />
</strong>This is an age old problem and I want to compile the list stating the advantages and disadvantages of using GUID and INT as a Primary Key or Clustered Index or Both (the usual case). The epic intense debate is happening on this particular topic till today after 3 years. You can see there is a wealth of information on this blog which one can just learn reading the original blog post as well as comments associated with the blog post.</p>
<p style="text-align:justify;"><strong><a href="http://blog.sqlauthority.com/2010/04/29/sql-server-disable-clustered-index-and-data-insert/">Disable Clustered Index and Data Insert</a></strong><br />
Should we disable the clustered index while we insert the large data or we should drop the clustered index while we insert large data. Honestly, the answer is very simple, drop the clustered index. If we disable clustered index the impact of it is much different than we expect. Check out this blog post which describes the same issue with working demo.</p>
<p style="text-align:justify;">Here is one of my old <span class="GINGER_SOFATWARE_correct">photo</span> of <a href="http://blog.sqlauthority.com/2010/04/30/sqlauthority-news-teched-india-april-12-14-2010-bangalore-an-unforgettable-experience-an-opportunity-of-a-lifetime/" target="_blank">TechEd 2010</a> &#8211; I had <span class="GINGER_SOFATWARE_correct">great time</span> presenting on the stage in <span class="GINGER_SOFATWARE_correct">year</span> 2010.</p>
<p style="text-align:justify;"><img class="alignnone" alt="" src="http://www.pinaldave.com/bimg/TechEdIndia2010/TechEdIndia%20%2816%29.jpg" width="500" height="375" /></p>
<p style="text-align:justify;"><strong><a href="http://blog.sqlauthority.com/2010/05/01/sql-server-what-is-adventureworks/">What is AdventureWorks?</a></strong><br />
This question is always there in my mailbox. Till today, <span class="GINGER_SOFATWARE_correct">everyday</span> multiple times. Here is the blog post where I describe where one can get AdventureWorks as well I explain how they can install it as well.</p>
<p style="text-align:justify;"><span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='500' height='312' src='http://www.youtube.com/embed/-NRSvfKlh84?version=3&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' frameborder='0'></iframe></span></p>
<p style="text-align:justify;"><strong><a href="http://blog.sqlauthority.com/2010/05/03/sql-server-shrinkfile-and-truncate-log-file-in-sql-server-2008/">SHRINKFILE and TRUNCATE Log File in SQL Server 2008</a></strong><br />
There are few absolute No-No&#8217;s in SQL Server environment. There should be no need to shrink and truncate log files in daily routine. Though this blog post was written keeping SQL Server 2008 in mind, this is also valid in SQL Server 2008 R2 and SQL Server 2012. If you are going to shrink your database, I strongly suggest that you read this blog post before it.</p>
<h3 style="text-align:justify;">2011</h3>
<p style="text-align:justify;"><a href="http://blog.sqlauthority.com/2011/04/28/sql-server-denali-executing-stored-procedure-with-result-sets/"><strong>Executing Stored Procedure with Result Sets</strong><br />
</a></p>
<p style="text-align:justify;"><strong><em>Q:</em></strong><em> Why are you using User Defined Function instead of Stored Procedure?</em></p>
<p style="text-align:justify;"><strong><em>A:</em></strong><em> I cannot SELECT from SP, but I can from <span class="GINGER_SOFATWARE_correct">UDF</span>.</em></p>
<p style="text-align:justify;">The SQL Server 2012 version has come up with a very interesting feature called WITH RESULT SET.</p>
<p style="text-align:justify;">Read here the <strong><a href="http://blog.sqlauthority.com/2011/04/29/sql-server-denali-executing-stored-procedure-with-result-sets-2/" target="_blank">follow up article</a></strong>.</p>
<p style="text-align:justify;"><strong><a href="http://blog.sqlauthority.com/2011/04/30/sql-server-ctas-create-table-as-select-what-is-ctas/">CTAS – Create Table As SELECT – What is CTAS?</a></strong><br />
CTAS stands for ‘Create Table As Select’. This method is used when <span class="GINGER_SOFATWARE_correct">table</span> was not created earlier and needs to be created when data from one table needs to be inserted into a newly created table from another table. The new table is created with the same data types as that of the selected columns.</p>
<p style="text-align:justify;"><strong><a href="http://blog.sqlauthority.com/2011/05/02/sql-server-performance-improvement-with-of-executing-stored-procedure-with-result-sets-in-denali/" target="_blank">Performance Improvement with of Executing Stored Procedure with Result Sets in SQL Server 2012</a></strong><br />
This is one of the article which really explains why one should use any feature for example. One should use the feature of Executing Stored Procedure with Resulset because it gives better performance over traditional methods.</p>
<h3 style="text-align:justify;">2012</h3>
<p style="text-align:justify;"><a href="http://blog.sqlauthority.com/2012/04/29/sql-server-microsoft-certification-sql-server-2012/"><strong>Microsoft Certification – SQL Server 2012</strong><br />
</a>Read this blog post which describes how new Microsoft Certification have changed with the release of SQL Server 2012.<br />
<img class="alignnone" alt="" src="http://www.pinaldave.com/bimg/cert2.png" width="259" height="233" /></p>
<p style="text-align:justify;"><strong><a href="http://blog.sqlauthority.com/2012/05/02/sql-server-video-step-by-step-installation-of-sql-server-2012/">Video – Step by Step Installation of SQL Server 2012</a></strong><br />
Here is a video tutorial for how to install SQL Server 2012.</p>
<p style="text-align:justify;"><span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='500' height='312' src='http://www.youtube.com/embed/2vQ_wrwUvK8?version=3&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' frameborder='0'></iframe></span></p>
<p style="text-align:justify;"><strong><a href="http://blog.sqlauthority.com/2012/05/03/sql-server-a-tricky-question-and-even-trickier-answer-index-intersection-partition-function/">A Tricky Question and Even Trickier Answer – Index Intersection – Partition Function</a></strong><br />
Write a select statement using a single table, using single table single time only without using join keywords, which generate an execution plan with 2 join operators. Use AdventureWorks as a sample database.</p>
<p style="text-align:justify;"><strong><a href="http://blog.sqlauthority.com/2012/05/04/sql-server-identify-columnstore-index-usage-from-execution-plan/">Identify Columnstore Index Usage from Execution Plan</a></strong><br />
<strong><em>How do I know if <span class="GINGER_SOFATWARE_correct">columnstore index</span> is used by <span class="GINGER_SOFATWARE_correct">query</span> through execution plan? </em></strong>Here is the detail blog post about how to identify if <span class="GINGER_SOFATWARE_correct">columnstore index</span> is used in the query or not.</p>
<p style="text-align:justify;">Here are the steps which are to be followed:</p>
<ul style="text-align:justify;">
<li>Create a sample table</li>
<li>Insert some data</li>
<li>Create clustered index on it</li>
<li>Create <span class="GINGER_SOFATWARE_correct">nonclustered</span> Columnstore Index on it</li>
<li>Enable execution plan in SSMS</li>
<li>Run two SELECT statement together with using clustered index and <span class="GINGER_SOFATWARE_correct">columnstore</span> index (use hint if needed)</li>
</ul>
<p style="text-align:justify;"><span style="text-align:justify;">Reference: </span><strong style="text-align:justify;">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/memory-lane/'>Memory Lane</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/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/23585/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/23585/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&#038;blog=668536&#038;post=23585&#038;subd=sqlauthority&#038;ref=&#038;feed=1" width="1" height="1" /><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=0MlryKyI_1M:KoIGSguu8R8:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=0MlryKyI_1M:KoIGSguu8R8:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=0MlryKyI_1M:KoIGSguu8R8:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=l6gmwiTKsz0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=0MlryKyI_1M:KoIGSguu8R8:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?i=0MlryKyI_1M:KoIGSguu8R8:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/SQLAuthority/~4/0MlryKyI_1M" height="1" width="1"/>]]></content:encoded><description>Here is the list of selected articles of SQLAuthority.com across all these years. Instead of just listing all the articles I have selected a few of my most favorite articles and have listed them here with additional notes below it. Let me know which one of the following is your favorite article from memory lane. [&amp;#8230;]&lt;img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;#038;blog=668536&amp;#038;post=23585&amp;#038;subd=sqlauthority&amp;#038;ref=&amp;#038;feed=1" width="1" height="1" /&gt;</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blog.sqlauthority.com/2013/05/04/sql-server-weekly-series-memory-lane-027/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">0</slash:comments><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://1.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&amp;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://www.pinaldave.com/bimg/memorylane.jpg" medium="image" /><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://www.pinaldave.com/bimg/TechEdIndia2010/TechEdIndia%20%2816%29.jpg" medium="image" /><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://www.pinaldave.com/bimg/cert2.png" medium="image" /><feedburner:origLink>http://blog.sqlauthority.com/2013/05/04/sql-server-weekly-series-memory-lane-027/</feedburner:origLink></item><item><title>SQL SERVER – DELETE From SELECT Statement – Using JOIN in DELETE Statement – Multiple Tables in DELETE Statement</title><link>http://feedproxy.google.com/~r/SQLAuthority/~3/qtEM1VcRja8/</link><category>PostADay</category><category>SQL</category><category>SQL Authority</category><category>SQL Joins</category><category>SQL Query</category><category>SQL Server</category><category>SQL Tips and Tricks</category><category>T SQL</category><category>Technology</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">pinaldave</dc:creator><pubDate>Thu, 02 May 2013 18:30:24 PDT</pubDate><guid isPermaLink="false">http://blog.sqlauthority.com/?p=23574</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p style="text-align:justify;">This blog post is inspired from my earlier blog post of <strong><a href="http://blog.sqlauthority.com/2013/04/30/sql-server-update-from-select-statement-using-join-in-update-statement-multiple-tables-in-update-statement/" target="_blank">UPDATE From SELECT Statement – Using JOIN in UPDATE Statement – Multiple Tables in Update Statement</a></strong>. In the blog post I discussed about how we can use JOIN and multiple tables in the UPDATE statement. There were plenty of the emails after this blog post discussing about using JOIN in the DELETE statement as well using multiple tables in the DELETE statement.</p>
<p style="text-align:justify;">It is totally possible to use JOIN and multiple tables in the DELETE statement. Let us use the same table structure which we had used previously.</p>
<p style="text-align:justify;">Let us see the following example. We have two tables Table 1 and Table 2.</p>
<p style="text-align:justify;"><code style="font-size:12px;"><span style="color:green;">-- Create table1<br />
</span><span style="color:blue;">CREATE TABLE </span><span style="color:black;">Table1 </span><span style="color:gray;">(</span><span style="color:black;">Col1 </span><span style="color:blue;">INT</span><span style="color:gray;">, </span><span style="color:black;">Col2 </span><span style="color:blue;">INT</span><span style="color:gray;">, </span><span style="color:black;">Col3 </span><span style="color:blue;">VARCHAR</span><span style="color:gray;"><span class="GINGER_SOFATWARE_correct">(</span></span><span style="color:black;">100</span><span style="color:gray;">))<br />
</span><span style="color:blue;">INSERT INTO </span><span style="color:black;">Table1 </span><span style="color:gray;">(</span><span style="color:black;">Col1</span><span style="color:gray;">, </span><span style="color:black;">Col2</span><span style="color:gray;">, </span><span style="color:black;">Col3</span><span style="color:gray;">)<br />
</span><span style="color:blue;">SELECT </span><span style="color:black;">1</span><span style="color:gray;">, </span><span style="color:black;">11</span><span style="color:gray;">, </span><span style="color:red;">'First'<br />
</span><span style="color:blue;">UNION </span><span style="color:gray;">ALL<br />
</span><span style="color:blue;">SELECT </span><span style="color:black;">11</span><span style="color:gray;">, </span><span style="color:black;">12</span><span style="color:gray;">, </span><span style="color:red;">'Second'<br />
</span><span style="color:blue;">UNION </span><span style="color:gray;">ALL<br />
</span><span style="color:blue;">SELECT </span><span style="color:black;">21</span><span style="color:gray;">, </span><span style="color:black;">13</span><span style="color:gray;">, </span><span style="color:red;">'Third'<br />
</span><span style="color:blue;">UNION </span><span style="color:gray;">ALL<br />
</span><span style="color:blue;">SELECT </span><span style="color:black;">31</span><span style="color:gray;">, </span><span style="color:black;">14</span><span style="color:gray;">, </span><span style="color:red;">'Fourth'<br />
</span><span style="color:black;">GO<br />
</span><span style="color:green;">-- Create table2<br />
</span><span style="color:blue;">CREATE TABLE </span><span style="color:black;">Table2 </span><span style="color:gray;">(</span><span style="color:black;">Col1 </span><span style="color:blue;">INT</span><span style="color:gray;">, </span><span style="color:black;">Col2 </span><span style="color:blue;">INT</span><span style="color:gray;">, </span><span style="color:black;">Col3 </span><span style="color:blue;">VARCHAR</span><span style="color:gray;"><span class="GINGER_SOFATWARE_correct">(</span></span><span style="color:black;">100</span><span style="color:gray;">))<br />
</span><span style="color:blue;">INSERT INTO </span><span style="color:black;">Table2 </span><span style="color:gray;">(</span><span style="color:black;">Col1</span><span style="color:gray;">, </span><span style="color:black;">Col2</span><span style="color:gray;">, </span><span style="color:black;">Col3</span><span style="color:gray;">)<br />
</span><span style="color:blue;">SELECT </span><span style="color:black;">1</span><span style="color:gray;">, </span><span style="color:black;">21</span><span style="color:gray;">, </span><span style="color:red;">'Two-One'<br />
</span><span style="color:blue;">UNION </span><span style="color:gray;">ALL<br />
</span><span style="color:blue;">SELECT </span><span style="color:black;">11</span><span style="color:gray;">, </span><span style="color:black;">22</span><span style="color:gray;">, </span><span style="color:red;">'Two-Two'<br />
</span><span style="color:blue;">UNION </span><span style="color:gray;">ALL<br />
</span><span style="color:blue;">SELECT </span><span style="color:black;">21</span><span style="color:gray;">, </span><span style="color:black;">23</span><span style="color:gray;">, </span><span style="color:red;">'Two-Three'<br />
</span><span style="color:blue;">UNION </span><span style="color:gray;">ALL<br />
</span><span style="color:blue;">SELECT </span><span style="color:black;">31</span><span style="color:gray;">, </span><span style="color:black;">24</span><span style="color:gray;">, </span><span style="color:red;">'Two-Four'<br />
</span><span style="color:black;">GO</span><span style="color:green;"><br />
</span></code></p>
<p style="text-align:justify;">Now let us check the content in the table.</p>
<p style="text-align:justify;"><code style="font-size:12px;"><span style="color:blue;">SELECT </span><span style="color:gray;">*<br />
</span><span style="color:blue;">FROM </span><span style="color:black;">Table1<br />
</span><span style="color:blue;">SELECT </span><span style="color:gray;">*<br />
</span><span style="color:blue;">FROM </span><span style="color:black;">Table2<br />
GO</span></code></p>
<p style="text-align:justify;">Now pay attention to following diagram. Here we have two tables Table1 and Table 2. Our requirement is that we want to delete those two records from Table1 where Table2 Col3 values are &#8220;Two-Three&#8221; and &#8220;Two-Four&#8221; and Col1 in both the tables are the same.</p>
<p style="text-align:justify;">I have explained the above statement very easily in following diagram.</p>
<p style="text-align:justify;"><img class="alignnone" alt="" src="http://www.pinaldave.com/bimg/deletejoin.jpg" width="295" height="329" /></p>
<p style="text-align:justify;">When you look at this it looks very simple but when we try to think the solution, I have seen developers coming up with many different solutions for example sometime they write cursor, table variables, local variables etc. However, the easiest and the most clean way is to use JOIN clause in the DELETE statement and use multiple tables in the DELETE statement and do the task.</p>
<p style="text-align:justify;"><code style="font-size:12px;"><span style="color:green;">-- Delete data from Table1<br />
</span><span style="color:blue;">DELETE </span><span style="color:black;">Table1<br />
</span><span style="color:blue;">FROM </span><span style="color:black;">Table1 t1<br />
</span><span style="color:blue;">INNER JOIN </span><span style="color:black;">Table2 t2 </span><span style="color:blue;">ON </span><span style="color:black;">t1.Col1 </span><span style="color:blue;">= </span><span style="color:black;">t2.Col1<br />
</span><span style="color:blue;">WHERE </span><span style="color:black;">t2.Col3 </span><span style="color:blue;">IN </span><span style="color:gray;">(</span><span style="color:red;">'Two-Three'</span><span style="color:gray;">,</span><span style="color:red;">'Two-Four'</span><span style="color:gray;">)<br />
</span><span style="color:black;">GO</span></code></p>
<p style="text-align:justify;">Now let us select the data from these tables.</p>
<p style="text-align:justify;"><code style="font-size:12px;"><span style="color:green;">-- Check the content of the table<br />
</span><span style="color:blue;">SELECT </span><span style="color:gray;">*<br />
</span><span style="color:blue;">FROM </span><span style="color:black;">Table1<br />
</span><span style="color:blue;">SELECT </span><span style="color:gray;">*<br />
</span><span style="color:blue;">FROM </span><span style="color:black;">Table2<br />
GO<br />
</span></code></p>
<p style="text-align:justify;"><img class="alignnone" alt="" src="http://www.pinaldave.com/bimg/deletejoin1.jpg" width="294" height="279" /></p>
<p style="text-align:justify;">As you can see that using JOIN clause in DELETE statement it makes it very easy to update data in one table from another table. You can additionally use MERGE statement to do the same as well, however I personally prefer this method. Let us clean up the clause by dropping the tables which we have created.</p>
<p style="text-align:justify;"><code style="font-size:12px;"><span style="color:blue;">DROP TABLE </span><span style="color:black;">Table1<br />
</span><span style="color:blue;">DROP TABLE </span><span style="color:black;">Table2<br />
GO</span></code></p>
<p style="text-align:justify;">Do let me know if you use any other trick in similar situations. If you do, I would like to learn more about it.</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-joins/'>SQL Joins</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/23574/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/23574/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&#038;blog=668536&#038;post=23574&#038;subd=sqlauthority&#038;ref=&#038;feed=1" width="1" height="1" /><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=qtEM1VcRja8:IQa_0eFq-gU:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=qtEM1VcRja8:IQa_0eFq-gU:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=qtEM1VcRja8:IQa_0eFq-gU:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=l6gmwiTKsz0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=qtEM1VcRja8:IQa_0eFq-gU:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?i=qtEM1VcRja8:IQa_0eFq-gU:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/SQLAuthority/~4/qtEM1VcRja8" height="1" width="1"/>]]></content:encoded><description>This blog post is inspired from my earlier blog post of UPDATE From SELECT Statement – Using JOIN in UPDATE Statement – Multiple Tables in Update Statement. In the blog post I discussed about how we can use JOIN and multiple tables in the UPDATE statement. There were plenty of the emails after this blog [&amp;#8230;]&lt;img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;#038;blog=668536&amp;#038;post=23574&amp;#038;subd=sqlauthority&amp;#038;ref=&amp;#038;feed=1" width="1" height="1" /&gt;</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blog.sqlauthority.com/2013/05/03/sql-server-delete-from-select-statement-using-join-in-delete-statement-multiple-tables-in-delete-statement/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">5</slash:comments><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://1.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&amp;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://www.pinaldave.com/bimg/deletejoin.jpg" medium="image" /><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://www.pinaldave.com/bimg/deletejoin1.jpg" medium="image" /><feedburner:origLink>http://blog.sqlauthority.com/2013/05/03/sql-server-delete-from-select-statement-using-join-in-delete-statement-multiple-tables-in-delete-statement/</feedburner:origLink></item><item><title>SQLAuthority News – Presenting 3 Technical Sessions at Great Indian Developer Summit – May 7, 2013 – Bangalore</title><link>http://feedproxy.google.com/~r/SQLAuthority/~3/tvbN8yzcdg4/</link><category>About Me</category><category>Technology</category><category>SQL Server</category><category>SQL</category><category>SQL Query</category><category>SQL Tips and Tricks</category><category>SQL Authority</category><category>SQLAuthority News</category><category>T SQL</category><category>SQLAuthority Author Visit</category><category>PostADay</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">pinaldave</dc:creator><pubDate>Wed, 01 May 2013 18:30:52 PDT</pubDate><guid isPermaLink="false">http://blog.sqlauthority.com/?p=23570</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p style="text-align:justify;"><img class="alignleft" alt="" src="http://www.pinaldave.com/bimg/gidsimage.jpg" width="389" height="125" />I will be presenting once again 3 Technical Sessions on SQL Server and Performance Tuning at Great Indian Developer Summit on May 7, 2013. If you are going to attend the event, you do not want to miss the technical sessions at any cost. Here is the generic theme for every session I will be presenting at Great Indian Developer Summit.</p>
<ul style="text-align:justify;">
<li>Each session will have 30% theory and 70% demonstrations</li>
<li>Attendees will have access to scripts presented in the session</li>
<li>Location to review the videos and free learning material associated with the session</li>
<li>Practical Performance Tuning Tips to tune your server</li>
</ul>
<p style="text-align:justify;">Attendees will be able to learn the knowledge which they will be able to apply as soon as they walk out of the session. Here <span class="GINGER_SOFATWARE_correct">is</span> the details about the session:</p>
<h3 style="text-align:justify;">Tips and Tricks for Blazing Fast SQL Server Performance</h3>
<p style="text-align:justify;">12:00 PM | May 7, 2013 | Main Hall<br />
60 mins | GIDS.NET | Session</p>
<p style="text-align:justify;">Slow Running Queries are the most common problem that developers face while working with SQL Server. While it is easy to blame the SQL Server for unsatisfactory performance, however the issue often persists with the way queries have been written, and how SQL Server has been set up. The session will focus on the ways of identifying problems that slow down SQL Servers, and tricks to fix them. In this session we will cover the common issues related to the Indexes, Statistics, Joins, Conditions as well cover a few of the mistakes developers do when they are rushing to meet deadlines. We will quickly cover SQL Server Worst Practices as well have a quiz during the session to keep the conversation alive. Developers will walk out with scripts and knowledge that can be applied to their servers, immediately post the session. Additionally all attendees of the session will have access to learning material presented in the session.</p>
<h3 style="text-align:justify;">Performance in 60 Seconds &#8211; Database Tricks Every SharePoint Developer MUST Know</h3>
<p style="text-align:justify;">14:00 PM| May 7, 2013 | SD Hall<br />
60 mins | GIDS.NET | Session</p>
<p style="text-align:justify;">Data and Database is a very important aspect of SharePoint implementations. SharePoint Developers often come across situations where they face a slow server response, even though their hardware specifications are above par. This session is for all the SharePoint Developers who want their server to perform at blazing fast speed but want to invest very little time to make it happen. We will go over various database tricks which require absolutely no time to master and require practically no SQL coding at all. After attending this session, Developers will only need 60 seconds to improve performance of their database server in their SharePoint implementation. We will have a quiz during the session to keep the conversation alive. Developers will walk out with scripts and knowledge that can be applied to their servers, immediately post the session. Additionally all attendees of the session will have access to learning material presented in the session.</p>
<h3 style="text-align:justify;">Secrets of SQL Server: Database Worst Practices</h3>
<p style="text-align:justify;">15:10 PM| May 7, 2013 | SD Hall<br />
60 mins | GIDS.NET | Session</p>
<p style="text-align:justify;">&#8220;Oh my God! What did I do?&#8221; Chances are you have heard, or even uttered, this expression. This demo-oriented session will show many examples where database professionals were dumbfounded by their own mistakes, and could even bring back memories of your own early DBA days. The goal of this session is to expose the small details that can be dangerous to the production environment and SQL Server as a whole, as well as talk about worst practices and how to avoid them. Shedding light on some of these perils and the tricks to avoid them may even save your current job. After attending this session, Developers will only need 60 seconds to improve performance of their database server in their SharePoint implementation. We will have a quiz during the session to keep the conversation alive. Developers will walk out with scripts and knowledge that can be applied to their servers, immediately post the session. Additionally all attendees of the session will have access to learning material presented in the session.</p>
<p style="text-align:justify;">If you are going to be at the event, do not hesitate to stop by <strong><a href="http://bit.ly/pl-learning" target="_blank">Pluralsight</a> </strong>booth. I will have something unique for you &#8211; do not forget to ask for it.</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/about-me/'>About Me</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/sqlauthority/sqlauthority-author-visit/'>SQLAuthority Author Visit</a>, <a href='http://blog.sqlauthority.com/category/sqlauthority/sqlauthority-news/'>SQLAuthority News</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/23570/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/23570/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&#038;blog=668536&#038;post=23570&#038;subd=sqlauthority&#038;ref=&#038;feed=1" width="1" height="1" /><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=tvbN8yzcdg4:M7uYulaQhzM:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=tvbN8yzcdg4:M7uYulaQhzM:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=tvbN8yzcdg4:M7uYulaQhzM:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=l6gmwiTKsz0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=tvbN8yzcdg4:M7uYulaQhzM:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?i=tvbN8yzcdg4:M7uYulaQhzM:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/SQLAuthority/~4/tvbN8yzcdg4" height="1" width="1"/>]]></content:encoded><description>I will be presenting once again 3 Technical Sessions on SQL Server and Performance Tuning at Great Indian Developer Summit on May 7, 2013. If you are going to attend the event, you do not want to miss the technical sessions at any cost. Here is the generic theme for every session I will be [&amp;#8230;]&lt;img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;#038;blog=668536&amp;#038;post=23570&amp;#038;subd=sqlauthority&amp;#038;ref=&amp;#038;feed=1" width="1" height="1" /&gt;</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blog.sqlauthority.com/2013/05/02/sqlauthority-news-presenting-3-technical-sessions-at-great-indian-developer-summit-may-7-2013-bangalore/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">5</slash:comments><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://1.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&amp;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://www.pinaldave.com/bimg/gidsimage.jpg" medium="image" /><feedburner:origLink>http://blog.sqlauthority.com/2013/05/02/sqlauthority-news-presenting-3-technical-sessions-at-great-indian-developer-summit-may-7-2013-bangalore/</feedburner:origLink></item><item><title>SQLAuthority News – Learn Fundamentals of MySQL Online – Pluralsight Course</title><link>http://feedproxy.google.com/~r/SQLAuthority/~3/-nYYwXnBsdY/</link><category>PostADay</category><category>SQL</category><category>SQL Authority</category><category>SQL Query</category><category>SQL Server</category><category>SQL Tips and Tricks</category><category>SQLAuthority News</category><category>T SQL</category><category>Technology</category><category>Video</category><category>MySQL</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">pinaldave</dc:creator><pubDate>Tue, 30 Apr 2013 18:30:12 PDT</pubDate><guid isPermaLink="false">http://blog.sqlauthority.com/?p=23564</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p style="text-align:justify;">Here are few of the <span class="GINGER_SOFATWARE_correct">question</span> I often receive -</p>
<ul style="text-align:justify;">
<li>Do you know anything besides SQL Server?</li>
<li>So how does it feel when the only thing which you know is SQL Server?</li>
<li>Have you worked in the past with any other programming language?</li>
</ul>
<p style="text-align:justify;">Actually, I find these questions very interesting as I do work with other technologies and I still do work with many other technologies besides SQL Server. Recently I got the opportunity to work with MySQL and have also built quite a lot of knowledge about the application as well. I found MySQL very interesting and easy to learn. It is the most popular database technology since the year 2008 and used by most numbers of database professionals in the world (including me). The latest version of MySQL is very popular and it is very easy to install on Windows Platform. One just has to download MySQL Installer and execute it. Just click next, next and you are done!</p>
<p style="text-align:justify;">Though, MySQL is very easy I have noticed that not everyone knows it well. The pace of the software industry has changed and people change their expertise quite frequently based on the project they are assigned. There are two <span class="GINGER_SOFATWARE_correct">kinds</span> of beginners in the industry 1) Those who have very little experience in the software industry and just beginning their career in this field. 2) Those who have plenty of the years of the experience but beginning their career in the particular technology. When you look at both the kinds of the people they both need training but they have different level of understanding of the subject matter.</p>
<p style="text-align:justify;">Looking at this, I decided to build a beginners course on MySQL which addresses both the kinds of the people 1) Beginners with IT field and 2) Beginners with MySQL technology. I have build following beginners course on MySQL Technology. This is part 1 of the course and for anyone who wants to learn MySQL at express speed. The length of the course is <em><strong>2 hours and 37 minutes</strong></em>, this means anyone can learn the fundaments of the MySQL in a very short period of the time.</p>
<p style="text-align:justify;">You can watch this entire course of <strong><a href="http://bit.ly/learn-mysql" target="_blank">Fundamental of MySQL</a></strong> at Pluralsight. To watch the course, you will have to subscribe to Pluralsight library. If you do not have a <span class="GINGER_SOFATWARE_correct">subscription</span> you can opt for a <span class="GINGER_SOFATWARE_correct">FREE Trial</span>. If you go to the page and do not see any link enable, please login to Pluralsight and you should be able to watch this course.</p>
<p style="text-align:justify;"><span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='500' height='312' src='http://www.youtube.com/embed/-NLwdqc1ezs?version=3&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' frameborder='0'></iframe></span></p>
<p style="text-align:justify;">Here is the video teaser which I have build for this course. Let me know what you think about it. Here is the content of the course.</p>
<ul style="text-align:justify;">
<li>Introduction to MySQL</li>
<li>Getting Started with MySQL and GUI Tool</li>
<li>Fundamentals of RDBMS and Database Designs</li>
<li>Introduction to MySQL Workbench</li>
<li>Data Retrieval Techniques</li>
<li>Data Modification Techniques</li>
<li>Summary and Resources</li>
</ul>
<p style="text-align:justify;">Reference: <strong>Pinal Dave (<a href="http://blog.sqlauthority.com/" target="_blank">http://blog.sqlauthority.com</a>)</strong></p>
<p style="text-align:justify;">
<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/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-news/'>SQLAuthority News</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> Tagged: <a href='http://blog.sqlauthority.com/tag/mysql/'>MySQL</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sqlauthority.wordpress.com/23564/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/23564/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&#038;blog=668536&#038;post=23564&#038;subd=sqlauthority&#038;ref=&#038;feed=1" width="1" height="1" /><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=-nYYwXnBsdY:eulaQA0195A:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=-nYYwXnBsdY:eulaQA0195A:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=-nYYwXnBsdY:eulaQA0195A:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=l6gmwiTKsz0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=-nYYwXnBsdY:eulaQA0195A:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?i=-nYYwXnBsdY:eulaQA0195A:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/SQLAuthority/~4/-nYYwXnBsdY" height="1" width="1"/>]]></content:encoded><description>Here are few of the question I often receive - Do you know anything besides SQL Server? So how does it feel when the only thing which you know is SQL Server? Have you worked in the past with any other programming language? Actually, I find these questions very interesting as I do work with [&amp;#8230;]&lt;img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;#038;blog=668536&amp;#038;post=23564&amp;#038;subd=sqlauthority&amp;#038;ref=&amp;#038;feed=1" width="1" height="1" /&gt;</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blog.sqlauthority.com/2013/05/01/sqlauthority-news-learn-fundamentals-of-mysql-online-pluralsight-course/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">3</slash:comments><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://1.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&amp;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content><feedburner:origLink>http://blog.sqlauthority.com/2013/05/01/sqlauthority-news-learn-fundamentals-of-mysql-online-pluralsight-course/</feedburner:origLink></item><item><title>SQL SERVER – UPDATE From SELECT Statement – Using JOIN in UPDATE Statement – Multiple Tables in Update Statement</title><link>http://feedproxy.google.com/~r/SQLAuthority/~3/yrvzrYIpf_0/</link><category>PostADay</category><category>SQL</category><category>SQL Authority</category><category>SQL Joins</category><category>SQL Query</category><category>SQL Server</category><category>SQL Tips and Tricks</category><category>T SQL</category><category>Technology</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">pinaldave</dc:creator><pubDate>Mon, 29 Apr 2013 18:30:47 PDT</pubDate><guid isPermaLink="false">http://blog.sqlauthority.com/?p=23554</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p style="text-align:justify;">This is one of the most interesting questions I keep on getting on this email and I find that not everyone knows about it. In recent times I have seen a developer writing a cursor to update a table. When asked the reason was he had no idea how to use multiple tables with the help of the JOIN clause in the UPDATE statement.</p>
<p style="text-align:justify;">Let us see the following example. We have two tables Table 1 and Table 2.</p>
<p><code style="font-size:12px;"><span style="color:green;">-- Create table1<br />
</span><span style="color:blue;">CREATE TABLE </span><span style="color:black;">Table1 </span><span style="color:gray;">(</span><span style="color:black;">Col1 </span><span style="color:blue;">INT</span><span style="color:gray;">, </span><span style="color:black;">Col2 </span><span style="color:blue;">INT</span><span style="color:gray;">, </span><span style="color:black;">Col3 </span><span style="color:blue;">VARCHAR</span><span style="color:gray;"><span class="GINGER_SOFATWARE_correct">(</span></span><span style="color:black;">100</span><span style="color:gray;">))<br />
</span><span style="color:blue;">INSERT INTO </span><span style="color:black;">Table1 </span><span style="color:gray;">(</span><span style="color:black;">Col1</span><span style="color:gray;">, </span><span style="color:black;">Col2</span><span style="color:gray;">, </span><span style="color:black;">Col3</span><span style="color:gray;">)<br />
</span><span style="color:blue;">SELECT </span><span style="color:black;">1</span><span style="color:gray;">, </span><span style="color:black;">11</span><span style="color:gray;">, </span><span style="color:red;">'First'<br />
</span><span style="color:blue;">UNION </span><span style="color:gray;">ALL<br />
</span><span style="color:blue;">SELECT </span><span style="color:black;">11</span><span style="color:gray;">, </span><span style="color:black;">12</span><span style="color:gray;">, </span><span style="color:red;">'Second'<br />
</span><span style="color:blue;">UNION </span><span style="color:gray;">ALL<br />
</span><span style="color:blue;">SELECT </span><span style="color:black;">21</span><span style="color:gray;">, </span><span style="color:black;">13</span><span style="color:gray;">, </span><span style="color:red;">'Third'<br />
</span><span style="color:blue;">UNION </span><span style="color:gray;">ALL<br />
</span><span style="color:blue;">SELECT </span><span style="color:black;">31</span><span style="color:gray;">, </span><span style="color:black;">14</span><span style="color:gray;">, </span><span style="color:red;">'Fourth'<br />
</span><span style="color:black;">GO<br />
</span><span style="color:green;">-- Create table2<br />
</span><span style="color:blue;">CREATE TABLE </span><span style="color:black;">Table2 </span><span style="color:gray;">(</span><span style="color:black;">Col1 </span><span style="color:blue;">INT</span><span style="color:gray;">, </span><span style="color:black;">Col2 </span><span style="color:blue;">INT</span><span style="color:gray;">, </span><span style="color:black;">Col3 </span><span style="color:blue;">VARCHAR</span><span style="color:gray;"><span class="GINGER_SOFATWARE_correct">(</span></span><span style="color:black;">100</span><span style="color:gray;">))<br />
</span><span style="color:blue;">INSERT INTO </span><span style="color:black;">Table2 </span><span style="color:gray;">(</span><span style="color:black;">Col1</span><span style="color:gray;">, </span><span style="color:black;">Col2</span><span style="color:gray;">, </span><span style="color:black;">Col3</span><span style="color:gray;">)<br />
</span><span style="color:blue;">SELECT </span><span style="color:black;">1</span><span style="color:gray;">, </span><span style="color:black;">21</span><span style="color:gray;">, </span><span style="color:red;">'Two-One'<br />
</span><span style="color:blue;">UNION </span><span style="color:gray;">ALL<br />
</span><span style="color:blue;">SELECT </span><span style="color:black;">11</span><span style="color:gray;">, </span><span style="color:black;">22</span><span style="color:gray;">, </span><span style="color:red;">'Two-Two'<br />
</span><span style="color:blue;">UNION </span><span style="color:gray;">ALL<br />
</span><span style="color:blue;">SELECT </span><span style="color:black;">21</span><span style="color:gray;">, </span><span style="color:black;">23</span><span style="color:gray;">, </span><span style="color:red;">'Two-Three'<br />
</span><span style="color:blue;">UNION </span><span style="color:gray;">ALL<br />
</span><span style="color:blue;">SELECT </span><span style="color:black;">31</span><span style="color:gray;">, </span><span style="color:black;">24</span><span style="color:gray;">, </span><span style="color:red;">'Two-Four'<br />
</span><span style="color:black;">GO</span><span style="color:green;"><br />
</span></code></p>
<p style="text-align:justify;">Now let us check the content in the table.</p>
<p><code style="font-size:12px;"><span style="color:blue;">SELECT </span><span style="color:gray;">*<br />
</span><span style="color:blue;">FROM </span><span style="color:black;">Table1<br />
</span><span style="color:blue;">SELECT </span><span style="color:gray;">*<br />
</span><span style="color:blue;">FROM </span><span style="color:black;">Table2<br />
GO</span></code></p>
<p style="text-align:justify;"><img class="alignnone" alt="" src="http://www.pinaldave.com/bimg/updatejoin1.jpg" width="238" height="265" /></p>
<p style="text-align:justify;">Now let us see the following image. Our requirement is that we have Table2 which has two rows where Col1 is 21 and 31. We want to update the value from Table2 to Table1 for the rows where Col1 is 21 and 31. Additionally, we want to update the values of Col2 and Col3 only.</p>
<p style="text-align:justify;">When you look at this it looks very simple but when we try to think the solution, I have seen developers coming up with many different solutions for example sometime they write cursor, table variables, local variables etc. However, the easiest and the most clean way is to use JOIN clause in the UPDATE statement and use multiple tables in the UPDATE statement and do the task.</p>
<p><code style="font-size:12px;"><span style="color:blue;">UPDATE </span><span style="color:black;">Table1<br />
</span><span style="color:blue;">SET </span><span style="color:black;">Col2 </span><span style="color:blue;">= </span><span style="color:black;">t2.Col2</span><span style="color:gray;">,<br />
</span><span style="color:black;">Col3 </span><span style="color:blue;">= </span><span style="color:black;">t2.Col3<br />
</span><span style="color:blue;">FROM </span><span style="color:black;">Table1 t1<br />
</span><span style="color:blue;">INNER JOIN </span><span style="color:black;">Table2 t2 </span><span style="color:blue;">ON </span><span style="color:black;">t1.Col1 </span><span style="color:blue;">= </span><span style="color:black;">t2.Col1<br />
</span><span style="color:blue;">WHERE </span><span style="color:black;">t1.Col1 </span><span style="color:blue;">IN </span><span style="color:gray;">(</span><span style="color:black;">21</span><span style="color:gray;">, </span><span style="color:black;">31</span><span style="color:gray;">)<br />
</span><span style="color:black;">GO</span></code></p>
<p style="text-align:justify;">Now let us select the data from these tables.</p>
<p><code style="font-size:12px;"><span style="color:green;">-- Check the content of the table<br />
</span><span style="color:blue;">SELECT </span><span style="color:gray;">*<br />
</span><span style="color:blue;">FROM </span><span style="color:black;">Table1<br />
</span><span style="color:blue;">SELECT </span><span style="color:gray;">*<br />
</span><span style="color:blue;">FROM </span><span style="color:black;">Table2<br />
GO<br />
</span></code></p>
<p style="text-align:justify;"><img class="alignnone" alt="" src="http://www.pinaldave.com/bimg/updatejoin2.jpg" width="272" height="249" /></p>
<p style="text-align:justify;">As you can see that using JOIN clause in UPDATE statement it makes it very easy to update data in one table from another table. You can additionally use MERGE statement to do the same as well, however I personally prefer this method. Let us clean up the clause by dropping the tables which we have created.</p>
<p><code style="font-size:12px;"><span style="color:blue;">DROP TABLE </span><span style="color:black;">Table1<br />
</span><span style="color:blue;">DROP TABLE </span><span style="color:black;">Table2<br />
GO</span></code></p>
<p style="text-align:justify;">Do let me know if you use any other trick in similar situations. If you do, I would like to learn more about it.</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-joins/'>SQL Joins</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/23554/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sqlauthority.wordpress.com/23554/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&#038;blog=668536&#038;post=23554&#038;subd=sqlauthority&#038;ref=&#038;feed=1" width="1" height="1" /><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=yrvzrYIpf_0:UgRnuTu1yPU:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=yrvzrYIpf_0:UgRnuTu1yPU:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=yrvzrYIpf_0:UgRnuTu1yPU:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?d=l6gmwiTKsz0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SQLAuthority?a=yrvzrYIpf_0:UgRnuTu1yPU:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/SQLAuthority?i=yrvzrYIpf_0:UgRnuTu1yPU:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/SQLAuthority/~4/yrvzrYIpf_0" height="1" width="1"/>]]></content:encoded><description>This is one of the most interesting questions I keep on getting on this email and I find that not everyone knows about it. In recent times I have seen a developer writing a cursor to update a table. When asked the reason was he had no idea how to use multiple tables with the [&amp;#8230;]&lt;img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.sqlauthority.com&amp;#038;blog=668536&amp;#038;post=23554&amp;#038;subd=sqlauthority&amp;#038;ref=&amp;#038;feed=1" width="1" height="1" /&gt;</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blog.sqlauthority.com/2013/04/30/sql-server-update-from-select-statement-using-join-in-update-statement-multiple-tables-in-update-statement/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">11</slash:comments><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://1.gravatar.com/avatar/48aa5a2264e8a27d802bb22ab6ccf688?s=96&amp;d=identicon" medium="image">
			<media:title type="html">pinaldave</media:title>
		</media:content><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://www.pinaldave.com/bimg/updatejoin1.jpg" medium="image" /><media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://www.pinaldave.com/bimg/updatejoin2.jpg" medium="image" /><feedburner:origLink>http://blog.sqlauthority.com/2013/04/30/sql-server-update-from-select-statement-using-join-in-update-statement-multiple-tables-in-update-statement/</feedburner:origLink></item></channel></rss>
