<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Dave Turpin, SQL Server Developer &#187; T-SQL</title>
	<atom:link href="http://www.daveturpin.com/category/t-sql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.daveturpin.com</link>
	<description>Practical SQL Server Tips</description>
	<lastBuildDate>Sun, 22 Aug 2010 19:55:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Add Default Constraint to an Existing Column</title>
		<link>http://www.daveturpin.com/2010/08/add-default-constraint-to-an-existing-column-2/</link>
		<comments>http://www.daveturpin.com/2010/08/add-default-constraint-to-an-existing-column-2/#comments</comments>
		<pubDate>Sun, 22 Aug 2010 19:55:48 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[T-SQL]]></category>

		<guid isPermaLink="false">http://www.daveturpin.com/2010/08/add-default-constraint-to-an-existing-column-2/</guid>
		<description><![CDATA[This post is going to be short and sweet for two reasons: 1.&#160; It is a short subject and 2.&#160; I’m learning the Dvorak keyboard… I recently needed to add a default constraint to an existing column.&#160; It’s not something I have to do often so when I do do it I need to look [...]]]></description>
		<wfw:commentRss>http://www.daveturpin.com/2010/08/add-default-constraint-to-an-existing-column-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Location of SQL Server Default Trace</title>
		<link>http://www.daveturpin.com/2010/07/location-of-sql-server-default-trace/</link>
		<comments>http://www.daveturpin.com/2010/07/location-of-sql-server-default-trace/#comments</comments>
		<pubDate>Wed, 28 Jul 2010 13:53:26 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[T-SQL]]></category>

		<guid isPermaLink="false">http://www.daveturpin.com/2010/07/location-of-sql-server-default-trace/</guid>
		<description><![CDATA[This is one of those posts for myself.&#160; Sort of like a self-note. When things go wrong, especially unexpectedly, sometimes the only clue is the SQL Server default trace.&#160; Where is it? SELECT * FROM ::fn_trace_getinfo(0) &#160; Now you know…&#160; But do you have permissions to get to the file?&#160; That’s another issue. For a [...]]]></description>
		<wfw:commentRss>http://www.daveturpin.com/2010/07/location-of-sql-server-default-trace/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Parallel Query Plans</title>
		<link>http://www.daveturpin.com/2010/07/parallel-query-plans/</link>
		<comments>http://www.daveturpin.com/2010/07/parallel-query-plans/#comments</comments>
		<pubDate>Sun, 25 Jul 2010 23:26:03 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[T-SQL]]></category>
		<category><![CDATA[Hyperthreads]]></category>
		<category><![CDATA[MAXDOP]]></category>

		<guid isPermaLink="false">http://www.daveturpin.com/2010/07/parallel-query-plans/</guid>
		<description><![CDATA[This post is actually less about parallel query plans and more about a recap of some lessons learned from a recent project. I run an in-house T-SQL training class for new hires and other employees who either need to get up to speed with T-SQL or have a personal desire to learn.  In the very [...]]]></description>
		<wfw:commentRss>http://www.daveturpin.com/2010/07/parallel-query-plans/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL Server Object_Definition</title>
		<link>http://www.daveturpin.com/2010/05/sql-server-object_definition/</link>
		<comments>http://www.daveturpin.com/2010/05/sql-server-object_definition/#comments</comments>
		<pubDate>Mon, 31 May 2010 21:29:29 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[T-SQL]]></category>
		<category><![CDATA[meta data functions]]></category>
		<category><![CDATA[object_definition]]></category>
		<category><![CDATA[sys.procedures]]></category>

		<guid isPermaLink="false">http://www.daveturpin.com/2010/05/sql-server-object_definition/</guid>
		<description><![CDATA[In SQL Server 2005 the T-SQL meta data function OBJECT_DEFINITION was introduced.  I like to use this command to search stored procedures for string values, such as table or column names. The BoL page is located at http://msdn.microsoft.com/en-us/library/ms176090.aspx. The following queries will return the definitions for VIEWS, UDFs and STORED PROCEDURES: USE AdventureWorks GO SELECT [...]]]></description>
		<wfw:commentRss>http://www.daveturpin.com/2010/05/sql-server-object_definition/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add DEFAULT Constraint to an Existing Column</title>
		<link>http://www.daveturpin.com/2010/05/add-default-constraint-to-an-existing-column/</link>
		<comments>http://www.daveturpin.com/2010/05/add-default-constraint-to-an-existing-column/#comments</comments>
		<pubDate>Thu, 06 May 2010 09:38:54 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[T-SQL]]></category>
		<category><![CDATA[ALTER TABLE]]></category>
		<category><![CDATA[DEFAULT]]></category>

		<guid isPermaLink="false">http://www.daveturpin.com/2010/05/add-default-constraint-to-an-existing-column/</guid>
		<description><![CDATA[It doesn’t happen very often but I recently needed to add a default value to an existing column.  Of course MSDN provided me everything I needed but figuring it out from the railroad diagrams took a few tries. To add to the confusion, the command for SQL Server Compact Edition is different than it is [...]]]></description>
		<wfw:commentRss>http://www.daveturpin.com/2010/05/add-default-constraint-to-an-existing-column/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Composite Index vs. INCLUDE Covering Index</title>
		<link>http://www.daveturpin.com/2010/04/composite-index-vs-include-covering-index/</link>
		<comments>http://www.daveturpin.com/2010/04/composite-index-vs-include-covering-index/#comments</comments>
		<pubDate>Thu, 22 Apr 2010 00:46:05 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[T-SQL]]></category>
		<category><![CDATA[composite index]]></category>
		<category><![CDATA[covering index]]></category>
		<category><![CDATA[include index]]></category>

		<guid isPermaLink="false">http://www.daveturpin.com/2010/04/composite-index-vs-include-covering-index/</guid>
		<description><![CDATA[A simple question was posed today while giving a presentation on query plan analysis to colleagues at the office. What’s the difference between a composite (multi column) index and an INCLUDE covering index? At the time I was stumped.  Fortunately I don’t have any problem admitting I don’t know something… it happens all the time. [...]]]></description>
		<wfw:commentRss>http://www.daveturpin.com/2010/04/composite-index-vs-include-covering-index/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DELETE using SYNONYMS</title>
		<link>http://www.daveturpin.com/2010/04/delete-using-synonyms/</link>
		<comments>http://www.daveturpin.com/2010/04/delete-using-synonyms/#comments</comments>
		<pubDate>Thu, 15 Apr 2010 00:42:08 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[T-SQL]]></category>
		<category><![CDATA[DELETE]]></category>
		<category><![CDATA[SYNONYM]]></category>

		<guid isPermaLink="false">http://www.daveturpin.com/2010/04/delete-using-synonyms/</guid>
		<description><![CDATA[I had a situation happen at work today that I never would have guessed is possible.&#160; But since it happened, it is possible. It’s all about how I used a synonym for a table in a DELETE statement. Since SYNONYMS are not commonly used, at least not in my circle of friends, I’ll take a [...]]]></description>
		<wfw:commentRss>http://www.daveturpin.com/2010/04/delete-using-synonyms/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Use dm_io_virtual_file_stats to Monitor tempdb</title>
		<link>http://www.daveturpin.com/2010/04/use-dm_io_virtual_file_stats-to-monitor-tempdb/</link>
		<comments>http://www.daveturpin.com/2010/04/use-dm_io_virtual_file_stats-to-monitor-tempdb/#comments</comments>
		<pubDate>Sat, 10 Apr 2010 16:03:49 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[DMF & DMV]]></category>
		<category><![CDATA[T-SQL]]></category>
		<category><![CDATA[db_id]]></category>
		<category><![CDATA[db_name]]></category>
		<category><![CDATA[dropcleanbuffers]]></category>
		<category><![CDATA[file_id]]></category>
		<category><![CDATA[file_name]]></category>
		<category><![CDATA[physical reads]]></category>
		<category><![CDATA[sys.dm_io_virtual_file_stats]]></category>
		<category><![CDATA[virtual reads]]></category>

		<guid isPermaLink="false">http://www.daveturpin.com/2010/04/use-dm_io_virtual_file_stats-to-monitor-tempdb/</guid>
		<description><![CDATA[I’ve been watching some Webcasts by Ramesh Meyyappan at SQL Workshops on query performance tuning.  This guy is a wizard… inspiring. Many of his techniques, which he just does like second nature, may require someone to slow things down to really articulate what he does.  Sort of like watching an instant replay during a sports [...]]]></description>
		<wfw:commentRss>http://www.daveturpin.com/2010/04/use-dm_io_virtual_file_stats-to-monitor-tempdb/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Testing HASHING to Speed Up Queries on Strings Part II</title>
		<link>http://www.daveturpin.com/2010/04/testing-hashing-to-speed-up-queries-on-strings-part-ii/</link>
		<comments>http://www.daveturpin.com/2010/04/testing-hashing-to-speed-up-queries-on-strings-part-ii/#comments</comments>
		<pubDate>Sun, 04 Apr 2010 11:05:59 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[T-SQL]]></category>
		<category><![CDATA[CHECKSUM]]></category>
		<category><![CDATA[hashing]]></category>
		<category><![CDATA[NTILE]]></category>

		<guid isPermaLink="false">http://www.daveturpin.com/2010/04/testing-hashing-to-speed-up-queries-on-strings-part-ii/</guid>
		<description><![CDATA[The objective of my last post, Testing HASHING to Speed Up Queries on Strings Part I, was to demonstrate query lookup performance when querying hash columns instead of the original string value.  In my test I chose a small set of about 20,000 email addresses as the base test case. To recap the last post: [...]]]></description>
		<wfw:commentRss>http://www.daveturpin.com/2010/04/testing-hashing-to-speed-up-queries-on-strings-part-ii/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Testing HASHING to Speed Up Queries on Strings Part I</title>
		<link>http://www.daveturpin.com/2010/03/testing-hashing-to-speed-up-queries-on-strings-part-i/</link>
		<comments>http://www.daveturpin.com/2010/03/testing-hashing-to-speed-up-queries-on-strings-part-i/#comments</comments>
		<pubDate>Sun, 21 Mar 2010 22:08:18 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[T-SQL]]></category>
		<category><![CDATA[CHECKSUM]]></category>
		<category><![CDATA[CTE]]></category>
		<category><![CDATA[hashing]]></category>
		<category><![CDATA[NTILE ranking function]]></category>

		<guid isPermaLink="false">http://www.daveturpin.com/2010/03/testing-hashing-to-speed-up-queries-on-strings-part-i/</guid>
		<description><![CDATA[It’s common knowledge that relational database engines do well indexing numeric data, particularly integer data.&#160; String data is a little more tricky and tends to take longer to search / index. My original intent of this post was to simulate how the SQL Server storage engine might handle statistics on an index, in particular, a [...]]]></description>
		<wfw:commentRss>http://www.daveturpin.com/2010/03/testing-hashing-to-speed-up-queries-on-strings-part-i/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
