﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" version="2.0"><channel><title>SQLServerCentral.com Articles tagged T-SQL</title><link>http://www.sqlservercentral.com/</link><description>Articles tagged T-SQL posted on SQLServerCentral.com</description><language>en-us</language><ttl>360</ttl><managingEditor>sjones@sqlservercentral.com (Steve Jones)</managingEditor><item><title>Comparing SQL Server constraints and DML triggers</title><description>Over the years, I have witnessed many developers being confused about when to use data-manipulation language (DML) triggers vs. when to use constraints.</description><guid>http://www.sqlservercentral.com/redirect/articles/63705/</guid><pubDate>2008/07/23</pubDate><link>http://www.sqlservercentral.com/redirect/articles/63705/</link></item><item><title>How to use ranking functions in SQL Server 2005</title><description>With ranking functions in SQL Server 2005, you can rank rows in result sets. This tip defines rank functions and gives examples of how to use the four available functions.</description><guid>http://www.sqlservercentral.com/redirect/articles/63700/</guid><pubDate>2008/07/22</pubDate><link>http://www.sqlservercentral.com/redirect/articles/63700/</link></item><item><title>T-SQL Function to Determine Holidays in SQL Server</title><description>While working on a project recently I was asked to develop a mechanism that would provide the dates for state and federal holidays in a given year. Since this project deals with all states and territories of the United States, the list had to be comprehensive and the client asked that this list be in the form of a SQL query calculated on-the-fly, rather than a static list.</description><guid>http://www.sqlservercentral.com/redirect/articles/63696/</guid><pubDate>2008/07/21</pubDate><link>http://www.sqlservercentral.com/redirect/articles/63696/</link></item><item><title>Owning the Spelling Suggestion Feature</title><description>To create your own spelling suggestion feature, you need a look-up with correct spellings and misspellings. I walk you through it.</description><guid>http://www.sqlservercentral.com/articles/T-SQL/63404/</guid><pubDate>2008/07/21</pubDate><link>http://www.sqlservercentral.com/articles/T-SQL/63404/</link></item><item><title>Return Query Text Along With sp_who2 Using SQL 2000</title><description>This is a follow up to the article &amp;quot;Return Query Text Along With sp_who2 Using Dynamic Management Views&amp;quot;.</description><guid>http://www.sqlservercentral.com/articles/SQL+Server+2000/63542/</guid><pubDate>2008/07/18</pubDate><link>http://www.sqlservercentral.com/articles/SQL+Server+2000/63542/</link></item><item><title>A Generic Histogram Generator for SQL Server</title><description>Histograms help people analyze large amounts of data, whether you display them as tables or as charts. This article shows you how to do both. </description><guid>http://www.sqlservercentral.com/redirect/articles/63651/</guid><pubDate>2008/07/16</pubDate><link>http://www.sqlservercentral.com/redirect/articles/63651/</link></item><item><title>Dynamically controlling the number of rows affected by a SQL Server query</title><description>One thing you may need to do is dynamically return a set amount of rows based on user input.  This could be for a search function, reports, dropdown lists or whatever.  Instead of hard coding a set value you would like to pass in a variable that will then determine the number of rows to return.  How can this be done with T-SQL?</description><guid>http://www.sqlservercentral.com/redirect/articles/63694/</guid><pubDate>2008/07/16</pubDate><link>http://www.sqlservercentral.com/redirect/articles/63694/</link></item><item><title>SQL Server Function to Determine a Leap Year</title><description>I need to write a function to determine if particular year is a leap year (i.e. February contains 29 days rather than 28 days). I know that there are various rules for calculating leap years. Is there an easy way to figure this out? Can you provide an example or two to validate various years?</description><guid>http://www.sqlservercentral.com/redirect/articles/63531/</guid><pubDate>2008/07/14</pubDate><link>http://www.sqlservercentral.com/redirect/articles/63531/</link></item><item><title>Building Parent-Child Table Tree information</title><description>How many times have you wanted to know which child or grandchild records exists for a parent record? SSMS doesn't make this information easy to find beyond one level. New author  Narasimhan Jayachandran brings us an article and a recursive solution.  </description><guid>http://www.sqlservercentral.com/articles/T-SQL/63473/</guid><pubDate>2008/07/10</pubDate><link>http://www.sqlservercentral.com/articles/T-SQL/63473/</link></item><item><title>Enhancement in variable declaration – SQL Server 2008</title><description>Enhanced variable declaration, one of the many enhancements that Microsoft added to SQL Server 2008 allows you to declare and initialize a value at the same time. This article shows you how to do it.</description><guid>http://www.sqlservercentral.com/redirect/articles/63525/</guid><pubDate>2008/07/09</pubDate><link>http://www.sqlservercentral.com/redirect/articles/63525/</link></item><item><title>Understanding INNER join in detail</title><description>This objective of the article is to give readers in depth understanding of INNER JOIN with different joining conditions. </description><guid>http://www.sqlservercentral.com/articles/T-SQL/63322/</guid><pubDate>2008/07/08</pubDate><link>http://www.sqlservercentral.com/articles/T-SQL/63322/</link></item><item><title>Error Handling in Nested Procedures and Logging Custom Errors</title><description>Longtime author Leo Peysakhovich brings us a new article on error handling when you have procedures nested inside each other.</description><guid>http://www.sqlservercentral.com/articles/T-SQL/63353/</guid><pubDate>2008/07/07</pubDate><link>http://www.sqlservercentral.com/articles/T-SQL/63353/</link></item><item><title>Deleting batches of rows with TOP</title><description>Using the TOP clause in a procedure to delete records in batch.</description><guid>http://www.sqlservercentral.com/articles/Top/63301/</guid><pubDate>2008/07/03</pubDate><link>http://www.sqlservercentral.com/articles/Top/63301/</link></item><item><title>Missing Date Ranges- the Sequel</title><description>Alex Kozak returns with another Date puzzle. A question from a Simple-Talk reader gives Alex the inspiration to see if is possible to list unused date ranges in one Select statement.</description><guid>http://www.sqlservercentral.com/redirect/articles/63520/</guid><pubDate>2008/07/03</pubDate><link>http://www.sqlservercentral.com/redirect/articles/63520/</link></item><item><title>The Many Uses of Coalesce in SQL Server</title><description>Many times people come across the Coalesce function and think that it is just a more powerful form of ISNULL. In actuality, I have found it to be one of the most useful functions with the least documentation.  In this tip, I will show you the basic use of Coalesce and also some features you probably never new existed.</description><guid>http://www.sqlservercentral.com/redirect/articles/63456/</guid><pubDate>2008/07/03</pubDate><link>http://www.sqlservercentral.com/redirect/articles/63456/</link></item><item><title>Recursive Queries using Common Table Expressions (CTE) in SQL Server</title><description>The problem arises when the hierarchy level increases as SQL Server is limited to 32 levels of recursion. We need a better way to implement recursive queries in SQL Server 2005. How do we do it?</description><guid>http://www.sqlservercentral.com/redirect/articles/63455/</guid><pubDate>2008/07/02</pubDate><link>http://www.sqlservercentral.com/redirect/articles/63455/</link></item><item><title>The Curse and Blessings of Dynamic SQL</title><description>How you use dynamic SQL, when you should - and when you should not.</description><guid>http://www.sqlservercentral.com/redirect/articles/63452/</guid><pubDate>2008/07/01</pubDate><link>http://www.sqlservercentral.com/redirect/articles/63452/</link></item><item><title>Calculating Age</title><description>T-SQL calculations can get tricky at times, and since you often work with multiple rows, it's good to be exact in your data manipulation. New author Lynn Pettis brings us an article about calculating ages.</description><guid>http://www.sqlservercentral.com/articles/T-SQL/63351/</guid><pubDate>2008/06/30</pubDate><link>http://www.sqlservercentral.com/articles/T-SQL/63351/</link></item><item><title>T-SQL Data Processing</title><description>This article from new author Peter Kierstead shows us how to implement your own &amp;quot;fuzzy&amp;quot; dedup/merge logic without resorting to RBAR in T-SQL.</description><guid>http://www.sqlservercentral.com/articles/T-SQL/63233/</guid><pubDate>2008/06/23</pubDate><link>http://www.sqlservercentral.com/articles/T-SQL/63233/</link></item><item><title>Correlated Joins Using "Apply"</title><description>Discusses the use of the newly introduced APPLY Statement in SQL Server 2005</description><guid>http://www.sqlservercentral.com/articles/T-SQL/63115/</guid><pubDate>2008/06/16</pubDate><link>http://www.sqlservercentral.com/articles/T-SQL/63115/</link></item><item><title>Eliminating Cursors</title><description>T-SQL does some things wonderfully, but cursors are the bane of the language, often causing performance issues. Changing your queries around to remove cursors can be tricky and new author Kamran Ali brings us one technique he has used to dramatically improve performance.


