T-SQL http://sqlmag.com/taxonomy/term/9187/more en T-SQL Interval Graphs Challenge, Part 1 http://sqlmag.com/t-sql/t-sql-interval-graphs-challenge-part-1 <div class="field-deck"> Cursor-based and set-based solutions to the interval packing problem </div> <div class="node-body article-body">Itzik Ben-Gan uses T-SQL to find an efficient solution to an interval packing problem related to drug prescriptions modeled as interval graphs.</div> <div class="field-content-focus"> <span>Content Classification:&nbsp;</span> Influencer </div> <div class="og_rss_groups"></div><p><a href="http://sqlmag.com/t-sql/t-sql-interval-graphs-challenge-part-1" target="_blank">read more</a></p> http://sqlmag.com/t-sql/t-sql-interval-graphs-challenge-part-1#comments T-SQL SQL Server cursor-based solution Interval Graphs interval packing set-based solution T-SQL Fri, 21 Mar 2014 04:00:00 +0000 16471 at http://sqlmag.com Use T-SQL to Add SQL Server Startup Parameters http://sqlmag.com/t-sql/t-sql-add-sql-server-startup-parameters <div class="field-deck"> Save time and hassle </div> <div class="node-body article-body">Using SQL Server Configuration Manager to add a startup parameter on numerous SQL Server instances can be time-consuming. Here's a T-SQL script that makes this task much easier and quicker.</div> <div class="og_rss_groups"></div><p><a href="http://sqlmag.com/t-sql/t-sql-add-sql-server-startup-parameters" target="_blank">read more</a></p> http://sqlmag.com/t-sql/t-sql-add-sql-server-startup-parameters#comments T-SQL Database Development SQL Server 2008 SQL Server SQL Server SQL Server 2008 R2 SQL Server Configuration Manager startup parameters T-SQL Fri, 07 Feb 2014 16:45:00 +0000 16131 at http://sqlmag.com Identifying a Subsequence in a Sequence, Part 2 http://sqlmag.com/t-sql/identifying-subsequence-in-sequence-part-2 <div class="field-deck"> Three set-based solutions for solving this challenge </div> <div class="node-body article-body">Itzik Ben-Gan explores three set-based T-SQL solutions to find the best approach for identifying a subsequence within a sequence.</div> <div class="field-content-focus"> <span>Content Classification:&nbsp;</span> Influencer </div> <div class="og_rss_groups"></div><p><a href="http://sqlmag.com/t-sql/identifying-subsequence-in-sequence-part-2" target="_blank">read more</a></p> http://sqlmag.com/t-sql/identifying-subsequence-in-sequence-part-2#comments T-SQL SQL Server iterative solution Microsoft relational solution sequence set-based solution SQL Server subsequence T-SQL Tue, 04 Feb 2014 21:30:00 +0000 16091 at http://sqlmag.com PowerShell Lets You Back Up SQL Server Your Way http://sqlmag.com/powershell/powershell-lets-you-back-sql-server-your-way <div class="node-body article-body">One of the things that makes me really enjoy having PowerShell in my tool belt is the ability to approach a problem from many different angles. Let's take backups, for example.</div> <div class="field-content-focus"> <span>Content Classification:&nbsp;</span> Influencer </div> <div class="og_rss_groups"></div><p><a href="http://sqlmag.com/powershell/powershell-lets-you-back-sql-server-your-way" target="_blank">read more</a></p> http://sqlmag.com/powershell/powershell-lets-you-back-sql-server-your-way#comments Database Backup and Recovery T-SQL PowerShell database backup Server Management Objects SMO Tue, 07 Jan 2014 11:18:00 +0000 15611 at http://sqlmag.com Identifying a Subsequence in a Sequence, Part 1 http://sqlmag.com/t-sql/identifying-subsequence-in-sequence-part-1 <div class="field-deck"> Three iterative solutions for solving this challenge </div> <div class="node-body article-body">Itzik Ben-Gan explores several iterative T-SQL solutions to find the best approach for identifying a subsequence within a sequence.</div> <div class="og_rss_groups"></div><p><a href="http://sqlmag.com/t-sql/identifying-subsequence-in-sequence-part-1" target="_blank">read more</a></p> http://sqlmag.com/t-sql/identifying-subsequence-in-sequence-part-1#comments T-SQL SQL Server Divide and Conquer Halloween protection iterative solutions sequence SQL Server subsequence T-SQL Tue, 07 Jan 2014 05:00:00 +0000 15471 at http://sqlmag.com Evaluate Logical Expressions Using Recursive CTEs and Reverse Polish Notation http://sqlmag.com/t-sql/evaluate-logical-expressions-using-recursive-ctes-and-reverse-polish-notation <div class="field-byline"> Tommaso Capasso (reader-submitted article) </div> <div class="field-deck"> A powerful combination </div> <div class="node-body article-body">Learn how to evaluate Boolean propositions in a single T-SQL query by combining recursive common table expressions and Reverse Polish notation.</div> <div class="og_rss_groups"></div><p><a href="http://sqlmag.com/t-sql/evaluate-logical-expressions-using-recursive-ctes-and-reverse-polish-notation" target="_blank">read more</a></p> http://sqlmag.com/t-sql/evaluate-logical-expressions-using-recursive-ctes-and-reverse-polish-notation#comments T-SQL SQL Server CTE database development logical expression reverse polish notation SQL Server T-SQL Fri, 20 Dec 2013 20:45:00 +0000 15301 at http://sqlmag.com Revisiting How to Avoid Referential Integrity Errors http://sqlmag.com/t-sql/revisiting-how-to-avoid-referential-integrity-errors <div class="field-deck"> The concepts behind the PR_HIERARCHIAL_DATA stored procedure </div> <div class="node-body article-body">In this updated version of "Avoid Referential Integrity Errors When Deleting Records from Databases," Chandra Sekhar Pathivada goes more in-depth into the concepts behind his PR_HIERARCHIAL_DATA stored procedure.</div> <div class="og_rss_groups"></div><p><a href="http://sqlmag.com/t-sql/revisiting-how-to-avoid-referential-integrity-errors" target="_blank">read more</a></p> http://sqlmag.com/t-sql/revisiting-how-to-avoid-referential-integrity-errors#comments T-SQL SQL Server 2008 SQL Server 2005 Database Administration Database Administration database development PR_HIERARCHIAL_DATA stored procedure SQL Server 2005 SQL Server 2008 T-SQL Fri, 06 Dec 2013 05:00:00 +0000 15081 at http://sqlmag.com Use PowerShell to Create Agent Jobs http://sqlmag.com/powershell/use-powershell-create-agent-jobs <div class="node-body article-body">Learn how to use PowerShell to create Agent Jobs and have an easy way to make sure you're always capturing performance data automatically on any server you set up.</div> <div class="og_rss_groups"></div><p><a href="http://sqlmag.com/powershell/use-powershell-create-agent-jobs" target="_blank">read more</a></p> http://sqlmag.com/powershell/use-powershell-create-agent-jobs#comments T-SQL PowerShell SQL Server Agent Jobs performance data PowerShell sql server agent SQL Server Management Studio Mon, 02 Dec 2013 18:36:00 +0000 15051 at http://sqlmag.com Divide and Conquer Halloween http://sqlmag.com/t-sql/divide-and-conquer-halloween <div class="field-deck"> Avoid the overhead of Halloween protection </div> <div class="node-body article-body">Query plans of T-SQL solutions based on the Decrease and Conquer algorithm contain extra work to deal with Halloween protection. Itzik presents an alternative generic pattern that removes the need for Halloween protection.</div> <div class="og_rss_groups"></div><p><a href="http://sqlmag.com/t-sql/divide-and-conquer-halloween" target="_blank">read more</a></p> http://sqlmag.com/t-sql/divide-and-conquer-halloween#comments T-SQL SQL Server Decrease and Conquer Divide and Conquer Halloween protection Microsoft SQL Server SQL Server T-SQL Mon, 02 Dec 2013 05:00:00 +0000 15031 at http://sqlmag.com Intervals and Counts, Part 4 http://sqlmag.com/t-sql/intervals-and-counts-part-4 <div class="field-deck"> Compute the count of active intervals at the beginning of every fixed interval </div> <div class="node-body article-body">Learn how to compute the count of active intervals at the beginning of every fixed interval.</div> <div class="og_rss_groups"></div><p><a href="http://sqlmag.com/t-sql/intervals-and-counts-part-4" target="_blank">read more</a></p> http://sqlmag.com/t-sql/intervals-and-counts-part-4#comments T-SQL Database Development SQL Server active intervals counts fixed intervals intervals joins SQL Server T-SQL temporal intervals Window Functions Thu, 07 Nov 2013 05:00:00 +0000 14601 at http://sqlmag.com