SQL Server http://sqlmag.com/taxonomy/term/9189/more en Stop Using INFORMATION_SCHEMA and SysObjects for Exists Checks http://sqlmag.com/blog/stop-using-informationschema-and-sysobjects-exists-checks <div class="node-body blog-body"><p>Code like this isn&rsquo;t optimal:</p> <pre> <div class="geshifilter" style="white-space: nowrap;"><div class="text geshifilter-text" style="font-family:monospace;">IF EXISTS(SELECT * FROM sys.objects WHERE name = N'TableToDrop' AND type = 'U')<br /> &nbsp; &nbsp; &nbsp; &nbsp; DROP TABLE TableToDrop;<br /> GO</div></div></pre> <p>Neither is this:</p> <pre> <div class="geshifilter" style="white-space: nowrap;"><div class="text geshifilter-text" style="font-family:monospace;">IF EXISTS(SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'TableToDrop')<br /> &nbsp; &nbsp; &nbsp; &nbsp; DROP TABLE TableToDrop;<br /> GO</div></div></pre> <p>Yet, I see both of those used all of the time &ndash; over and over again. Even though it&rsquo;s 2015. &nbsp;</p></div> <div class="og_rss_groups"><ul class="links"><li class="og_links first last"><a href="/blog/practical-sql-server">Practical SQL Server</a></li> </ul></div><p><a href="http://sqlmag.com/blog/stop-using-informationschema-and-sysobjects-exists-checks" target="_blank">read more</a></p> http://sqlmag.com/blog/stop-using-informationschema-and-sysobjects-exists-checks#comments SQL Server ALTER ALTER CREATE CREATE DROP DROP EXISTS EXISTS INFORMATION_SCHEMA INFORMATION_SCHEMA sys.objects sys.objects Practical SQL Server Tue, 01 Sep 2015 18:50:00 +0000 25811 at http://sqlmag.com The Essential Guide the SQL Server 2014: Clustered Columnstore Index http://sqlmag.com/sql-server-2014/essential-guide-sql-server-2014-clustered-columnstore-index <div class="field-deck"> Learn about SQL Server 2014's enhanced columnstore index </div> <div class="node-body article-body"><p>In this Essential Guide to SQL Server 2014 series I&rsquo;ve been covering the most important new features and enhancements that Microsoft added to SQL Server 2014. In the last column I covered the <a href="http://sqlmag.com/sql-server-2014/essential-guide-sql-server-2014-backup-enhancements"><u>SQL Server 2014&rsquo;s Backup Enhancements</u></a>. In this column I&rsquo;m going to cover the important enhancements to the columnstore Index. Microsoft introduced the columnstore index in SQL Server 2012 and it provided significantly improved performance for data warehousing types of queries.</p></div> <div class="og_rss_groups"></div><p><a href="http://sqlmag.com/sql-server-2014/essential-guide-sql-server-2014-clustered-columnstore-index" target="_blank">read more</a></p> http://sqlmag.com/sql-server-2014/essential-guide-sql-server-2014-clustered-columnstore-index#comments SQL Server 2014 clustered colmnstore index non-clustered columnstore index Sat, 29 Aug 2015 02:07:00 +0000 25801 at http://sqlmag.com Writing Perfmon data to SQL Server http://sqlmag.com/sql-server/writing-perfmon-data-sql-server <div class="field-deck"> Learn the tricks to get Perfmon to write performance counter data to SQL Server </div> <div class="node-body article-body"><p><strong>Q:</strong> I&rsquo;m trying to get Perfmon to write performance counter data to SQL Server. In Perfmon I&rsquo;ve created a Data Collector and I set the Log format to SQL. I have also created a data source using the SQL Server Native driver but when I try to start Perfmon I get the error Call to SQLAllocConnect failed with %1.</p> <p><strong>A:</strong> I&rsquo;ve found that you cannot use the SQL Server Native Client to log data to SQL Server from Perfmon. I have only had success when the data source that I created used the ODBC driver like you can see in Figure 1.</p></div> <div class="og_rss_groups"></div><p><a href="http://sqlmag.com/sql-server/writing-perfmon-data-sql-server" target="_blank">read more</a></p> http://sqlmag.com/sql-server/writing-perfmon-data-sql-server#comments SQL Server CounterData CounterDetails data source DisplayToID perfmon Perfromance Monitor run as SQL Server Fri, 28 Aug 2015 00:17:00 +0000 25791 at http://sqlmag.com A Replacement for Maintenance Plan Backups http://sqlmag.com/blog/replacement-maintenance-plan-backups <div class="node-body blog-body"><p>This blog post is a bit of a &lsquo;repeat&rsquo; &ndash; since I already covered much of the rationale behind this post in <a href="http://sqlmag.com/blog/alwayson-availability-groups-and-sql-server-jobs-part-23-maintenance-plan-backups-and-ssis-pack">Part 23 of my multi-part series on AlwaysOn Availability Groups and SQL Server Agent Jobs</a>. But, I also figured that this is enough of an important topic to merit its own blog post.</p></div> <div class="og_rss_groups"><ul class="links"><li class="og_links first last"><a href="/blog/practical-sql-server">Practical SQL Server</a></li> </ul></div><p><a href="http://sqlmag.com/blog/replacement-maintenance-plan-backups" target="_blank">read more</a></p> http://sqlmag.com/blog/replacement-maintenance-plan-backups#comments SQL Server Maintenance Plans Maintenance Plans SQL Express Backups SQL Express Backups SQL Server Backups SQL Server Backups Practical SQL Server Thu, 27 Aug 2015 17:45:00 +0000 25781 at http://sqlmag.com The Myth About Estimated Execution Plans http://sqlmag.com/sql-server/myth-about-estimated-execution-plans <div class="node-body article-body"><p style="margin: 0in 0in 8pt;"><font face="Calibri" size="3">How you name things matters. As Buck Woody said about the original SQL Server documentation, Books Online, &ldquo;They weren&rsquo;t books and they weren&rsquo;t online.&rdquo; There are even </font><a href="http://www.cnet.com/pictures/25-worst-named-tech-products-pictures/24/"><u><font color="#0563c1" face="Calibri" size="3">more horrific</font></u></a><font face="Calibri" size="3"> examples. As was pointed out to me by Mike Dimmick on my blog, the name for Estimated Execution Plans puts people off.</font></p></div> <div class="og_rss_groups"></div><p><a href="http://sqlmag.com/sql-server/myth-about-estimated-execution-plans" target="_blank">read more</a></p> http://sqlmag.com/sql-server/myth-about-estimated-execution-plans#comments SQL Server actual estimated Execution plans Microsoft SQL Server Thu, 27 Aug 2015 13:30:00 +0000 25771 at http://sqlmag.com Announcing our IT/DevConnections Data Platform and Business Intelligence Keynote Speaker Conor Cunningham http://sqlmag.com/sql-server-2016/announcing-our-itdevconnections-data-platform-and-business-intelligence-keynote-spea <div class="node-body article-body">This year we’re excited to welcome Conor Cunningham, Partner Architect on the SQL Server Core Engine Team at Microsoft as our Data Platform and Business Intelligence Keynote Speaker to speak on features coming to SQL Server 2016.</div> <div class="og_rss_groups"></div><p><a href="http://sqlmag.com/sql-server-2016/announcing-our-itdevconnections-data-platform-and-business-intelligence-keynote-spea" target="_blank">read more</a></p> http://sqlmag.com/sql-server-2016/announcing-our-itdevconnections-data-platform-and-business-intelligence-keynote-spea#comments SQL Server 2016 2015 IT/Dev Connections keynote sql server 2016 Thu, 20 Aug 2015 14:52:00 +0000 25761 at http://sqlmag.com Looking forward to Containers http://sqlmag.com/blog/looking-forward-containers <div class="node-body blog-body"><p>Virtualization has long been a staple when it comes to computing. In essence, virtualization is really just the use of abstraction to make things either easier to manage or more fault-tolerant. Disks, for example, have long been virtualized in the sense that a single, physical, can easily be divided up into multiple logical (or virtual) volumes (or drives) just as easily as a number of discreet physical disks can also be virtualized into a single drive (via RAID) &ndash; which can further be partitioned into volumes, LUNs, and so.</p></div> <div class="og_rss_groups"><ul class="links"><li class="og_links first last"><a href="/blog/practical-sql-server">Practical SQL Server</a></li> </ul></div><p><a href="http://sqlmag.com/blog/looking-forward-containers" target="_blank">read more</a></p> http://sqlmag.com/blog/looking-forward-containers#comments Systems Management SQL Server containers Containers deployment deployment docker docker future future SQL Server SQL Server virtualization virtualization Windows Windows Practical SQL Server Wed, 19 Aug 2015 19:54:00 +0000 25731 at http://sqlmag.com Data Tales #2: The Case of the Exploding Table http://sqlmag.com/sql-server-2012/data-tales-2-case-exploding-table <div class="node-body article-body"><p>I was recently at a customer site where the developers were very concerned about the impact of adding columns to a table. They told me that when they added a new column that their deployment code was timing out and the database was massively increasing in size. It had increased from around a small size to well over 50GB during the single operation. The deployment operation involved adding the column and writing one row to a deployment history table. Because they were only writing a single new row, they were blaming SQL Server for bloating the database size when a column was added.</p></div> <div class="og_rss_groups"></div><p><a href="http://sqlmag.com/sql-server-2012/data-tales-2-case-exploding-table" target="_blank">read more</a></p> http://sqlmag.com/sql-server-2012/data-tales-2-case-exploding-table#comments SQL Server 2012 AutoGrow growth setting SQL Server table Fri, 14 Aug 2015 00:07:00 +0000 25711 at http://sqlmag.com http://taylors988.deviantart.com/art/Planetary-Explosion-131533901 SQL Select: FAQs about SQL Server 2014 http://sqlmag.com/sql-server-2014/sql-select-faqs-about-sql-server-2014 <div class="field-deck"> Answers to your most frequently asked questions about SQL Server 2014 </div> <div class="node-body article-body">Answers to your most frequently asked questions about SQL Server 2014</div> <div class="og_rss_groups"></div><p><a href="http://sqlmag.com/sql-server-2014/sql-select-faqs-about-sql-server-2014" target="_blank">read more</a></p> http://sqlmag.com/sql-server-2014/sql-select-faqs-about-sql-server-2014#comments SQL Server 2014 AlwaysOn Availabiliity Groups AlwaysOn Failover Cluster Instances BIDS In-Memory OLTP Server Core SSDT-BI Thu, 13 Aug 2015 23:57:00 +0000 25701 at http://sqlmag.com Dealing with an Inherited SQL Server http://sqlmag.com/sql-server/dealing-inherited-sql-server <div class="field-deck"> Get a quick must-do checklist for dealing with an inherited SQL Server system </div> <div class="node-body article-body">Get a quick must-do checklist for dealing with an inherited SQL Server system</div> <div class="og_rss_groups"></div><p><a href="http://sqlmag.com/sql-server/dealing-inherited-sql-server" target="_blank">read more</a></p> http://sqlmag.com/sql-server/dealing-inherited-sql-server#comments SQL Server AutoGrow autoShrink Backup data files Full Recovery model log files tempdb Wed, 12 Aug 2015 19:26:00 +0000 25691 at http://sqlmag.com