</description><guid>http://www.sqlservercentral.com/articles/SQL+Puzzles/eliminatingcursors/2223/</guid><pubDate>2008/06/13</pubDate><link>http://www.sqlservercentral.com/articles/SQL+Puzzles/eliminatingcursors/2223/</link></item><item><title>Compound Assignment Operators in SQL Server 2008</title><description>MAK illustrates the use of Compound Assignment Operator that is introduced in SQL Server 2008.</description><guid>http://www.sqlservercentral.com/redirect/articles/63384/</guid><pubDate>2008/06/13</pubDate><link>http://www.sqlservercentral.com/redirect/articles/63384/</link></item><item><title>Identity Columns</title><description>When Nigel Rivett takes us on a tour of the apparently innocuous subject of Identity Columns in TSQL, even the seasoned programmer is due for one or two surprises.</description><guid>http://www.sqlservercentral.com/redirect/articles/63250/</guid><pubDate>2008/06/10</pubDate><link>http://www.sqlservercentral.com/redirect/articles/63250/</link></item><item><title>How do I ... reject alpha characters in a SQL Server character column?</title><description>Enforcing your data's integrity is probably the single most important issue you face when designing a database. Validating user input is one way of keeping bad data from making its way into your analyses and reports.</description><guid>http://www.sqlservercentral.com/redirect/articles/63204/</guid><pubDate>2008/06/04</pubDate><link>http://www.sqlservercentral.com/redirect/articles/63204/</link></item><item><title>Is a Temporary Table Really Necessary?</title><description>In this article Randy Dyness shows you how to avoid temp tables whenever to maximize the performance of your queries.


