<?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>SQLServerPedia &#187; Transact-SQL (T-SQL)</title>
	<atom:link href="http://sqlserverpedia.com/blog/category/transact-sql-t-sql/feed/" rel="self" type="application/rss+xml" />
	<link>http://sqlserverpedia.com/blog</link>
	<description></description>
	<lastBuildDate>Sat, 20 Mar 2010 02:47:59 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Bitemporal Data</title>
		<link>http://sqlserverpedia.com/blog/database-design/bitemporal-data/</link>
		<comments>http://sqlserverpedia.com/blog/database-design/bitemporal-data/#comments</comments>
		<pubDate>Tue, 04 Aug 2009 14:12:50 +0000</pubDate>
		<dc:creator>Kevin Kline</dc:creator>
				<category><![CDATA[Database Design]]></category>
		<category><![CDATA[Transact-SQL (T-SQL)]]></category>

		<guid isPermaLink="false">http://sqlserverpedia.com/blog/?p=6850</guid>
		<description><![CDATA[Any IT pro with more than a year or two of experience will have faced the challenges of version control for an application, but what if you have to implement version control for data?
The most common way to tackle this problem is implementing something called &#8220;bitemporal data&#8221;. Under this method, each row in a table [...]]]></description>
			<content:encoded><![CDATA[<p>Any IT pro with more than a year or two of experience will have faced the challenges of version control for an application, but what if you have to implement version control for data?</p>
<p>The most common way to tackle this problem is implementing something called &#8220;bitemporal data&#8221;. Under this method, each row in a table includes the current valid time and the transaction time. Since two distinct time values are stored, we get the term bitemporal.</p>
<p>A great place to start is <a title="Adam Machanic's Blog" href="http://sqlblog.com/blogs/adam_machanic/default.aspx" target="_blank">Adam Machanic</a>&#8217;s excellent article at http://www.simple-talk.com/sql/t-sql-programming/a-primer-on-managing-data-bitemporally/. In addition, I encourage you to check out Adam&#8217;s book &#8220;<a title="Expert SQL Server 2005 Development" href="http://www.apress.com/book/view/9781590597293" target="_blank">Expert SQL Server 2005 Development</a>&#8221; at http://www.apress.com/book/view/9781590597293.</p>
<p>In addition, <a title="Dejan Sarka's Blog" href="http://blogs.solidq.com/EN/dsarka/default.aspx" target="_blank">Dejan Sarka</a> pointed out that you can get a very comprehensive information on supporting temporal data from a book entitled &#8220;<a title="Developing Time-Oriented Database Applications" href="http://www.cs.arizona.edu/~rts/publications.html" target="_blank">Developing Time-Oriented Database Applications in SQL</a>&#8221; by Richard T. Snodgrass. Mr. Snodgrass was so kind to publish the book in PDF format and make it available for free download at http://www.cs.arizona.edu/~rts/publications.html. (Note that the book is quite old now (year 1999), so the T-SQL code does not include any SQL Server 2005 or 2008 enhancements. But the basic SQL is still solid.</p>
<p>Cheers!</p>
<p>-Kevin</p>
<p>kekline @ twitter</p>
<p>P.S. Check out my new site &#8211; http://kevinekline.com</p>




	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Fdatabase-design%2Fbitemporal-data%2F&amp;title=Bitemporal%20Data&amp;bodytext=Any%20IT%20pro%20with%20more%20than%20a%20year%20or%20two%20of%20experience%20will%20have%20faced%20the%20challenges%20of%20version%20control%20for%20an%20application%2C%20but%20what%20if%20you%20have%20to%20implement%20version%20control%20for%20data%3F%0D%0A%0D%0AThe%20most%20common%20way%20to%20tackle%20this%20problem%20is%20implementing%20some" title="Digg"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Fdatabase-design%2Fbitemporal-data%2F&amp;title=Bitemporal%20Data&amp;notes=Any%20IT%20pro%20with%20more%20than%20a%20year%20or%20two%20of%20experience%20will%20have%20faced%20the%20challenges%20of%20version%20control%20for%20an%20application%2C%20but%20what%20if%20you%20have%20to%20implement%20version%20control%20for%20data%3F%0D%0A%0D%0AThe%20most%20common%20way%20to%20tackle%20this%20problem%20is%20implementing%20some" title="del.icio.us"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Fdatabase-design%2Fbitemporal-data%2F&amp;title=Bitemporal%20Data" title="DZone"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.dotnetkicks.com/kick/?url=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Fdatabase-design%2Fbitemporal-data%2F&amp;title=Bitemporal%20Data" title="DotNetKicks"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/dotnetkicks.png" title="DotNetKicks" alt="DotNetKicks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Fdatabase-design%2Fbitemporal-data%2F&amp;title=Bitemporal%20Data&amp;annotation=Any%20IT%20pro%20with%20more%20than%20a%20year%20or%20two%20of%20experience%20will%20have%20faced%20the%20challenges%20of%20version%20control%20for%20an%20application%2C%20but%20what%20if%20you%20have%20to%20implement%20version%20control%20for%20data%3F%0D%0A%0D%0AThe%20most%20common%20way%20to%20tackle%20this%20problem%20is%20implementing%20some" title="Google Bookmarks"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://ping.fm/ref/?link=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Fdatabase-design%2Fbitemporal-data%2F&amp;title=Bitemporal%20Data&amp;body=Any%20IT%20pro%20with%20more%20than%20a%20year%20or%20two%20of%20experience%20will%20have%20faced%20the%20challenges%20of%20version%20control%20for%20an%20application%2C%20but%20what%20if%20you%20have%20to%20implement%20version%20control%20for%20data%3F%0D%0A%0D%0AThe%20most%20common%20way%20to%20tackle%20this%20problem%20is%20implementing%20some" title="Ping.fm"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/ping.png" title="Ping.fm" alt="Ping.fm" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://reddit.com/submit?url=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Fdatabase-design%2Fbitemporal-data%2F&amp;title=Bitemporal%20Data" title="Reddit"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Fdatabase-design%2Fbitemporal-data%2F&amp;title=Bitemporal%20Data" title="StumbleUpon"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="" title="TwitThis"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://sqlserverpedia.com/blog/database-design/bitemporal-data/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why do I keep seeing this mistake?</title>
		<link>http://sqlserverpedia.com/blog/transact-sql-t-sql/why-do-i-keep-seeing-this-mistake/</link>
		<comments>http://sqlserverpedia.com/blog/transact-sql-t-sql/why-do-i-keep-seeing-this-mistake/#comments</comments>
		<pubDate>Fri, 10 Jul 2009 19:50:42 +0000</pubDate>
		<dc:creator>Kevin Kline</dc:creator>
				<category><![CDATA[Transact-SQL (T-SQL)]]></category>

		<guid isPermaLink="false">http://sqlserverpedia.com/blog/?p=6492</guid>
		<description><![CDATA[One of the fundamentals of loop optimization is that you should move stable operations outside of the loop.  What I want to know is &#8211; if this is such a fundamental rule, why do so many people break it?!?
If you are familiar with other programming languages, then you are probably aware of loop optimization [...]]]></description>
			<content:encoded><![CDATA[<p>One of the fundamentals of loop optimization is that you should move stable operations outside of the loop.  What I want to know is &#8211; if this is such a fundamental rule, why do so many people break it?!?</p>
<p>If you are familiar with other programming languages, then you are probably aware of loop optimization techniques. You should try to put all operations outside of the loop if they don’t need to change within the loop. This reduces the amount of unnecessary repetitive work. SQL Server optimizer doesn’t automatically recognize such inefficiencies and clean the code for you (compilers of some other languages do). You have to write efficient loops yourself as in the following example.</p>
<p>These scripts print a table of square roots for all numbers from 1 to 100.  (My apologies but Wordpress won&#8217;t seem to keep my indents in place in the code.)  Notice the boldfaced code below:</p>
<pre class="brush:tsql">-- Loop with code inside = inefficient</pre>
<pre class="brush:tsql">SET NOCOUNT ON

DECLARE @message VARCHAR(25),  @counter SMALLINT

SELECT  @counter = 0

WHILE @counter &lt; 100

BEGIN

SET @counter = @counter + 1

SET @message = REPLICATE( '-', 25 )

PRINT  @message

SET @message = str( @counter, 10 ) + str( SQRT( CONVERT( FLOAT, @counter ) ), 10, 4 )

PRINT  @message

END</pre>
<pre class="brush:tsql">-- Elapsed time: 376 ms</pre>
<p>Compare the above Transact-SQL script to the one below, where the boldfaced code is moved outside of the loop:</p>
<pre class="brush:tsql">-- Loop with code outside = efficient</pre>
<pre class="brush:tsql">SET NOCOUNT ON

DECLARE @separator VARCHAR(25), @message   VARCHAR(25), @counter   SMALLINT

SELECT  @counter = 0, @separator = REPLICATE( '-', 25 )

WHILE @counter &lt; 100

BEGIN

SET @counter = @counter + 1

PRINT  @separator

SET @message = Str( @counter, 10 ) + Str( SQRT( CONVERT( FLOAT, @counter ) ), 10, 4 )

PRINT  @message

END</pre>
<pre class="brush:tsql">-- Elapsed time: 36 ms</pre>
<p>The second script executes the REPLICATE( ‘-‘, 25 ) function only once, compared to 100 times in the first script. Results produced by both scripts are identical:</p>
<pre class="brush:tsql">-------------------------

1    1.0000

-------------------------

2    1.4142

-------------------------

3    1.7321

-------------------------

4    2.0000

. . .

. . .

. . .

-------------------------

99    9.9499

-------------------------

100   10.0000</pre>
<p>Of course, there are a million and one ways to perform any such algorithm.  But I&#8217;m still surprised that otherwise experienced and competent database programmers are still embedding very stable elements of their code inside of extensive looping operations rather than outside of them.  Thoughts?</p>
<p>Cheers,</p>
<p>-Kev</p>




	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Ftransact-sql-t-sql%2Fwhy-do-i-keep-seeing-this-mistake%2F&amp;title=Why%20do%20I%20keep%20seeing%20this%20mistake%3F&amp;bodytext=One%20of%20the%20fundamentals%20of%20loop%20optimization%20is%20that%20you%20should%20move%20stable%20operations%20outside%20of%20the%20loop.%20%20What%20I%20want%20to%20know%20is%20-%20if%20this%20is%20such%20a%20fundamental%20rule%2C%20why%20do%20so%20many%20people%20break%20it%3F%21%3F%0D%0A%0D%0AIf%20you%20are%20familiar%20with%20other%20programming%20" title="Digg"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Ftransact-sql-t-sql%2Fwhy-do-i-keep-seeing-this-mistake%2F&amp;title=Why%20do%20I%20keep%20seeing%20this%20mistake%3F&amp;notes=One%20of%20the%20fundamentals%20of%20loop%20optimization%20is%20that%20you%20should%20move%20stable%20operations%20outside%20of%20the%20loop.%20%20What%20I%20want%20to%20know%20is%20-%20if%20this%20is%20such%20a%20fundamental%20rule%2C%20why%20do%20so%20many%20people%20break%20it%3F%21%3F%0D%0A%0D%0AIf%20you%20are%20familiar%20with%20other%20programming%20" title="del.icio.us"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Ftransact-sql-t-sql%2Fwhy-do-i-keep-seeing-this-mistake%2F&amp;title=Why%20do%20I%20keep%20seeing%20this%20mistake%3F" title="DZone"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.dotnetkicks.com/kick/?url=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Ftransact-sql-t-sql%2Fwhy-do-i-keep-seeing-this-mistake%2F&amp;title=Why%20do%20I%20keep%20seeing%20this%20mistake%3F" title="DotNetKicks"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/dotnetkicks.png" title="DotNetKicks" alt="DotNetKicks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Ftransact-sql-t-sql%2Fwhy-do-i-keep-seeing-this-mistake%2F&amp;title=Why%20do%20I%20keep%20seeing%20this%20mistake%3F&amp;annotation=One%20of%20the%20fundamentals%20of%20loop%20optimization%20is%20that%20you%20should%20move%20stable%20operations%20outside%20of%20the%20loop.%20%20What%20I%20want%20to%20know%20is%20-%20if%20this%20is%20such%20a%20fundamental%20rule%2C%20why%20do%20so%20many%20people%20break%20it%3F%21%3F%0D%0A%0D%0AIf%20you%20are%20familiar%20with%20other%20programming%20" title="Google Bookmarks"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://ping.fm/ref/?link=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Ftransact-sql-t-sql%2Fwhy-do-i-keep-seeing-this-mistake%2F&amp;title=Why%20do%20I%20keep%20seeing%20this%20mistake%3F&amp;body=One%20of%20the%20fundamentals%20of%20loop%20optimization%20is%20that%20you%20should%20move%20stable%20operations%20outside%20of%20the%20loop.%20%20What%20I%20want%20to%20know%20is%20-%20if%20this%20is%20such%20a%20fundamental%20rule%2C%20why%20do%20so%20many%20people%20break%20it%3F%21%3F%0D%0A%0D%0AIf%20you%20are%20familiar%20with%20other%20programming%20" title="Ping.fm"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/ping.png" title="Ping.fm" alt="Ping.fm" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://reddit.com/submit?url=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Ftransact-sql-t-sql%2Fwhy-do-i-keep-seeing-this-mistake%2F&amp;title=Why%20do%20I%20keep%20seeing%20this%20mistake%3F" title="Reddit"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Ftransact-sql-t-sql%2Fwhy-do-i-keep-seeing-this-mistake%2F&amp;title=Why%20do%20I%20keep%20seeing%20this%20mistake%3F" title="StumbleUpon"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="" title="TwitThis"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://sqlserverpedia.com/blog/transact-sql-t-sql/why-do-i-keep-seeing-this-mistake/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Looking for Good DMV/Database Admin Queries!</title>
		<link>http://sqlserverpedia.com/blog/transact-sql-t-sql/looking-for-good-dmvdatabase-admin-queries/</link>
		<comments>http://sqlserverpedia.com/blog/transact-sql-t-sql/looking-for-good-dmvdatabase-admin-queries/#comments</comments>
		<pubDate>Tue, 07 Apr 2009 21:36:53 +0000</pubDate>
		<dc:creator>Kevin Kline</dc:creator>
				<category><![CDATA[Transact-SQL (T-SQL)]]></category>

		<guid isPermaLink="false">http://sqlserverpedia.com/blog/?p=3549</guid>
		<description><![CDATA[I like to collect useful database administration queries that leverage the SQL Server 2005 and 2008 DMVs.  Heck, I&#8217;m still interested in SQL Server 2000 queries too.  I thought I&#8217;d make my search public so that a) you can share your favorite queries here or great reference queries written by others and publicly posted on the Internet, [...]]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal" style="margin: 0in 0in 0pt;"><span style="font-size: small; font-family: Calibri;">I like to collect useful database administration queries that leverage the SQL Server 2005 and 2008 DMVs.  Heck, I&#8217;m still interested in SQL Server 2000 queries too.  I thought I&#8217;d make my search public so that a) you can share your favorite queries here or great reference queries written by others and publicly posted on the Internet, and b) everyone can benefit from this collaborative approach to DMV queries.  If you&#8217;re aware of collections of scripts, for example like those available from the <a title="The SQL Server Customer Advisory Team" href="http://www.sqlcat.com" target="_blank">SQLCAT</a> team, please post the location of the collections or libraries.</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt;"> </p>
<p class="MsoNormal" style="margin: 0in 0in 0pt;"><span style="font-size: small; font-family: Calibri;">The intent is to provide ourselves with a set of scripts they can use to perform tasks that would otherwise require them to hit BOL heavily to research what DMVs or system catalog views they need to access to get what they want. These types of activities are not easily performed from within the query tool user interface.</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt;"><span style="font-size: small; font-family: Calibri;"> </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt;"><span style="font-size: small; font-family: Calibri;">I’m requesting everyone to <strong>post or reference your favorite queries</strong> in any of the following categories below. The queries could be in your notes, from web sites like MSDN or TechNet or SQLServerPedia.com, from our great SQL Server bloggers and MVPs.  (Be sure to give credit to the originator when you post it here.)  </span><span style="font-size: small; font-family: Calibri;">Speaking of favorite scripts, you might want to check out SQLServerPedia.com, if you haven&#8217;t already done so.  The wiki is getting quite large and there&#8217;s lots of new information popping up daily.  Looking for more good query samples?  </span><span style="font-size: small; font-family: Calibri;">If you didn&#8217;t already know it, be sure to check the Samples folder in your SQL Server installation.  Microsoft has a lot of examples in their SQL Server 2005 Script Library. </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt;"> </p>
<p class="MsoNormal" style="margin: 0in 0in 0pt;"><span style="font-size: small; font-family: Calibri;">When posting, please</span><span style="font-size: small; font-family: Calibri;">:</span></p>
<p class="MsoListParagraph" style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in; mso-list: l1 level1 lfo1;"><span style="font-family: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol;"><span style="mso-list: Ignore;"><span style="font-size: small;">·</span><span style="font: 7pt 'Times New Roman';">         </span></span></span><span style="font-size: small; font-family: Calibri;">Describe briefly what the snippet does</span></p>
<p class="MsoListParagraph" style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in; mso-list: l1 level1 lfo1;"><span style="font-family: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol;"><span style="mso-list: Ignore;"><span style="font-size: small;">·</span><span style="font: 7pt 'Times New Roman';">         </span></span></span><span style="font-size: small; font-family: Calibri;">Describe if this is a 2005/2008 query or just 2000 </span></p>
<p class="MsoListParagraph" style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in; mso-list: l1 level1 lfo1;"><span style="font-family: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol;"><span style="mso-list: Ignore;"><span style="font-size: small;">·</span><span style="font: 7pt 'Times New Roman';">         </span></span></span><span style="font-size: small; font-family: Calibri;">Provide the SQL / Script and indicate if there are any parameters or if the SQL can be run without modification</span></p>
<p class="MsoListParagraph" style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in; mso-list: l1 level1 lfo1;"><span style="font-size: small; font-family: Calibri;"> </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt;"><span style="font-size: small; font-family: Calibri;">Here are some categories I&#8217;m looking for, but if you have something not addressed here, please post it:</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt;"><span style="font-size: small; font-family: Calibri;"> </span></p>
<p class="MsoListParagraph" style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in; mso-list: l0 level1 lfo2;"><span style="font-family: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol;"><span style="mso-list: Ignore;"><span style="font-size: small;">·</span><span style="font: 7pt 'Times New Roman';">         </span></span></span><span style="font-size: small; font-family: Calibri;">Object Sizes – a list of objects in a database with their sizes</span></p>
<p class="MsoListParagraph" style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in; mso-list: l0 level1 lfo2;"><span style="font-family: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol;"><span style="mso-list: Ignore;"><span style="font-size: small;">·</span><span style="font: 7pt 'Times New Roman';">         </span></span></span><span style="font-size: small; font-family: Calibri;">Missing Indexes</span></p>
<p class="MsoListParagraph" style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in; mso-list: l0 level1 lfo2;"><span style="font-family: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol;"><span style="mso-list: Ignore;"><span style="font-size: small;">·</span><span style="font: 7pt 'Times New Roman';">         </span></span></span><span style="font-size: small; font-family: Calibri;">Index Utilization – all indexes</span></p>
<p class="MsoListParagraph" style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in; mso-list: l0 level1 lfo2;"><span style="font-family: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol;"><span style="mso-list: Ignore;"><span style="font-size: small;">·</span><span style="font: 7pt 'Times New Roman';">         </span></span></span><span style="font-size: small; font-family: Calibri;">Index Utilization &#8211; on a specific table</span></p>
<p class="MsoListParagraph" style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in; mso-list: l0 level1 lfo2;"><span style="font-family: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol;"><span style="mso-list: Ignore;"><span style="font-size: small;">·</span><span style="font: 7pt 'Times New Roman';">         </span></span></span><span style="font-size: small; font-family: Calibri;">Index Fragmentation – all indexes</span></p>
<p class="MsoListParagraph" style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in; mso-list: l0 level1 lfo2;"><span style="font-family: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol;"><span style="mso-list: Ignore;"><span style="font-size: small;">·</span><span style="font: 7pt 'Times New Roman';">         </span></span></span><span style="font-size: small; font-family: Calibri;">Index Fragmentation – on a specific table</span></p>
<p class="MsoListParagraph" style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in; mso-list: l0 level1 lfo2;"><span style="font-family: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol;"><span style="mso-list: Ignore;"><span style="font-size: small;">·</span><span style="font: 7pt 'Times New Roman';">         </span></span></span><span style="font-size: small; font-family: Calibri;">Index Defrag options – various with defrag, rebuild, online, offline, heap, etc.</span></p>
<p class="MsoListParagraph" style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in; mso-list: l0 level1 lfo2;"><span style="font-family: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol;"><span style="mso-list: Ignore;"><span style="font-size: small;">·</span><span style="font: 7pt 'Times New Roman';">         </span></span></span><span style="font-size: small; font-family: Calibri;">SQL Performance – leveraging the 2005+ DMVs for worst performers, active statements</span></p>
<p class="MsoListParagraph" style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in; mso-list: l0 level1 lfo2;"><span style="font-family: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol;"><span style="mso-list: Ignore;"><span style="font-size: small;">·</span><span style="font: 7pt 'Times New Roman';">         </span></span></span><span style="font-size: small; font-family: Calibri;">CPU and Optimization</span></p>
<p class="MsoListParagraph" style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in; mso-list: l0 level1 lfo2;"><span style="font-family: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol;"><span style="mso-list: Ignore;"><span style="font-size: small;">·</span><span style="font: 7pt 'Times New Roman';">         </span></span></span><span style="font-size: small; font-family: Calibri;">Buffer Cache</span></p>
<p class="MsoListParagraph" style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in; mso-list: l0 level1 lfo2;"><span style="font-family: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol;"><span style="mso-list: Ignore;"><span style="font-size: small;">·</span><span style="font: 7pt 'Times New Roman';">         </span></span></span><span style="font-size: small; font-family: Calibri;">Wait Stats</span></p>
<p class="MsoListParagraph" style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in; mso-list: l0 level1 lfo2;"><span style="font-family: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol;"><span style="mso-list: Ignore;"><span style="font-size: small;">·</span><span style="font: 7pt 'Times New Roman';">         </span></span></span><span style="font-size: small; font-family: Calibri;">Deadlocks</span></p>
<p class="MsoListParagraph" style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in; mso-list: l0 level1 lfo2;"><span style="font-family: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol;"><span style="mso-list: Ignore;"><span style="font-size: small;">·</span><span style="font: 7pt 'Times New Roman';">         </span></span></span><span style="font-size: small; font-family: Calibri;">Plan Guide Queries</p>
<p class="MsoListParagraph" style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in; mso-list: l0 level1 lfo2;"><span style="font-family: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol;"><span style="mso-list: Ignore;"><span style="font-size: small;">·</span><span style="font: 7pt 'Times New Roman';">         </span></span></span><span style="font-size: small; font-family: Calibri;">SQL Trace</span></p>
<p></span></p>
<p class="MsoListParagraph" style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in; mso-list: l0 level1 lfo2;"><span style="font-family: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol;"><span style="mso-list: Ignore;"><span style="font-size: small;">·</span><span style="font: 7pt 'Times New Roman';">         </span></span></span><span style="font-size: small; font-family: Calibri;">Backup History – or other backup related queries</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt;"><span style="font-size: small; font-family: Calibri;"> </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt;"><span style="font-size: small; font-family: Calibri;">Thanks in advance!</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt;"> </p>
<p class="MsoNormal" style="margin: 0in 0in 0pt;"><span style="font-size: small; font-family: Calibri;">-Kevin</span></p>




	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Ftransact-sql-t-sql%2Flooking-for-good-dmvdatabase-admin-queries%2F&amp;title=Looking%20for%20Good%20DMV%2FDatabase%20Admin%20Queries%21&amp;bodytext=I%20like%C2%A0to%20collect%20useful%C2%A0database%20administration%20queries%20that%20leverage%20the%20SQL%20Server%202005%20and%202008%20DMVs.%C2%A0%20Heck%2C%20I%27m%20still%20interested%20in%20SQL%20Server%202000%20queries%20too.%20%C2%A0I%20thought%20I%27d%20make%20my%20search%20public%20so%20that%20a%29%20you%20can%20share%20your%20favorite%20quer" title="Digg"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Ftransact-sql-t-sql%2Flooking-for-good-dmvdatabase-admin-queries%2F&amp;title=Looking%20for%20Good%20DMV%2FDatabase%20Admin%20Queries%21&amp;notes=I%20like%C2%A0to%20collect%20useful%C2%A0database%20administration%20queries%20that%20leverage%20the%20SQL%20Server%202005%20and%202008%20DMVs.%C2%A0%20Heck%2C%20I%27m%20still%20interested%20in%20SQL%20Server%202000%20queries%20too.%20%C2%A0I%20thought%20I%27d%20make%20my%20search%20public%20so%20that%20a%29%20you%20can%20share%20your%20favorite%20quer" title="del.icio.us"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Ftransact-sql-t-sql%2Flooking-for-good-dmvdatabase-admin-queries%2F&amp;title=Looking%20for%20Good%20DMV%2FDatabase%20Admin%20Queries%21" title="DZone"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.dotnetkicks.com/kick/?url=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Ftransact-sql-t-sql%2Flooking-for-good-dmvdatabase-admin-queries%2F&amp;title=Looking%20for%20Good%20DMV%2FDatabase%20Admin%20Queries%21" title="DotNetKicks"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/dotnetkicks.png" title="DotNetKicks" alt="DotNetKicks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Ftransact-sql-t-sql%2Flooking-for-good-dmvdatabase-admin-queries%2F&amp;title=Looking%20for%20Good%20DMV%2FDatabase%20Admin%20Queries%21&amp;annotation=I%20like%C2%A0to%20collect%20useful%C2%A0database%20administration%20queries%20that%20leverage%20the%20SQL%20Server%202005%20and%202008%20DMVs.%C2%A0%20Heck%2C%20I%27m%20still%20interested%20in%20SQL%20Server%202000%20queries%20too.%20%C2%A0I%20thought%20I%27d%20make%20my%20search%20public%20so%20that%20a%29%20you%20can%20share%20your%20favorite%20quer" title="Google Bookmarks"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://ping.fm/ref/?link=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Ftransact-sql-t-sql%2Flooking-for-good-dmvdatabase-admin-queries%2F&amp;title=Looking%20for%20Good%20DMV%2FDatabase%20Admin%20Queries%21&amp;body=I%20like%C2%A0to%20collect%20useful%C2%A0database%20administration%20queries%20that%20leverage%20the%20SQL%20Server%202005%20and%202008%20DMVs.%C2%A0%20Heck%2C%20I%27m%20still%20interested%20in%20SQL%20Server%202000%20queries%20too.%20%C2%A0I%20thought%20I%27d%20make%20my%20search%20public%20so%20that%20a%29%20you%20can%20share%20your%20favorite%20quer" title="Ping.fm"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/ping.png" title="Ping.fm" alt="Ping.fm" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://reddit.com/submit?url=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Ftransact-sql-t-sql%2Flooking-for-good-dmvdatabase-admin-queries%2F&amp;title=Looking%20for%20Good%20DMV%2FDatabase%20Admin%20Queries%21" title="Reddit"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Ftransact-sql-t-sql%2Flooking-for-good-dmvdatabase-admin-queries%2F&amp;title=Looking%20for%20Good%20DMV%2FDatabase%20Admin%20Queries%21" title="StumbleUpon"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="" title="TwitThis"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://sqlserverpedia.com/blog/transact-sql-t-sql/looking-for-good-dmvdatabase-admin-queries/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Deleting records without log growth</title>
		<link>http://sqlserverpedia.com/blog/transact-sql-t-sql/deleting-records-without-log-growth/</link>
		<comments>http://sqlserverpedia.com/blog/transact-sql-t-sql/deleting-records-without-log-growth/#comments</comments>
		<pubDate>Thu, 04 Dec 2008 16:14:09 +0000</pubDate>
		<dc:creator>Brent Ozar</dc:creator>
				<category><![CDATA[Transact-SQL (T-SQL)]]></category>

		<guid isPermaLink="false">http://sqlserverpedia.com/blog/?p=579</guid>
		<description><![CDATA[Larry wrote in and asked:
&#8220;Is there a TSQL command sequence that will allow SQL DELETE statements to be issued without triggering any log growth? Assume I can change the recovery model.&#8221; 
Well, sort of &#8211; if you want to delete records without triggering as much log growth, there&#8217;s a different command to use instead:
TRUNCATE TABLE [...]]]></description>
			<content:encoded><![CDATA[<p>Larry wrote in and asked:</p>
<p style="padding-left: 30px;"><em>&#8220;Is there a TSQL command sequence that will allow SQL DELETE statements to be issued without triggering any log growth? Assume I can change the recovery model.&#8221; </em></p>
<p>Well, sort of &#8211; if you want to delete records without triggering as much log growth, there&#8217;s a different command to use instead:</p>
<p>TRUNCATE TABLE dbo.MyTableName</p>
<p>The truncate table command will empty out your table faster than you can say, &#8220;Whoops!&#8221;  Of course, that&#8217;s dangerous, but it comes in handy for things like data warehouse nightly ETL processes where you need to empty out huge work tables as quickly as possible.</p>
<p>The bad news: truncate table doesn&#8217;t accept a where clause.  It simply deletes all of the records in the table without logging each individual delete operation.  It&#8217;s quick, but it&#8217;s dangerous.</p>




	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Ftransact-sql-t-sql%2Fdeleting-records-without-log-growth%2F&amp;title=Deleting%20records%20without%20log%20growth&amp;bodytext=Larry%20wrote%20in%20and%20asked%3A%0D%0A%22Is%20there%20a%20TSQL%20command%20sequence%20that%20will%20allow%20SQL%20DELETE%20statements%20to%20be%20issued%20without%20triggering%20any%20log%20growth%3F%20Assume%20I%20can%20change%20the%20recovery%20model.%22%20%0D%0A%0D%0AWell%2C%20sort%20of%20-%20if%20you%20want%20to%20delete%20records%20without%20trig" title="Digg"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Ftransact-sql-t-sql%2Fdeleting-records-without-log-growth%2F&amp;title=Deleting%20records%20without%20log%20growth&amp;notes=Larry%20wrote%20in%20and%20asked%3A%0D%0A%22Is%20there%20a%20TSQL%20command%20sequence%20that%20will%20allow%20SQL%20DELETE%20statements%20to%20be%20issued%20without%20triggering%20any%20log%20growth%3F%20Assume%20I%20can%20change%20the%20recovery%20model.%22%20%0D%0A%0D%0AWell%2C%20sort%20of%20-%20if%20you%20want%20to%20delete%20records%20without%20trig" title="del.icio.us"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Ftransact-sql-t-sql%2Fdeleting-records-without-log-growth%2F&amp;title=Deleting%20records%20without%20log%20growth" title="DZone"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.dotnetkicks.com/kick/?url=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Ftransact-sql-t-sql%2Fdeleting-records-without-log-growth%2F&amp;title=Deleting%20records%20without%20log%20growth" title="DotNetKicks"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/dotnetkicks.png" title="DotNetKicks" alt="DotNetKicks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Ftransact-sql-t-sql%2Fdeleting-records-without-log-growth%2F&amp;title=Deleting%20records%20without%20log%20growth&amp;annotation=Larry%20wrote%20in%20and%20asked%3A%0D%0A%22Is%20there%20a%20TSQL%20command%20sequence%20that%20will%20allow%20SQL%20DELETE%20statements%20to%20be%20issued%20without%20triggering%20any%20log%20growth%3F%20Assume%20I%20can%20change%20the%20recovery%20model.%22%20%0D%0A%0D%0AWell%2C%20sort%20of%20-%20if%20you%20want%20to%20delete%20records%20without%20trig" title="Google Bookmarks"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://ping.fm/ref/?link=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Ftransact-sql-t-sql%2Fdeleting-records-without-log-growth%2F&amp;title=Deleting%20records%20without%20log%20growth&amp;body=Larry%20wrote%20in%20and%20asked%3A%0D%0A%22Is%20there%20a%20TSQL%20command%20sequence%20that%20will%20allow%20SQL%20DELETE%20statements%20to%20be%20issued%20without%20triggering%20any%20log%20growth%3F%20Assume%20I%20can%20change%20the%20recovery%20model.%22%20%0D%0A%0D%0AWell%2C%20sort%20of%20-%20if%20you%20want%20to%20delete%20records%20without%20trig" title="Ping.fm"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/ping.png" title="Ping.fm" alt="Ping.fm" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://reddit.com/submit?url=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Ftransact-sql-t-sql%2Fdeleting-records-without-log-growth%2F&amp;title=Deleting%20records%20without%20log%20growth" title="Reddit"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Ftransact-sql-t-sql%2Fdeleting-records-without-log-growth%2F&amp;title=Deleting%20records%20without%20log%20growth" title="StumbleUpon"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="" title="TwitThis"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://sqlserverpedia.com/blog/transact-sql-t-sql/deleting-records-without-log-growth/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>ORDER BY failings&#8230;</title>
		<link>http://sqlserverpedia.com/blog/sql-server-2005/order-by-failings/</link>
		<comments>http://sqlserverpedia.com/blog/sql-server-2005/order-by-failings/#comments</comments>
		<pubDate>Mon, 17 Nov 2008 19:58:37 +0000</pubDate>
		<dc:creator>Ari Weil</dc:creator>
				<category><![CDATA[SQL Server 2005]]></category>
		<category><![CDATA[SQL Server Engine Internals]]></category>
		<category><![CDATA[SQL Server Performance Tuning]]></category>
		<category><![CDATA[Transact-SQL (T-SQL)]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://sqlserverpedia.com/blog/?p=555</guid>
		<description><![CDATA[I had an interesting debate with a customer during a demo where I said that his assertion, &#8220;I don&#8217;t need to specify ORDER BY, I have a clustered index on that table&#8221; was problematic.  You see, defining a clustered index does tell SQL Server to store data in the order stipulated by the clustering [...]]]></description>
			<content:encoded><![CDATA[<p>I had an interesting debate with a customer during a demo where I said that his assertion, &#8220;I don&#8217;t need to specify ORDER BY, I have a clustered index on that table&#8221; was problematic.  You see, defining a clustered index does tell SQL Server to store data in the order stipulated by the clustering key, and many times running SELECTs against that data will return the data ordered as expected.  But there are some gotchas you should keep in mind:</p>
<ul>
<li>When SQL Server runs a query in parallel, each stream will complete it&#8217;s set of work and return its result which could cause your clustered-index-ordered data to appear out of order.</li>
<li>When another query is already scanning the data when your SELECT statement is run, the data will be read out of the order you&#8217;re expecting as your query will piggy-back on the other scan, then come back to the beginning to gather all the data requested.</li>
<li>If statistics are out-of-date on your clustered index, or SQL Server otherwise chooses to use a non-clustered index to scan the data, the order of the clustered index will not be reflected in the result set.</li>
</ul>
<p>But don&#8217;t take my word for it, <a href="http://blogs.msdn.com/conor_cunningham_msft/archive/2008/08/27/no-seatbelt-expecting-order-without-order-by.aspx">check out what Conor Cunningham has to say on the topic</a>, including some sample code to prove the point.</p>




	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Fsql-server-2005%2Forder-by-failings%2F&amp;title=ORDER%20BY%20failings...&amp;bodytext=I%20had%20an%20interesting%20debate%20with%20a%20customer%20during%20a%20demo%20where%20I%20said%20that%20his%20assertion%2C%20%22I%20don%27t%20need%20to%20specify%20ORDER%20BY%2C%20I%20have%20a%20clustered%20index%20on%20that%20table%22%20was%20problematic.%20%20You%20see%2C%20defining%20a%20clustered%20index%20does%20tell%20SQL%20Server%20to%20store%20" title="Digg"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Fsql-server-2005%2Forder-by-failings%2F&amp;title=ORDER%20BY%20failings...&amp;notes=I%20had%20an%20interesting%20debate%20with%20a%20customer%20during%20a%20demo%20where%20I%20said%20that%20his%20assertion%2C%20%22I%20don%27t%20need%20to%20specify%20ORDER%20BY%2C%20I%20have%20a%20clustered%20index%20on%20that%20table%22%20was%20problematic.%20%20You%20see%2C%20defining%20a%20clustered%20index%20does%20tell%20SQL%20Server%20to%20store%20" title="del.icio.us"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Fsql-server-2005%2Forder-by-failings%2F&amp;title=ORDER%20BY%20failings..." title="DZone"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.dotnetkicks.com/kick/?url=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Fsql-server-2005%2Forder-by-failings%2F&amp;title=ORDER%20BY%20failings..." title="DotNetKicks"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/dotnetkicks.png" title="DotNetKicks" alt="DotNetKicks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Fsql-server-2005%2Forder-by-failings%2F&amp;title=ORDER%20BY%20failings...&amp;annotation=I%20had%20an%20interesting%20debate%20with%20a%20customer%20during%20a%20demo%20where%20I%20said%20that%20his%20assertion%2C%20%22I%20don%27t%20need%20to%20specify%20ORDER%20BY%2C%20I%20have%20a%20clustered%20index%20on%20that%20table%22%20was%20problematic.%20%20You%20see%2C%20defining%20a%20clustered%20index%20does%20tell%20SQL%20Server%20to%20store%20" title="Google Bookmarks"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://ping.fm/ref/?link=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Fsql-server-2005%2Forder-by-failings%2F&amp;title=ORDER%20BY%20failings...&amp;body=I%20had%20an%20interesting%20debate%20with%20a%20customer%20during%20a%20demo%20where%20I%20said%20that%20his%20assertion%2C%20%22I%20don%27t%20need%20to%20specify%20ORDER%20BY%2C%20I%20have%20a%20clustered%20index%20on%20that%20table%22%20was%20problematic.%20%20You%20see%2C%20defining%20a%20clustered%20index%20does%20tell%20SQL%20Server%20to%20store%20" title="Ping.fm"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/ping.png" title="Ping.fm" alt="Ping.fm" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://reddit.com/submit?url=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Fsql-server-2005%2Forder-by-failings%2F&amp;title=ORDER%20BY%20failings..." title="Reddit"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Fsql-server-2005%2Forder-by-failings%2F&amp;title=ORDER%20BY%20failings..." title="StumbleUpon"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="" title="TwitThis"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://sqlserverpedia.com/blog/sql-server-2005/order-by-failings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How do you change the default location of an mdb file?</title>
		<link>http://sqlserverpedia.com/blog/sql-server-backup-and-restore/how-do-you-change-the-default-location-of-an-mdb-file/</link>
		<comments>http://sqlserverpedia.com/blog/sql-server-backup-and-restore/how-do-you-change-the-default-location-of-an-mdb-file/#comments</comments>
		<pubDate>Mon, 06 Oct 2008 20:22:54 +0000</pubDate>
		<dc:creator>David Gugick</dc:creator>
				<category><![CDATA[SQL Server Backup and Restore]]></category>
		<category><![CDATA[SQL Server Management]]></category>
		<category><![CDATA[Transact-SQL (T-SQL)]]></category>
		<category><![CDATA[database administration]]></category>
		<category><![CDATA[detached database]]></category>
		<category><![CDATA[mdb]]></category>
		<category><![CDATA[sql server]]></category>
		<category><![CDATA[t-sql]]></category>
		<category><![CDATA[tsql]]></category>

		<guid isPermaLink="false">http://sqlserverpedia.com/blog/?p=438</guid>
		<description><![CDATA[The full original question is:  How do you change the default location of a mdb file? Currently when I detach it is set for C: Drive path and I need to change it to D: Drive path. How can I change it?
First, thanks for the question submission!  You can detach the database, move the file(s), [...]]]></description>
			<content:encoded><![CDATA[<p>The full original question is:  How do you change the default location of a mdb file? Currently when I detach it is set for C: Drive path and I need to change it to D: Drive path. How can I change it?</p>
<p>First, thanks for the question submission!  You can detach the database, move the file(s), and reattach using the CREATE DATABASE&#8230; FOR ATTACH command.</p>
<p>This is a SQL Server 2005/2008 example. For SQL Server 2000, you would use sp_attach_db/sp_attach_single_file_db to perform the attach.</p>
<p>For example:</p>
<p>Detach the database during a maintenance window &#8211; make sure you have a backup just in case something goes wrong:</p>
<p>USE master;<br />
GO<br />
EXEC sp_detach_db &lt;db_name&gt;;<br />
GO</p>
<p>Now move the database file to the D: drive and reattach:</p>
<p>&#8211; Execute CREATE DATABASE FOR ATTACH statement<br />
CREATE DATABASE<br />
ON (FILENAME = &#8216;D:\\&#8217;) FOR ATTACH;<br />
GO</p>
<p>Keep the questions coming!  We get a large volume of submissions and love seeing what the community is thinking about. </p>
<p>David</p>




	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Fsql-server-backup-and-restore%2Fhow-do-you-change-the-default-location-of-an-mdb-file%2F&amp;title=How%20do%20you%20change%20the%20default%20location%20of%20an%20mdb%20file%3F&amp;bodytext=The%20full%20original%20question%20is%3A%C2%A0%20How%20do%20you%20change%20the%20default%20location%20of%20a%20mdb%20file%3F%20Currently%20when%20I%20detach%20it%20is%20set%20for%20C%3A%20Drive%20path%20and%20I%20need%20to%20change%20it%20to%20D%3A%20Drive%20path.%20How%20can%20I%20change%20it%3F%0D%0A%0D%0AFirst%2C%20thanks%20for%20the%20question%20submission%21%C2%A0%20" title="Digg"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Fsql-server-backup-and-restore%2Fhow-do-you-change-the-default-location-of-an-mdb-file%2F&amp;title=How%20do%20you%20change%20the%20default%20location%20of%20an%20mdb%20file%3F&amp;notes=The%20full%20original%20question%20is%3A%C2%A0%20How%20do%20you%20change%20the%20default%20location%20of%20a%20mdb%20file%3F%20Currently%20when%20I%20detach%20it%20is%20set%20for%20C%3A%20Drive%20path%20and%20I%20need%20to%20change%20it%20to%20D%3A%20Drive%20path.%20How%20can%20I%20change%20it%3F%0D%0A%0D%0AFirst%2C%20thanks%20for%20the%20question%20submission%21%C2%A0%20" title="del.icio.us"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Fsql-server-backup-and-restore%2Fhow-do-you-change-the-default-location-of-an-mdb-file%2F&amp;title=How%20do%20you%20change%20the%20default%20location%20of%20an%20mdb%20file%3F" title="DZone"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.dotnetkicks.com/kick/?url=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Fsql-server-backup-and-restore%2Fhow-do-you-change-the-default-location-of-an-mdb-file%2F&amp;title=How%20do%20you%20change%20the%20default%20location%20of%20an%20mdb%20file%3F" title="DotNetKicks"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/dotnetkicks.png" title="DotNetKicks" alt="DotNetKicks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Fsql-server-backup-and-restore%2Fhow-do-you-change-the-default-location-of-an-mdb-file%2F&amp;title=How%20do%20you%20change%20the%20default%20location%20of%20an%20mdb%20file%3F&amp;annotation=The%20full%20original%20question%20is%3A%C2%A0%20How%20do%20you%20change%20the%20default%20location%20of%20a%20mdb%20file%3F%20Currently%20when%20I%20detach%20it%20is%20set%20for%20C%3A%20Drive%20path%20and%20I%20need%20to%20change%20it%20to%20D%3A%20Drive%20path.%20How%20can%20I%20change%20it%3F%0D%0A%0D%0AFirst%2C%20thanks%20for%20the%20question%20submission%21%C2%A0%20" title="Google Bookmarks"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://ping.fm/ref/?link=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Fsql-server-backup-and-restore%2Fhow-do-you-change-the-default-location-of-an-mdb-file%2F&amp;title=How%20do%20you%20change%20the%20default%20location%20of%20an%20mdb%20file%3F&amp;body=The%20full%20original%20question%20is%3A%C2%A0%20How%20do%20you%20change%20the%20default%20location%20of%20a%20mdb%20file%3F%20Currently%20when%20I%20detach%20it%20is%20set%20for%20C%3A%20Drive%20path%20and%20I%20need%20to%20change%20it%20to%20D%3A%20Drive%20path.%20How%20can%20I%20change%20it%3F%0D%0A%0D%0AFirst%2C%20thanks%20for%20the%20question%20submission%21%C2%A0%20" title="Ping.fm"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/ping.png" title="Ping.fm" alt="Ping.fm" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://reddit.com/submit?url=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Fsql-server-backup-and-restore%2Fhow-do-you-change-the-default-location-of-an-mdb-file%2F&amp;title=How%20do%20you%20change%20the%20default%20location%20of%20an%20mdb%20file%3F" title="Reddit"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Fsql-server-backup-and-restore%2Fhow-do-you-change-the-default-location-of-an-mdb-file%2F&amp;title=How%20do%20you%20change%20the%20default%20location%20of%20an%20mdb%20file%3F" title="StumbleUpon"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="" title="TwitThis"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://sqlserverpedia.com/blog/sql-server-backup-and-restore/how-do-you-change-the-default-location-of-an-mdb-file/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Can SELECT Statements Cause Blocking to Occur in SQL Server?</title>
		<link>http://sqlserverpedia.com/blog/database-design/can-select-statements-cause-blocking-to-occur-in-sql-server/</link>
		<comments>http://sqlserverpedia.com/blog/database-design/can-select-statements-cause-blocking-to-occur-in-sql-server/#comments</comments>
		<pubDate>Fri, 26 Sep 2008 17:00:42 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[Database Design]]></category>
		<category><![CDATA[SQL Server Engine Internals]]></category>
		<category><![CDATA[SQL Server Management]]></category>
		<category><![CDATA[SQL Server Tutorial]]></category>
		<category><![CDATA[Transact-SQL (T-SQL)]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[SQLServer 2000; SQL Server 2005; Blocking; Locking]]></category>

		<guid isPermaLink="false">http://sqlserverpedia.com/blog/uncategorized/can-select-statements-cause-blocking-to-occur-in-sql-server/</guid>
		<description><![CDATA[The following question was posed to me during a call today and its one that I&#8217;ve heard quite a bit so I figured it warranted a blog post.
The answer is, absolutely!&#160; SELECT statements acquire a shared lock on the tables being accessed.&#160; This shared lock will not affect other SELECT statements hitting the same table, [...]]]></description>
			<content:encoded><![CDATA[<p>The following question was posed to me during a call today and its one that I&#8217;ve heard quite a bit so I figured it warranted a blog post.</p>
<p>The answer is, absolutely!&nbsp; SELECT statements acquire a shared lock on the tables being accessed.&nbsp; This shared lock will not affect other SELECT statements hitting the same table, but if someone tries to modify data in the table (via an UPDATE statement for example), the UPDATE statement will be blocked.&nbsp; When analyzing locks using sp_lock the (S) symbol indicates a shared lock is on an object.</p>
<p>This default behavior can be modified by using one of many query hints.&nbsp; Using the NOLOCK hint on a SELECT statement will force SQL Server to read data from the table without creating a shared lock on it.&nbsp; When using this hint, you run the risk of reading uncommited data from the database but in cases where reading data with 100% accuracy is not required, NOLOCK can dramatically reduce blocking and improve the performance of your SELECT queries.&nbsp; Another option is to use the READ UNCOMMITED isolation level when running your transactions, which conceptually does the same thing.</p>
<p>One additional caveat about both methods.&nbsp; If your SELECT statement is running, and it expects to read a page that has been deleted by a transaction that is currently executing, SQL Server may deadlock this transaction.&nbsp; There is an interresting post on this topic that can be found <a href="http://blogs.msdn.com/craigfr/archive/2007/06/12/query-failure-with-read-uncommitted.aspx">here</a>.</p>




	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Fdatabase-design%2Fcan-select-statements-cause-blocking-to-occur-in-sql-server%2F&amp;title=Can%20SELECT%20Statements%20Cause%20Blocking%20to%20Occur%20in%20SQL%20Server%3F&amp;bodytext=The%20following%20question%20was%20posed%20to%20me%20during%20a%20call%20today%20and%20its%20one%20that%20I%27ve%20heard%20quite%20a%20bit%20so%20I%20figured%20it%20warranted%20a%20blog%20post.%0A%0AThe%20answer%20is%2C%20absolutely%21%26nbsp%3B%20SELECT%20statements%20acquire%20a%20shared%20lock%20on%20the%20tables%20being%20accessed.%26nbsp%3B%20Th" title="Digg"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Fdatabase-design%2Fcan-select-statements-cause-blocking-to-occur-in-sql-server%2F&amp;title=Can%20SELECT%20Statements%20Cause%20Blocking%20to%20Occur%20in%20SQL%20Server%3F&amp;notes=The%20following%20question%20was%20posed%20to%20me%20during%20a%20call%20today%20and%20its%20one%20that%20I%27ve%20heard%20quite%20a%20bit%20so%20I%20figured%20it%20warranted%20a%20blog%20post.%0A%0AThe%20answer%20is%2C%20absolutely%21%26nbsp%3B%20SELECT%20statements%20acquire%20a%20shared%20lock%20on%20the%20tables%20being%20accessed.%26nbsp%3B%20Th" title="del.icio.us"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Fdatabase-design%2Fcan-select-statements-cause-blocking-to-occur-in-sql-server%2F&amp;title=Can%20SELECT%20Statements%20Cause%20Blocking%20to%20Occur%20in%20SQL%20Server%3F" title="DZone"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.dotnetkicks.com/kick/?url=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Fdatabase-design%2Fcan-select-statements-cause-blocking-to-occur-in-sql-server%2F&amp;title=Can%20SELECT%20Statements%20Cause%20Blocking%20to%20Occur%20in%20SQL%20Server%3F" title="DotNetKicks"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/dotnetkicks.png" title="DotNetKicks" alt="DotNetKicks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Fdatabase-design%2Fcan-select-statements-cause-blocking-to-occur-in-sql-server%2F&amp;title=Can%20SELECT%20Statements%20Cause%20Blocking%20to%20Occur%20in%20SQL%20Server%3F&amp;annotation=The%20following%20question%20was%20posed%20to%20me%20during%20a%20call%20today%20and%20its%20one%20that%20I%27ve%20heard%20quite%20a%20bit%20so%20I%20figured%20it%20warranted%20a%20blog%20post.%0A%0AThe%20answer%20is%2C%20absolutely%21%26nbsp%3B%20SELECT%20statements%20acquire%20a%20shared%20lock%20on%20the%20tables%20being%20accessed.%26nbsp%3B%20Th" title="Google Bookmarks"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://ping.fm/ref/?link=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Fdatabase-design%2Fcan-select-statements-cause-blocking-to-occur-in-sql-server%2F&amp;title=Can%20SELECT%20Statements%20Cause%20Blocking%20to%20Occur%20in%20SQL%20Server%3F&amp;body=The%20following%20question%20was%20posed%20to%20me%20during%20a%20call%20today%20and%20its%20one%20that%20I%27ve%20heard%20quite%20a%20bit%20so%20I%20figured%20it%20warranted%20a%20blog%20post.%0A%0AThe%20answer%20is%2C%20absolutely%21%26nbsp%3B%20SELECT%20statements%20acquire%20a%20shared%20lock%20on%20the%20tables%20being%20accessed.%26nbsp%3B%20Th" title="Ping.fm"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/ping.png" title="Ping.fm" alt="Ping.fm" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://reddit.com/submit?url=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Fdatabase-design%2Fcan-select-statements-cause-blocking-to-occur-in-sql-server%2F&amp;title=Can%20SELECT%20Statements%20Cause%20Blocking%20to%20Occur%20in%20SQL%20Server%3F" title="Reddit"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Fdatabase-design%2Fcan-select-statements-cause-blocking-to-occur-in-sql-server%2F&amp;title=Can%20SELECT%20Statements%20Cause%20Blocking%20to%20Occur%20in%20SQL%20Server%3F" title="StumbleUpon"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="" title="TwitThis"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://sqlserverpedia.com/blog/database-design/can-select-statements-cause-blocking-to-occur-in-sql-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Error Message: Ad hoc update to system catalogs is not supported.</title>
		<link>http://sqlserverpedia.com/blog/database-design/error-message-ad-hoc-update-to-system-catalogs-is-not-supported/</link>
		<comments>http://sqlserverpedia.com/blog/database-design/error-message-ad-hoc-update-to-system-catalogs-is-not-supported/#comments</comments>
		<pubDate>Wed, 24 Sep 2008 13:26:40 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[Database Design]]></category>
		<category><![CDATA[SQL Server 2005]]></category>
		<category><![CDATA[SQL Server Engine Internals]]></category>
		<category><![CDATA[SQL Server Management]]></category>
		<category><![CDATA[Transact-SQL (T-SQL)]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[sp_configure]]></category>
		<category><![CDATA[SQL Server 2000]]></category>

		<guid isPermaLink="false">http://sqlserverpedia.com/blog/uncategorized/error-message-ad-hoc-update-to-system-catalogs-is-not-supported/</guid>
		<description><![CDATA[I ran into an interresting situation today while working with a customer and thought it worthwhile to blog on the subject since my internet searching proved lengthy on the subject.  While trying to run a RECONFIGURE statement after making an sp_configure change I received the following message:
Msg 5808, Level 16, State 1, Line 2
Ad hoc [...]]]></description>
			<content:encoded><![CDATA[<p>I ran into an interresting situation today while working with a customer and thought it worthwhile to blog on the subject since my internet searching proved lengthy on the subject.  While trying to run a RECONFIGURE statement after making an sp_configure change I received the following message:</p>
<p><span style="color: #ff0000;">Msg 5808, Level 16, State 1, Line 2<br />
Ad hoc update to system catalogs is not supported.</span></p>
<p><span style="color: #000000;">I&#8217;m running on SQL Server 2005 SP2+ so my first thought was&#8230; obviously, but I&#8217;m not trying to update system catalogs, I&#8217;m trying to make an sp_configure change.  After doing some digging I found that the culript was the sp_configure &#8216;allow updates&#8217; parameter.  This configuration in SQL Server 2000 allowed or dissalowed direct system table updates.  In SQL Server 2005, this configuration item still exists but it is obsolete since direct access to system tables in always prohibited.  While the configuration item is obsolete, having it set to 1 in SQL Server 2005 requires you to run the RECONFIGURE statement using WITH OVERRIDE, otherwise you will get the message above. </span></p>
<p>If you ever see the message above when trying to run RECONFIGURE you will either need to run RECONFIGURE WITH OVERRIDE, or first run:</p>
<p>EXEC sp_configure &#8216;allow updates&#8217;, 0<br />
RECONFIGURE</p>
<p>I find it confusing that an &#8220;obsolete&#8221; configuration parameter can have an effect on instance behavior, but oh well.  I&#8217;d love to hear comments if anyone has any insight into this or similar issues.</p>
<p>Thanks to Jasper Smith, who posted <a href="http://www.sqlnewsgroups.net/group/microsoft.public.sqlserver.server/topic23407.aspx">here</a> and pointed me in the right direction.</p>




	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Fdatabase-design%2Ferror-message-ad-hoc-update-to-system-catalogs-is-not-supported%2F&amp;title=Error%20Message%3A%20Ad%20hoc%20update%20to%20system%20catalogs%20is%20not%20supported.&amp;bodytext=I%20ran%20into%20an%20interresting%20situation%20today%20while%20working%20with%20a%20customer%20and%20thought%20it%20worthwhile%20to%20blog%20on%20the%20subject%20since%20my%20internet%20searching%20proved%20lengthy%20on%20the%20subject.%C2%A0%20While%20trying%20to%20run%20a%20RECONFIGURE%20statement%20after%20making%20an%20sp_conf" title="Digg"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Fdatabase-design%2Ferror-message-ad-hoc-update-to-system-catalogs-is-not-supported%2F&amp;title=Error%20Message%3A%20Ad%20hoc%20update%20to%20system%20catalogs%20is%20not%20supported.&amp;notes=I%20ran%20into%20an%20interresting%20situation%20today%20while%20working%20with%20a%20customer%20and%20thought%20it%20worthwhile%20to%20blog%20on%20the%20subject%20since%20my%20internet%20searching%20proved%20lengthy%20on%20the%20subject.%C2%A0%20While%20trying%20to%20run%20a%20RECONFIGURE%20statement%20after%20making%20an%20sp_conf" title="del.icio.us"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Fdatabase-design%2Ferror-message-ad-hoc-update-to-system-catalogs-is-not-supported%2F&amp;title=Error%20Message%3A%20Ad%20hoc%20update%20to%20system%20catalogs%20is%20not%20supported." title="DZone"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.dotnetkicks.com/kick/?url=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Fdatabase-design%2Ferror-message-ad-hoc-update-to-system-catalogs-is-not-supported%2F&amp;title=Error%20Message%3A%20Ad%20hoc%20update%20to%20system%20catalogs%20is%20not%20supported." title="DotNetKicks"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/dotnetkicks.png" title="DotNetKicks" alt="DotNetKicks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Fdatabase-design%2Ferror-message-ad-hoc-update-to-system-catalogs-is-not-supported%2F&amp;title=Error%20Message%3A%20Ad%20hoc%20update%20to%20system%20catalogs%20is%20not%20supported.&amp;annotation=I%20ran%20into%20an%20interresting%20situation%20today%20while%20working%20with%20a%20customer%20and%20thought%20it%20worthwhile%20to%20blog%20on%20the%20subject%20since%20my%20internet%20searching%20proved%20lengthy%20on%20the%20subject.%C2%A0%20While%20trying%20to%20run%20a%20RECONFIGURE%20statement%20after%20making%20an%20sp_conf" title="Google Bookmarks"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://ping.fm/ref/?link=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Fdatabase-design%2Ferror-message-ad-hoc-update-to-system-catalogs-is-not-supported%2F&amp;title=Error%20Message%3A%20Ad%20hoc%20update%20to%20system%20catalogs%20is%20not%20supported.&amp;body=I%20ran%20into%20an%20interresting%20situation%20today%20while%20working%20with%20a%20customer%20and%20thought%20it%20worthwhile%20to%20blog%20on%20the%20subject%20since%20my%20internet%20searching%20proved%20lengthy%20on%20the%20subject.%C2%A0%20While%20trying%20to%20run%20a%20RECONFIGURE%20statement%20after%20making%20an%20sp_conf" title="Ping.fm"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/ping.png" title="Ping.fm" alt="Ping.fm" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://reddit.com/submit?url=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Fdatabase-design%2Ferror-message-ad-hoc-update-to-system-catalogs-is-not-supported%2F&amp;title=Error%20Message%3A%20Ad%20hoc%20update%20to%20system%20catalogs%20is%20not%20supported." title="Reddit"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Fdatabase-design%2Ferror-message-ad-hoc-update-to-system-catalogs-is-not-supported%2F&amp;title=Error%20Message%3A%20Ad%20hoc%20update%20to%20system%20catalogs%20is%20not%20supported." title="StumbleUpon"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="" title="TwitThis"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://sqlserverpedia.com/blog/database-design/error-message-ad-hoc-update-to-system-catalogs-is-not-supported/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Is there a way to find out from system tables when the store procedure was changed last?</title>
		<link>http://sqlserverpedia.com/blog/sql-server-tutorial/is-there-a-way-to-find-out-from-system-tables-when-the-store-procedure-was-changed-last/</link>
		<comments>http://sqlserverpedia.com/blog/sql-server-tutorial/is-there-a-way-to-find-out-from-system-tables-when-the-store-procedure-was-changed-last/#comments</comments>
		<pubDate>Fri, 29 Aug 2008 19:22:39 +0000</pubDate>
		<dc:creator>Ari Weil</dc:creator>
				<category><![CDATA[SQL Server 2005]]></category>
		<category><![CDATA[SQL Server Engine Internals]]></category>
		<category><![CDATA[SQL Server Management]]></category>
		<category><![CDATA[SQL Server Tutorial]]></category>
		<category><![CDATA[Transact-SQL (T-SQL)]]></category>

		<guid isPermaLink="false">http://sqlserverpedia.com/blog/?p=384</guid>
		<description><![CDATA[Absolutely.  You can use the sys.objects view to determine the create_date and modify_date for an object.  The query would be:

select [name],[create_date],[modify_date]
from [sys].[objects]
where [type]=N'P' and [is_ms_shipped]=0

To see the full definition of the procedure you would run:

select [name],[create_date],[modify_date],[definition]
from [sys].[objects] obj
join [sys].[sql_modules] mod
on obj.[object_id]=mod.[object_id]
where [type]=N'P' and [is_ms_shipped]=0





	
	
	
	
	
	
	
	
	


]]></description>
			<content:encoded><![CDATA[<p>Absolutely.  You can use the sys.objects view to determine the <strong>create_date</strong> and <strong>modify_date</strong> for an object.  The query would be:</p>
<blockquote><p><code><br />
select [name],[create_date],[modify_date]<br />
from [sys].[objects]<br />
where [type]=N'P' and [is_ms_shipped]=0<br />
</code></p></blockquote>
<p>To see the full definition of the procedure you would run:</p>
<blockquote><p><code><br />
select [name],[create_date],[modify_date],[definition]<br />
from [sys].[objects] obj<br />
join [sys].[sql_modules] mod<br />
on obj.[object_id]=mod.[object_id]<br />
where [type]=N'P' and [is_ms_shipped]=0<br />
</code></p></blockquote>




	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Fsql-server-tutorial%2Fis-there-a-way-to-find-out-from-system-tables-when-the-store-procedure-was-changed-last%2F&amp;title=Is%20there%20a%20way%20to%20find%20out%20from%20system%20tables%20when%20the%20store%20procedure%20was%20changed%20last%3F&amp;bodytext=Absolutely.%20%20You%20can%20use%20the%20sys.objects%20view%20to%20determine%20the%20create_date%20and%20modify_date%20for%20an%20object.%20%20The%20query%20would%20be%3A%0D%0A%0D%0Aselect%20%5Bname%5D%2C%5Bcreate_date%5D%2C%5Bmodify_date%5D%0D%0Afrom%20%5Bsys%5D.%5Bobjects%5D%0D%0Awhere%20%5Btype%5D%3DN%27P%27%20and%20%5Bis_ms_shipped%5D%3D0%0D%0A%0D%0ATo%20see%20the%20f" title="Digg"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Fsql-server-tutorial%2Fis-there-a-way-to-find-out-from-system-tables-when-the-store-procedure-was-changed-last%2F&amp;title=Is%20there%20a%20way%20to%20find%20out%20from%20system%20tables%20when%20the%20store%20procedure%20was%20changed%20last%3F&amp;notes=Absolutely.%20%20You%20can%20use%20the%20sys.objects%20view%20to%20determine%20the%20create_date%20and%20modify_date%20for%20an%20object.%20%20The%20query%20would%20be%3A%0D%0A%0D%0Aselect%20%5Bname%5D%2C%5Bcreate_date%5D%2C%5Bmodify_date%5D%0D%0Afrom%20%5Bsys%5D.%5Bobjects%5D%0D%0Awhere%20%5Btype%5D%3DN%27P%27%20and%20%5Bis_ms_shipped%5D%3D0%0D%0A%0D%0ATo%20see%20the%20f" title="del.icio.us"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Fsql-server-tutorial%2Fis-there-a-way-to-find-out-from-system-tables-when-the-store-procedure-was-changed-last%2F&amp;title=Is%20there%20a%20way%20to%20find%20out%20from%20system%20tables%20when%20the%20store%20procedure%20was%20changed%20last%3F" title="DZone"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.dotnetkicks.com/kick/?url=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Fsql-server-tutorial%2Fis-there-a-way-to-find-out-from-system-tables-when-the-store-procedure-was-changed-last%2F&amp;title=Is%20there%20a%20way%20to%20find%20out%20from%20system%20tables%20when%20the%20store%20procedure%20was%20changed%20last%3F" title="DotNetKicks"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/dotnetkicks.png" title="DotNetKicks" alt="DotNetKicks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Fsql-server-tutorial%2Fis-there-a-way-to-find-out-from-system-tables-when-the-store-procedure-was-changed-last%2F&amp;title=Is%20there%20a%20way%20to%20find%20out%20from%20system%20tables%20when%20the%20store%20procedure%20was%20changed%20last%3F&amp;annotation=Absolutely.%20%20You%20can%20use%20the%20sys.objects%20view%20to%20determine%20the%20create_date%20and%20modify_date%20for%20an%20object.%20%20The%20query%20would%20be%3A%0D%0A%0D%0Aselect%20%5Bname%5D%2C%5Bcreate_date%5D%2C%5Bmodify_date%5D%0D%0Afrom%20%5Bsys%5D.%5Bobjects%5D%0D%0Awhere%20%5Btype%5D%3DN%27P%27%20and%20%5Bis_ms_shipped%5D%3D0%0D%0A%0D%0ATo%20see%20the%20f" title="Google Bookmarks"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://ping.fm/ref/?link=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Fsql-server-tutorial%2Fis-there-a-way-to-find-out-from-system-tables-when-the-store-procedure-was-changed-last%2F&amp;title=Is%20there%20a%20way%20to%20find%20out%20from%20system%20tables%20when%20the%20store%20procedure%20was%20changed%20last%3F&amp;body=Absolutely.%20%20You%20can%20use%20the%20sys.objects%20view%20to%20determine%20the%20create_date%20and%20modify_date%20for%20an%20object.%20%20The%20query%20would%20be%3A%0D%0A%0D%0Aselect%20%5Bname%5D%2C%5Bcreate_date%5D%2C%5Bmodify_date%5D%0D%0Afrom%20%5Bsys%5D.%5Bobjects%5D%0D%0Awhere%20%5Btype%5D%3DN%27P%27%20and%20%5Bis_ms_shipped%5D%3D0%0D%0A%0D%0ATo%20see%20the%20f" title="Ping.fm"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/ping.png" title="Ping.fm" alt="Ping.fm" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://reddit.com/submit?url=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Fsql-server-tutorial%2Fis-there-a-way-to-find-out-from-system-tables-when-the-store-procedure-was-changed-last%2F&amp;title=Is%20there%20a%20way%20to%20find%20out%20from%20system%20tables%20when%20the%20store%20procedure%20was%20changed%20last%3F" title="Reddit"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Fsql-server-tutorial%2Fis-there-a-way-to-find-out-from-system-tables-when-the-store-procedure-was-changed-last%2F&amp;title=Is%20there%20a%20way%20to%20find%20out%20from%20system%20tables%20when%20the%20store%20procedure%20was%20changed%20last%3F" title="StumbleUpon"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="" title="TwitThis"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://sqlserverpedia.com/blog/sql-server-tutorial/is-there-a-way-to-find-out-from-system-tables-when-the-store-procedure-was-changed-last/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>We are trying to implement log shipping to run hourly. If our nightly full backup takes 1 hour and 45 minutes, what is our recovery process? Is it a bad thing to have a transactional backup in the middle of a full backup?</title>
		<link>http://sqlserverpedia.com/blog/sql-server-backup-and-restore/we-are-trying-to-implement-log-shipping-to-run-hourly-if-our-nightly-full-backup-takes-1-hour-and-45-minutes-what-is-our-recovery-process-is-it-a-bad-thing-to-have-a-transactional-backup-in-the-mid/</link>
		<comments>http://sqlserverpedia.com/blog/sql-server-backup-and-restore/we-are-trying-to-implement-log-shipping-to-run-hourly-if-our-nightly-full-backup-takes-1-hour-and-45-minutes-what-is-our-recovery-process-is-it-a-bad-thing-to-have-a-transactional-backup-in-the-mid/#comments</comments>
		<pubDate>Fri, 29 Aug 2008 19:06:37 +0000</pubDate>
		<dc:creator>Ari Weil</dc:creator>
				<category><![CDATA[SQL Server Backup and Restore]]></category>
		<category><![CDATA[SQL Server Engine Internals]]></category>
		<category><![CDATA[SQL Server Management]]></category>
		<category><![CDATA[SQL Server Tutorial]]></category>
		<category><![CDATA[Transact-SQL (T-SQL)]]></category>

		<guid isPermaLink="false">http://sqlserverpedia.com/blog/?p=382</guid>
		<description><![CDATA[Yes, this is bad because it can lead to your log shipped database getting out of sync and will probably result in Error 4305; error 4305 states that the log in a backup set is too late to apply, which means your log shipping jobs will fail until you can synchronize the databases. You should [...]]]></description>
			<content:encoded><![CDATA[<p>Yes, this is bad because it can lead to your log shipped database getting out of sync and will probably result in Error 4305; error 4305 states that the log in a backup set is too late to apply, which means your log shipping jobs will fail until you can synchronize the databases. You should schedule your transaction log backup job to stop before your full backup job begins and then to restart once it has completed.  See the <strong><a href="http://www.microsoft.com/technet/prodtechnol/sql/2000/maintain/logship1.mspx">Microsoft TechNet article on setting up Log Shipping</a></strong>.</p>
<p>When you perform a a full database backup SQL Server stores the ending log sequence number (LSN), which becomes the starting LSN for the next transaction log backup. So, if you are performing a transaction log backup while your full database backup is executing, and that transaction log backup is successful, once it is shipped and applied to the subscriber it will have a different starting LSN than the ending LSN of the full backup.  This is not allowed and SQL Server will throw error 4305.</p>




	<img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Fsql-server-backup-and-restore%2Fwe-are-trying-to-implement-log-shipping-to-run-hourly-if-our-nightly-full-backup-takes-1-hour-and-45-minutes-what-is-our-recovery-process-is-it-a-bad-thing-to-have-a-transactional-backup-in-the-mid%2F&amp;title=We%20are%20trying%20to%20implement%20log%20shipping%20to%20run%20hourly.%20If%20our%20nightly%20full%20backup%20takes%201%20hour%20and%2045%20minutes%2C%20what%20is%20our%20recovery%20process%3F%20Is%20it%20a%20bad%20thing%20to%20have%20a%20transactional%20backup%20in%20the%20middle%20of%20a%20full%20backup%3F" title="DZone"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.dotnetkicks.com/kick/?url=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Fsql-server-backup-and-restore%2Fwe-are-trying-to-implement-log-shipping-to-run-hourly-if-our-nightly-full-backup-takes-1-hour-and-45-minutes-what-is-our-recovery-process-is-it-a-bad-thing-to-have-a-transactional-backup-in-the-mid%2F&amp;title=We%20are%20trying%20to%20implement%20log%20shipping%20to%20run%20hourly.%20If%20our%20nightly%20full%20backup%20takes%201%20hour%20and%2045%20minutes%2C%20what%20is%20our%20recovery%20process%3F%20Is%20it%20a%20bad%20thing%20to%20have%20a%20transactional%20backup%20in%20the%20middle%20of%20a%20full%20backup%3F" title="DotNetKicks"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/dotnetkicks.png" title="DotNetKicks" alt="DotNetKicks" class="sociable-hovers" /></a>
	<img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/ping.png" title="Ping.fm" alt="Ping.fm" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://reddit.com/submit?url=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Fsql-server-backup-and-restore%2Fwe-are-trying-to-implement-log-shipping-to-run-hourly-if-our-nightly-full-backup-takes-1-hour-and-45-minutes-what-is-our-recovery-process-is-it-a-bad-thing-to-have-a-transactional-backup-in-the-mid%2F&amp;title=We%20are%20trying%20to%20implement%20log%20shipping%20to%20run%20hourly.%20If%20our%20nightly%20full%20backup%20takes%201%20hour%20and%2045%20minutes%2C%20what%20is%20our%20recovery%20process%3F%20Is%20it%20a%20bad%20thing%20to%20have%20a%20transactional%20backup%20in%20the%20middle%20of%20a%20full%20backup%3F" title="Reddit"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fsqlserverpedia.com%2Fblog%2Fsql-server-backup-and-restore%2Fwe-are-trying-to-implement-log-shipping-to-run-hourly-if-our-nightly-full-backup-takes-1-hour-and-45-minutes-what-is-our-recovery-process-is-it-a-bad-thing-to-have-a-transactional-backup-in-the-mid%2F&amp;title=We%20are%20trying%20to%20implement%20log%20shipping%20to%20run%20hourly.%20If%20our%20nightly%20full%20backup%20takes%201%20hour%20and%2045%20minutes%2C%20what%20is%20our%20recovery%20process%3F%20Is%20it%20a%20bad%20thing%20to%20have%20a%20transactional%20backup%20in%20the%20middle%20of%20a%20full%20backup%3F" title="StumbleUpon"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="" title="TwitThis"><img src="http://sqlserverpedia.com/blog/wp-content/plugins/sociable/images/" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://sqlserverpedia.com/blog/sql-server-backup-and-restore/we-are-trying-to-implement-log-shipping-to-run-hourly-if-our-nightly-full-backup-takes-1-hour-and-45-minutes-what-is-our-recovery-process-is-it-a-bad-thing-to-have-a-transactional-backup-in-the-mid/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