</description><guid>http://www.sqlservercentral.com/articles/Performance+Tuning/temptabl/662/</guid><pubDate>2008/05/30</pubDate><link>http://www.sqlservercentral.com/articles/Performance+Tuning/temptabl/662/</link></item><item><title>Finding Available Keys When Merging Two Tables</title><description>Find available keys when merging two tables with duplicate keys.</description><guid>http://www.sqlservercentral.com/articles/T-SQL/62698/</guid><pubDate>2008/05/26</pubDate><link>http://www.sqlservercentral.com/articles/T-SQL/62698/</link></item><item><title>Passing Parameters as (almost) 1, 2, and 3 Dimensional Arrays</title><description>It's a well known fact that there's no such thing as a true &amp;quot;array&amp;quot; in SQL Server and that you can't pass a table as a parameter... but you can get a lot closer than you think.</description><guid>http://www.sqlservercentral.com/articles/T-SQL/63003/</guid><pubDate>2008/05/22</pubDate><link>http://www.sqlservercentral.com/articles/T-SQL/63003/</link></item><item><title>Row Value Constructor in SQL Server 2008 </title><description>This article illustrates different methods to insert data into a table, including the new Row Value Constructor, which simplifies the data insertion.</description><guid>http://www.sqlservercentral.com/redirect/articles/63015/</guid><pubDate>2008/05/16</pubDate><link>http://www.sqlservercentral.com/redirect/articles/63015/</link></item><item><title>Everybody Reports to Somebody</title><description>One of the very common questions posted about T-SQL is how to traverse a hierarchy in a set based manner. New author Craig Hatley brings us his techniques for handling the common scenario of employees and managers.
</description><guid>http://www.sqlservercentral.com/articles/Advanced+Querying/3001/</guid><pubDate>2008/05/16</pubDate><link>http://www.sqlservercentral.com/articles/Advanced+Querying/3001/</link></item><item><title>PIVOT working incorrectly?</title><description>One developer's journey through PIVOTing incorrectly.</description><guid>http://www.sqlservercentral.com/articles/pivot/62808/</guid><pubDate>2008/05/13</pubDate><link>http://www.sqlservercentral.com/articles/pivot/62808/</link></item></channel></rss>