<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://sqlblog.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Andrew Kelly</title><link>http://sqlblog.com/blogs/andrew_kelly/default.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>Windows Live Writer – Good or Bad?</title><link>http://sqlblog.com/blogs/andrew_kelly/archive/2009/06/26/windows-live-writer-good-or-bad.aspx</link><pubDate>Fri, 26 Jun 2009 21:27:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:14959</guid><dc:creator>Andrew Kelly</dc:creator><slash:comments>17</slash:comments><comments>http://sqlblog.com/blogs/andrew_kelly/comments/14959.aspx</comments><wfw:commentRss>http://sqlblog.com/blogs/andrew_kelly/commentrss.aspx?PostID=14959</wfw:commentRss><description>&amp;lt;Updates at bottom of post&amp;gt; OK this will probably start a fire storm from Die- Hard Live Writer (LW) geeks but oh well :). I don’t blog as much as I would like and one reason is that I have had so much trouble getting posts properly formatted that...(&lt;a href="http://sqlblog.com/blogs/andrew_kelly/archive/2009/06/26/windows-live-writer-good-or-bad.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://sqlblog.com/aggbug.aspx?PostID=14959" width="1" height="1"&gt;</description><category domain="http://sqlblog.com/blogs/andrew_kelly/archive/tags/Humor/default.aspx">Humor</category></item><item><title>Cleaning up Un-Named Defaults</title><link>http://sqlblog.com/blogs/andrew_kelly/archive/2009/06/26/cleaning-up-un-named-defaults.aspx</link><pubDate>Fri, 26 Jun 2009 16:07:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:14944</guid><dc:creator>Andrew Kelly</dc:creator><slash:comments>8</slash:comments><comments>http://sqlblog.com/blogs/andrew_kelly/comments/14944.aspx</comments><wfw:commentRss>http://sqlblog.com/blogs/andrew_kelly/commentrss.aspx?PostID=14944</wfw:commentRss><description>I just had a situation in which we are automating the comparing of databases and I came across a bunch of Defaults that were never explicitly named. This causes them to get a new name each time you create them and makes it much more difficult to write...(&lt;a href="http://sqlblog.com/blogs/andrew_kelly/archive/2009/06/26/cleaning-up-un-named-defaults.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://sqlblog.com/aggbug.aspx?PostID=14944" width="1" height="1"&gt;</description><category domain="http://sqlblog.com/blogs/andrew_kelly/archive/tags/Best+Paractices/default.aspx">Best Paractices</category><category domain="http://sqlblog.com/blogs/andrew_kelly/archive/tags/TSQL/default.aspx">TSQL</category><category domain="http://sqlblog.com/blogs/andrew_kelly/archive/tags/Developer/default.aspx">Developer</category><category domain="http://sqlblog.com/blogs/andrew_kelly/archive/tags/Tips+_2600_amp_3B00_+Tricks/default.aspx">Tips &amp;amp; Tricks</category></item><item><title>Trace Flag Groupings</title><link>http://sqlblog.com/blogs/andrew_kelly/archive/2009/06/21/trace-flag-groupings.aspx</link><pubDate>Sun, 21 Jun 2009 15:56:52 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:14801</guid><dc:creator>Andrew Kelly</dc:creator><slash:comments>0</slash:comments><comments>http://sqlblog.com/blogs/andrew_kelly/comments/14801.aspx</comments><wfw:commentRss>http://sqlblog.com/blogs/andrew_kelly/commentrss.aspx?PostID=14801</wfw:commentRss><description>I just saw a news group post by Paul Randal in which he explained how trace flags were grouped into certain categories and thought others may find this interesting as well. Please note that Paul stated that these are from memory so they may not be 100%...(&lt;a href="http://sqlblog.com/blogs/andrew_kelly/archive/2009/06/21/trace-flag-groupings.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://sqlblog.com/aggbug.aspx?PostID=14801" width="1" height="1"&gt;</description><category domain="http://sqlblog.com/blogs/andrew_kelly/archive/tags/Documentation/default.aspx">Documentation</category><category domain="http://sqlblog.com/blogs/andrew_kelly/archive/tags/Trivia/default.aspx">Trivia</category></item><item><title>SQLCMD Execution Order</title><link>http://sqlblog.com/blogs/andrew_kelly/archive/2009/06/05/sqlcmd-execution-order.aspx</link><pubDate>Fri, 05 Jun 2009 23:53:15 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:14483</guid><dc:creator>Andrew Kelly</dc:creator><slash:comments>7</slash:comments><comments>http://sqlblog.com/blogs/andrew_kelly/comments/14483.aspx</comments><wfw:commentRss>http://sqlblog.com/blogs/andrew_kelly/commentrss.aspx?PostID=14483</wfw:commentRss><description>&lt;p&gt;I find that many people don’t realize since SQL Server 2005 that you have the ability to execute SQLCMD commands or scripts directly in the Query Editor but it can come in handy at times. Even I don’t use it that as much as I should and I am aware of it:).&amp;#160; One of the things I find it most useful for is during demos at presentations when I want to invoke an OS level command without having to use xp_cmdshell or opening a DOS window.&amp;#160; For instance once you have enabled SQLCMD mode in the Query Editor you can issue this command to look at the contents of a folder:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;font color="#800080"&gt;!! DIR C:\*.*&lt;/font&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;That is all well and good but one thing I didn’t know until recently is that the SQLCMD commands always execute before any TSQL commands in the batch. I usually run the commands one line at a time so this was never an issue and as such I never paid much attention to the order of execution. If you run this simple example on your machine you can see the results in person.&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;font size="1" face="Arial"&gt;PRINT '1: ' + CONVERT(VARCHAR(25), GETDATE(), 121); &lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font size="1" face="Arial"&gt;WAITFOR DELAY '00:00:02' ; &lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font size="1" face="Arial"&gt;PRINT '2: ' + CONVERT(VARCHAR(25), GETDATE(), 121); &lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font size="1"&gt;&lt;font face="Arial"&gt;&lt;strong&gt;!! systeminfo&lt;/strong&gt; &lt;/font&gt;&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font size="1" face="Arial"&gt;PRINT '3: ' + CONVERT(VARCHAR(25), GETDATE(), 121); &lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font size="1" face="Arial"&gt;WAITFOR DELAY '00:00:02' ; &lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font size="1" face="Arial"&gt;PRINT '4: ' + CONVERT(VARCHAR(25), GETDATE(), 121);&lt;/font&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;The results will look similar to this:&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;Host Name:&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; LAPTOP_IBM      &lt;br /&gt;OS Name:&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Microsoftr Windows VistaT Ultimate       &lt;br /&gt;OS Version:&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 6.0.6002 Service Pack 2 Build 6002       &lt;br /&gt;OS Manufacturer:&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Microsoft Corporation       &lt;br /&gt;OS Configuration:&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Standalone Workstation&lt;/p&gt;    &lt;p&gt;&lt;font size="5"&gt;…&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;Network Card(s):&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 3 NIC(s) Installed.      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; [01]: Intel(R) 82566MM Gigabit Network Connection       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Connection Name: Local Area Connection       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; DHCP Enabled:&amp;#160;&amp;#160;&amp;#160; Yes       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; DHCP Server:&amp;#160;&amp;#160;&amp;#160;&amp;#160; 192.168.1.1       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; IP address(es)       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; [01]: 192.168.1.100       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; [02]: fe80::3ca9:45fd:f7e4:c5e2       &lt;br /&gt;      &lt;br /&gt;&lt;font color="#800080"&gt;1: 2009-06-05 19:42:37.403        &lt;br /&gt;2: 2009-06-05 19:42:39.400         &lt;br /&gt;3: 2009-06-05 19:42:39.400         &lt;br /&gt;4: 2009-06-05 19:42:41.400&lt;/font&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Note that the PRINT statements are all after the output of the systeminfo command even though it fell in between the PRINTS and the WAITFOR’s. I added the WIATFOR’s just so you can see there was a gap in between the first and last two PRINT’s yet no gap where the SQLCMD should have run.&amp;#160; If you are still not convinced you can also rn this demo as well:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;font size="1" face="Arial"&gt;PRINT '1: ' + CONVERT(VARCHAR(25), GETDATE(), 121); &lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font size="1" face="Arial"&gt;WAITFOR DELAY '00:00:10' ;        &lt;br /&gt;!! time &lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font size="1" face="Arial"&gt;PRINT '2: ' + CONVERT(VARCHAR(25), GETDATE(), 121);&lt;/font&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;You will have to hit the stop button to kill the batch since the time command is waiting for input. But it does show that the 1st PRINT statement or the WAITFOR never ran as the only output when you cancel the batch is the actual time output from the time command.&amp;#160; While this may not be news for some of you I bet it is to most and I figured it was a nice little tidbit to share. &lt;/p&gt;  &lt;p&gt;Have fun,&lt;/p&gt;  &lt;p&gt; Andy&lt;/p&gt;
&lt;BR&gt;&lt;div class = "shareblock"&gt;&lt;span class = "shareblockTitle"&gt;Share this post:&lt;/span&gt;&lt;span class = "shareblockLink"&gt; &lt;a href = "mailto:?subject=SQLCMD Execution Order&amp;amp;body=Seen on SQLblog.com: %0A%0A%09SQLCMD Execution Order%0A%0Ahttp://sqlblog.com/blogs/andrew_kelly/archive/2009/06/05/sqlcmd-execution-order.aspx" target="_blank" title = "Email SQLCMD Execution Order"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://sqlblog.com/blogs/andrew_kelly/archive/2009/06/05/sqlcmd-execution-order.aspx&amp;amp;title=SQLCMD+Execution+Order" target="_blank" title = "Submit SQLCMD Execution Order to del.icio.us"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://sqlblog.com/blogs/andrew_kelly/archive/2009/06/05/sqlcmd-execution-order.aspx&amp;amp;phase=2" target="_blank" title = "Submit SQLCMD Execution Order to digg.com"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://sqlblog.com/blogs/andrew_kelly/archive/2009/06/05/sqlcmd-execution-order.aspx&amp;amp;title=SQLCMD+Execution+Order" target="_blank" title = "Submit SQLCMD Execution Order to reddit.com"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://sqlblog.com/blogs/andrew_kelly/archive/2009/06/05/sqlcmd-execution-order.aspx&amp;amp;title=SQLCMD+Execution+Order" target="_blank" title = "Submit SQLCMD Execution Order to DotNetKicks"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;mkt=en-us&amp;amp;url=http://sqlblog.com/blogs/andrew_kelly/archive/2009/06/05/sqlcmd-execution-order.aspx&amp;amp;title=SQLCMD+Execution+Order&amp;amp;;top=1" target="_blank" title = "Add SQLCMD Execution Order to Live Bookmarks"&gt;live it!&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;img src="http://info.sqlblog.com/a.aspx?ZoneID=0&amp;BannerID=12&amp;AdvertiserID=1&amp;CampaignID=12&amp;Task=Get&amp;Mode=TEXT&amp;SiteID=1&amp;RandomNumber=463323" width="1" height="1" border="0"&gt;&lt;img src="http://sqlblog.com/aggbug.aspx?PostID=14483" width="1" height="1"&gt;</description><category domain="http://sqlblog.com/blogs/andrew_kelly/archive/tags/Tips+_2600_+Tricks/default.aspx">Tips &amp; Tricks</category><category domain="http://sqlblog.com/blogs/andrew_kelly/archive/tags/Trivia/default.aspx">Trivia</category></item><item><title>So the Real story Is….</title><link>http://sqlblog.com/blogs/andrew_kelly/archive/2009/05/09/so-the-real-story-is.aspx</link><pubDate>Sat, 09 May 2009 21:02:41 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:13914</guid><dc:creator>Andrew Kelly</dc:creator><slash:comments>6</slash:comments><comments>http://sqlblog.com/blogs/andrew_kelly/comments/13914.aspx</comments><wfw:commentRss>http://sqlblog.com/blogs/andrew_kelly/commentrss.aspx?PostID=13914</wfw:commentRss><description>&lt;p&gt;As many of you heard ( see Kevin’s post&amp;#160; &lt;a title="http://sqlblog.com/blogs/kevin_kline/archive/2009/05/06/microsoft-marketing-throws-sql-server-under-the-bus.aspx" href="http://sqlblog.com/blogs/kevin_kline/archive/2009/05/06/microsoft-marketing-throws-sql-server-under-the-bus.aspx"&gt;http://sqlblog.com/blogs/kevin_kline/archive/2009/05/06/microsoft-marketing-throws-sql-server-under-the-bus.aspx&lt;/a&gt; ) MS marketing released a comment last week that indicated SQL Server couldn’t handle the load for the Win 7 downloads. But it appears that reality sets in and we get a much different story according to the SQL CAT team. Have a look here:&lt;/p&gt;  &lt;p&gt;&lt;a title="http://sqlcat.com/faq/archive/2009/05/08/windows2008-r2-beta-download-runs-smoothly-now.aspx" href="http://sqlcat.com/faq/archive/2009/05/08/windows2008-r2-beta-download-runs-smoothly-now.aspx"&gt;http://sqlcat.com/faq/archive/2009/05/08/windows2008-r2-beta-download-runs-smoothly-now.aspx&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt; It’s truly amazing how fast people are to blame SQL Server for lack of performance when they don’t have a handle on their environment in the first place :).&lt;/p&gt;
&lt;BR&gt;&lt;div class = "shareblock"&gt;&lt;span class = "shareblockTitle"&gt;Share this post:&lt;/span&gt;&lt;span class = "shareblockLink"&gt; &lt;a href = "mailto:?subject=So the Real story Is….&amp;amp;body=Seen on SQLblog.com: %0A%0A%09So the Real story Is….%0A%0Ahttp://sqlblog.com/blogs/andrew_kelly/archive/2009/05/09/so-the-real-story-is.aspx" target="_blank" title = "Email So the Real story Is…."&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://sqlblog.com/blogs/andrew_kelly/archive/2009/05/09/so-the-real-story-is.aspx&amp;amp;title=So+the+Real+story+Is%e2%80%a6." target="_blank" title = "Submit So the Real story Is…. to del.icio.us"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://sqlblog.com/blogs/andrew_kelly/archive/2009/05/09/so-the-real-story-is.aspx&amp;amp;phase=2" target="_blank" title = "Submit So the Real story Is…. to digg.com"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://sqlblog.com/blogs/andrew_kelly/archive/2009/05/09/so-the-real-story-is.aspx&amp;amp;title=So+the+Real+story+Is%e2%80%a6." target="_blank" title = "Submit So the Real story Is…. to reddit.com"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://sqlblog.com/blogs/andrew_kelly/archive/2009/05/09/so-the-real-story-is.aspx&amp;amp;title=So+the+Real+story+Is%e2%80%a6." target="_blank" title = "Submit So the Real story Is…. to DotNetKicks"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;mkt=en-us&amp;amp;url=http://sqlblog.com/blogs/andrew_kelly/archive/2009/05/09/so-the-real-story-is.aspx&amp;amp;title=So+the+Real+story+Is%e2%80%a6.&amp;amp;;top=1" target="_blank" title = "Add So the Real story Is…. to Live Bookmarks"&gt;live it!&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;img src="http://info.sqlblog.com/a.aspx?ZoneID=0&amp;BannerID=12&amp;AdvertiserID=1&amp;CampaignID=12&amp;Task=Get&amp;Mode=TEXT&amp;SiteID=1&amp;RandomNumber=463323" width="1" height="1" border="0"&gt;&lt;img src="http://sqlblog.com/aggbug.aspx?PostID=13914" width="1" height="1"&gt;</description><category domain="http://sqlblog.com/blogs/andrew_kelly/archive/tags/Maintenance/default.aspx">Maintenance</category><category domain="http://sqlblog.com/blogs/andrew_kelly/archive/tags/Performance/default.aspx">Performance</category></item><item><title>[OT] To Tweet or Not to Tweet…</title><link>http://sqlblog.com/blogs/andrew_kelly/archive/2009/05/03/ot-to-tweet-or-not-to-tweet.aspx</link><pubDate>Sun, 03 May 2009 14:35:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:13731</guid><dc:creator>Andrew Kelly</dc:creator><slash:comments>8</slash:comments><comments>http://sqlblog.com/blogs/andrew_kelly/comments/13731.aspx</comments><wfw:commentRss>http://sqlblog.com/blogs/andrew_kelly/commentrss.aspx?PostID=13731</wfw:commentRss><description>&lt;P&gt;Last night I acted like a Twit and joined Twitter (@GunneyK) and now I am not sure if that was a good idea or not :).&amp;nbsp; For one I have no clue what it’s really all about, I am not even sure I know how to even reply properly:).&amp;nbsp; And once I figure it all out will I even have time to keep up with it. The lack of time is the main reason I never got into FaceBook even though I have lots of friends and relatives there.&amp;nbsp; Same here with the blogs.&amp;nbsp; But I have to wonder how do all of you keep up with it all these days. Does anyone get any sleep anymore…&lt;/P&gt;
&lt;BR&gt;&lt;div class = "shareblock"&gt;&lt;span class = "shareblockTitle"&gt;Share this post:&lt;/span&gt;&lt;span class = "shareblockLink"&gt; &lt;a href = "mailto:?subject=[OT] To Tweet or Not to Tweet…&amp;amp;body=Seen on SQLblog.com: %0A%0A%09[OT] To Tweet or Not to Tweet…%0A%0Ahttp://sqlblog.com/blogs/andrew_kelly/archive/2009/05/03/ot-to-tweet-or-not-to-tweet.aspx" target="_blank" title = "Email [OT] To Tweet or Not to Tweet…"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://sqlblog.com/blogs/andrew_kelly/archive/2009/05/03/ot-to-tweet-or-not-to-tweet.aspx&amp;amp;title=%5bOT%5d+To+Tweet+or+Not+to+Tweet%e2%80%a6" target="_blank" title = "Submit [OT] To Tweet or Not to Tweet… to del.icio.us"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://sqlblog.com/blogs/andrew_kelly/archive/2009/05/03/ot-to-tweet-or-not-to-tweet.aspx&amp;amp;phase=2" target="_blank" title = "Submit [OT] To Tweet or Not to Tweet… to digg.com"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://sqlblog.com/blogs/andrew_kelly/archive/2009/05/03/ot-to-tweet-or-not-to-tweet.aspx&amp;amp;title=%5bOT%5d+To+Tweet+or+Not+to+Tweet%e2%80%a6" target="_blank" title = "Submit [OT] To Tweet or Not to Tweet… to reddit.com"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://sqlblog.com/blogs/andrew_kelly/archive/2009/05/03/ot-to-tweet-or-not-to-tweet.aspx&amp;amp;title=%5bOT%5d+To+Tweet+or+Not+to+Tweet%e2%80%a6" target="_blank" title = "Submit [OT] To Tweet or Not to Tweet… to DotNetKicks"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;mkt=en-us&amp;amp;url=http://sqlblog.com/blogs/andrew_kelly/archive/2009/05/03/ot-to-tweet-or-not-to-tweet.aspx&amp;amp;title=%5bOT%5d+To+Tweet+or+Not+to+Tweet%e2%80%a6&amp;amp;;top=1" target="_blank" title = "Add [OT] To Tweet or Not to Tweet… to Live Bookmarks"&gt;live it!&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;img src="http://info.sqlblog.com/a.aspx?ZoneID=0&amp;BannerID=12&amp;AdvertiserID=1&amp;CampaignID=12&amp;Task=Get&amp;Mode=TEXT&amp;SiteID=1&amp;RandomNumber=463323" width="1" height="1" border="0"&gt;&lt;img src="http://sqlblog.com/aggbug.aspx?PostID=13731" width="1" height="1"&gt;</description><category domain="http://sqlblog.com/blogs/andrew_kelly/archive/tags/Humor/default.aspx">Humor</category></item><item><title>Sometimes you just have to break it up</title><link>http://sqlblog.com/blogs/andrew_kelly/archive/2009/04/14/sometimes-you-just-have-to-break-it-up.aspx</link><pubDate>Tue, 14 Apr 2009 23:19:02 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:13294</guid><dc:creator>Andrew Kelly</dc:creator><slash:comments>6</slash:comments><comments>http://sqlblog.com/blogs/andrew_kelly/comments/13294.aspx</comments><wfw:commentRss>http://sqlblog.com/blogs/andrew_kelly/commentrss.aspx?PostID=13294</wfw:commentRss><description>&lt;p&gt;I will be the 1st to admit that I am no &lt;a href="http://www.solidq.com/na/MentorDetail.aspx?Id=37" target="_blank"&gt;Itzik Ben-Gan&lt;/a&gt; when it comes to writing complex SQL statements and I wonder at times how people come up with some of the Selects that I see.&amp;#160; Sometimes they are so complex or convoluted that I simply have a hard time figuring out the intent or the logic behind them. But as a performance consultant I pretty much find myself looking at these on a regular basis when they end up scanning very large tables or indexes. I find that many developers have a hard time splitting up the query into what I think are more manageable pieces, especially if there is a temp table involved. Lets face it temp tables are evil aren’t they :).&amp;#160; Well that’s a whole another discussion which we won’t get into now but sometimes they can be be your friend. For instance today I took a rather unwieldy query that was being used in a stored procedure in which the optimizer simply couldn’t come up with an efficient query the way it was written. And one of the issues was that they needed a total count for paging purposes so they were running the same query twice, once for the count and once to get the TOP xx rows. In a nutshell I changed the query to use a UNION which allowed the optimizer to focus better on the SARG’s for each part of the query and placed the resultant rows into a temp table. This gave me the ability to get a count and retrieve the rows using TOP xx without running it twice.&amp;#160; As you can see from the picture the costs were dramatic. The reads went from over 3 Million to just under 5 thousand and the duration went from over 23 seconds to 150 milliseconds.&amp;#160; So bottom line is don’t be afraid to make the query more maintainable and break it up at times. You might be surprised what you can accomplish.&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://sqlblog.com/blogs/andrew_kelly/clip_image002_5FA5E00C.jpg"&gt;&lt;img style="border-bottom:0px;border-left:0px;display:block;float:none;margin-left:auto;border-top:0px;margin-right:auto;border-right:0px;" title="clip_image002" border="0" alt="clip_image002" src="http://sqlblog.com/blogs/andrew_kelly/clip_image002_thumb_456576E8.jpg" width="368" height="165" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;BR&gt;&lt;div class = "shareblock"&gt;&lt;span class = "shareblockTitle"&gt;Share this post:&lt;/span&gt;&lt;span class = "shareblockLink"&gt; &lt;a href = "mailto:?subject=Sometimes you just have to break it up&amp;amp;body=Seen on SQLblog.com: %0A%0A%09Sometimes you just have to break it up%0A%0Ahttp://sqlblog.com/blogs/andrew_kelly/archive/2009/04/14/sometimes-you-just-have-to-break-it-up.aspx" target="_blank" title = "Email Sometimes you just have to break it up"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://sqlblog.com/blogs/andrew_kelly/archive/2009/04/14/sometimes-you-just-have-to-break-it-up.aspx&amp;amp;title=Sometimes+you+just+have+to+break+it+up" target="_blank" title = "Submit Sometimes you just have to break it up to del.icio.us"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://sqlblog.com/blogs/andrew_kelly/archive/2009/04/14/sometimes-you-just-have-to-break-it-up.aspx&amp;amp;phase=2" target="_blank" title = "Submit Sometimes you just have to break it up to digg.com"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://sqlblog.com/blogs/andrew_kelly/archive/2009/04/14/sometimes-you-just-have-to-break-it-up.aspx&amp;amp;title=Sometimes+you+just+have+to+break+it+up" target="_blank" title = "Submit Sometimes you just have to break it up to reddit.com"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://sqlblog.com/blogs/andrew_kelly/archive/2009/04/14/sometimes-you-just-have-to-break-it-up.aspx&amp;amp;title=Sometimes+you+just+have+to+break+it+up" target="_blank" title = "Submit Sometimes you just have to break it up to DotNetKicks"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;mkt=en-us&amp;amp;url=http://sqlblog.com/blogs/andrew_kelly/archive/2009/04/14/sometimes-you-just-have-to-break-it-up.aspx&amp;amp;title=Sometimes+you+just+have+to+break+it+up&amp;amp;;top=1" target="_blank" title = "Add Sometimes you just have to break it up to Live Bookmarks"&gt;live it!&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;img src="http://info.sqlblog.com/a.aspx?ZoneID=0&amp;BannerID=12&amp;AdvertiserID=1&amp;CampaignID=12&amp;Task=Get&amp;Mode=TEXT&amp;SiteID=1&amp;RandomNumber=463323" width="1" height="1" border="0"&gt;&lt;img src="http://sqlblog.com/aggbug.aspx?PostID=13294" width="1" height="1"&gt;</description><category domain="http://sqlblog.com/blogs/andrew_kelly/archive/tags/DBA/default.aspx">DBA</category><category domain="http://sqlblog.com/blogs/andrew_kelly/archive/tags/Tips+_2600_+Tricks/default.aspx">Tips &amp; Tricks</category><category domain="http://sqlblog.com/blogs/andrew_kelly/archive/tags/Performance/default.aspx">Performance</category><category domain="http://sqlblog.com/blogs/andrew_kelly/archive/tags/Developer/default.aspx">Developer</category></item><item><title>Speaking in Raleigh NC</title><link>http://sqlblog.com/blogs/andrew_kelly/archive/2009/04/11/speaking-in-raleigh-nc.aspx</link><pubDate>Sat, 11 Apr 2009 18:14:29 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:13242</guid><dc:creator>Andrew Kelly</dc:creator><slash:comments>0</slash:comments><comments>http://sqlblog.com/blogs/andrew_kelly/comments/13242.aspx</comments><wfw:commentRss>http://sqlblog.com/blogs/andrew_kelly/commentrss.aspx?PostID=13242</wfw:commentRss><description>&lt;p&gt;Just an FYI for anyone in the Raleigh NC area that I will be speaking at this location for the first time on April 21st.&amp;#160; This is a fairly new SQL Server User Group and PASS chapter so I am sure they won’t mind any free marketing they can get :). I am sure there is a ton of SQL Server users in the area so come out and support the local user group and take in some SQL knowledge at the same time. The topic is “Getting the most out of SQL Trace” and you can find details here:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;a title="http://www.tripass.org/dnn/" href="http://www.tripass.org/dnn/"&gt;http://www.tripass.org/dnn/&lt;/a&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;We hope to see you there.&lt;/p&gt;
&lt;BR&gt;&lt;div class = "shareblock"&gt;&lt;span class = "shareblockTitle"&gt;Share this post:&lt;/span&gt;&lt;span class = "shareblockLink"&gt; &lt;a href = "mailto:?subject=Speaking in Raleigh NC&amp;amp;body=Seen on SQLblog.com: %0A%0A%09Speaking in Raleigh NC%0A%0Ahttp://sqlblog.com/blogs/andrew_kelly/archive/2009/04/11/speaking-in-raleigh-nc.aspx" target="_blank" title = "Email Speaking in Raleigh NC"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://sqlblog.com/blogs/andrew_kelly/archive/2009/04/11/speaking-in-raleigh-nc.aspx&amp;amp;title=Speaking+in+Raleigh+NC" target="_blank" title = "Submit Speaking in Raleigh NC to del.icio.us"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://sqlblog.com/blogs/andrew_kelly/archive/2009/04/11/speaking-in-raleigh-nc.aspx&amp;amp;phase=2" target="_blank" title = "Submit Speaking in Raleigh NC to digg.com"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://sqlblog.com/blogs/andrew_kelly/archive/2009/04/11/speaking-in-raleigh-nc.aspx&amp;amp;title=Speaking+in+Raleigh+NC" target="_blank" title = "Submit Speaking in Raleigh NC to reddit.com"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://sqlblog.com/blogs/andrew_kelly/archive/2009/04/11/speaking-in-raleigh-nc.aspx&amp;amp;title=Speaking+in+Raleigh+NC" target="_blank" title = "Submit Speaking in Raleigh NC to DotNetKicks"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;mkt=en-us&amp;amp;url=http://sqlblog.com/blogs/andrew_kelly/archive/2009/04/11/speaking-in-raleigh-nc.aspx&amp;amp;title=Speaking+in+Raleigh+NC&amp;amp;;top=1" target="_blank" title = "Add Speaking in Raleigh NC to Live Bookmarks"&gt;live it!&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;img src="http://info.sqlblog.com/a.aspx?ZoneID=0&amp;BannerID=12&amp;AdvertiserID=1&amp;CampaignID=12&amp;Task=Get&amp;Mode=TEXT&amp;SiteID=1&amp;RandomNumber=463323" width="1" height="1" border="0"&gt;&lt;img src="http://sqlblog.com/aggbug.aspx?PostID=13242" width="1" height="1"&gt;</description><category domain="http://sqlblog.com/blogs/andrew_kelly/archive/tags/User+Groups/default.aspx">User Groups</category></item><item><title>How Dirty are your Reads?</title><link>http://sqlblog.com/blogs/andrew_kelly/archive/2009/04/10/how-dirty-are-your-reads.aspx</link><pubDate>Fri, 10 Apr 2009 23:08:11 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:13215</guid><dc:creator>Andrew Kelly</dc:creator><slash:comments>16</slash:comments><comments>http://sqlblog.com/blogs/andrew_kelly/comments/13215.aspx</comments><wfw:commentRss>http://sqlblog.com/blogs/andrew_kelly/commentrss.aspx?PostID=13215</wfw:commentRss><description>&lt;p&gt;As a SQL Server consultant I get to see a lot of different sets of code written by all sorts of database developers from all over the world. And I have to say that one thing that is clear is most developers make abundant use of the &lt;strong&gt;NOLOCK&lt;/strong&gt; query hint or the &lt;strong&gt;READ UNCOMMITTED&lt;/strong&gt; isolation level. Now don’t get me wrong, I am NOT trying to say this is bad and people should not do that. There is a place and time for all the features and hints SQL Server has to offer and these can be quite handy indeed. The question is “&lt;em&gt;Are these methods overused or even abused&lt;/em&gt;” by the average shop these days? I had a recent conversation with someone close to the SQL Server dev team who stated that some of the members of the dev team would be surprised to hear that.&amp;#160; Personally I am surprised to hear that they would be surprised to hear that :).&amp;#160; So I ask the rest of the known universe out there what you think. Are dirty reads abused more than they should be? Technically if they weren’t doing anything wrong at all it wouldn’t be abuse now would it?&amp;#160; But I think you get the point :).&amp;#160;&amp;#160;&amp;#160; &lt;/p&gt;  &lt;p&gt;&lt;em&gt;But&lt;/em&gt; before you answer that question let me talk a little about what the dangers of dirty reads using either NOLOCK hints or setting the isolation level to READ UNCOMMITTED are.&amp;#160; None of this information is new and lots of people have already written about the pitfalls many times. &lt;a href="http://www.solidq.com/na/MentorDetail.aspx?Id=37" target="_blank"&gt;Itzik Ben-Gan&lt;/a&gt; for one, publically speaks on this subject often.&amp;#160; But I find developers on a regular basis that fail to realize all of the implications. Lets touch on the more common ones here:&lt;/p&gt;  &lt;p&gt;&lt;em&gt;&lt;strong&gt;Dirty Reads:&lt;/strong&gt;&lt;/em&gt;&amp;#160; &lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;This sounds like an obvious one but many people simply don’t understand that using NOLOCK as a hint doesn’t just prevent you from blocking other users, it allows you to potentially read dirty data. You never know when or if you have read dirty data so unless the data is read-only or static so you may be making decisions based on incorrect values. After all this is the main purpose of locking in the first place right.&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;&lt;strong&gt;&lt;em&gt;Read Errors:&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;What happens if you are in the process of reading a row or page that someone deletes or reading a page that is in the process of splitting?&amp;#160; You can and most likely will get an error. This is a fatal error and most applications are not set to properly handle these types of errors.&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;&lt;strong&gt;&lt;em&gt;Reading Rows Twice:&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;If you are in the process of doing an IAM scan and read a page that gets split after you just read it you can actually read up to half the rows from that page again since the split page will go to the end of the IAM chain. &lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;&lt;strong&gt;&lt;em&gt;Missing Rows:&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;This is the opposite of the scenario above. You can actually miss rows if a page is moved back in the IAM chain before you read it.&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;So the bottom line is that if your application depends on accuracy and data integrity then you probably shouldn’t be using this isolation level for that part of the applications queries. Yes as I mentioned earlier there are certainly good uses for this and it can speed up certain queries and reduce the number of locks generated. But as with any technology there are always two sides to consider as nothing is for free.&amp;#160; Are you writing an app that is using NOLOCK and calculating my checking account balance?&amp;#160; I certainly hope not. Unless you want to credit me with some extra cash in the process :).&amp;#160; But if your app doesn’t take into account all of the things we just discussed I say you are abusing it. If it costs you accuracy / integrity or stability when it wasn’t intended then yes you must seek help as you are an abuser :).&amp;#160; So what do you think, is the world full of abusers? &lt;/p&gt;
&lt;BR&gt;&lt;div class = "shareblock"&gt;&lt;span class = "shareblockTitle"&gt;Share this post:&lt;/span&gt;&lt;span class = "shareblockLink"&gt; &lt;a href = "mailto:?subject=How Dirty are your Reads?&amp;amp;body=Seen on SQLblog.com: %0A%0A%09How Dirty are your Reads?%0A%0Ahttp://sqlblog.com/blogs/andrew_kelly/archive/2009/04/10/how-dirty-are-your-reads.aspx" target="_blank" title = "Email How Dirty are your Reads?"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://sqlblog.com/blogs/andrew_kelly/archive/2009/04/10/how-dirty-are-your-reads.aspx&amp;amp;title=How+Dirty+are+your+Reads%3f" target="_blank" title = "Submit How Dirty are your Reads? to del.icio.us"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://sqlblog.com/blogs/andrew_kelly/archive/2009/04/10/how-dirty-are-your-reads.aspx&amp;amp;phase=2" target="_blank" title = "Submit How Dirty are your Reads? to digg.com"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://sqlblog.com/blogs/andrew_kelly/archive/2009/04/10/how-dirty-are-your-reads.aspx&amp;amp;title=How+Dirty+are+your+Reads%3f" target="_blank" title = "Submit How Dirty are your Reads? to reddit.com"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://sqlblog.com/blogs/andrew_kelly/archive/2009/04/10/how-dirty-are-your-reads.aspx&amp;amp;title=How+Dirty+are+your+Reads%3f" target="_blank" title = "Submit How Dirty are your Reads? to DotNetKicks"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;mkt=en-us&amp;amp;url=http://sqlblog.com/blogs/andrew_kelly/archive/2009/04/10/how-dirty-are-your-reads.aspx&amp;amp;title=How+Dirty+are+your+Reads%3f&amp;amp;;top=1" target="_blank" title = "Add How Dirty are your Reads? to Live Bookmarks"&gt;live it!&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;img src="http://info.sqlblog.com/a.aspx?ZoneID=0&amp;BannerID=12&amp;AdvertiserID=1&amp;CampaignID=12&amp;Task=Get&amp;Mode=TEXT&amp;SiteID=1&amp;RandomNumber=463323" width="1" height="1" border="0"&gt;&lt;img src="http://sqlblog.com/aggbug.aspx?PostID=13215" width="1" height="1"&gt;</description><category domain="http://sqlblog.com/blogs/andrew_kelly/archive/tags/Best+Paractices/default.aspx">Best Paractices</category><category domain="http://sqlblog.com/blogs/andrew_kelly/archive/tags/Trivia/default.aspx">Trivia</category><category domain="http://sqlblog.com/blogs/andrew_kelly/archive/tags/Humor/default.aspx">Humor</category><category domain="http://sqlblog.com/blogs/andrew_kelly/archive/tags/Developer/default.aspx">Developer</category></item><item><title>What time do you have?</title><link>http://sqlblog.com/blogs/andrew_kelly/archive/2008/12/20/what-time-do-you-have.aspx</link><pubDate>Sat, 20 Dec 2008 13:12:43 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:10661</guid><dc:creator>Andrew Kelly</dc:creator><slash:comments>7</slash:comments><comments>http://sqlblog.com/blogs/andrew_kelly/comments/10661.aspx</comments><wfw:commentRss>http://sqlblog.com/blogs/andrew_kelly/commentrss.aspx?PostID=10661</wfw:commentRss><description>&lt;p&gt;The way in which SQL Server has treated Time has been a very misunderstood subject for as long as I can remember. The largest part of that was the fact that SQL Server was only accurate to 3.33ms. I would like to point you to an excellent article on this and other details surrounding Datetime in SQL Server by Tibor Karaszi found here:&amp;#160; &lt;a title="http://www.karaszi.com/SQLServer/info_datetime.asp" href="http://www.karaszi.com/SQLServer/info_datetime.asp"&gt;http://www.karaszi.com/SQLServer/info_datetime.asp&lt;/a&gt;&amp;#160; Well now with the release of SP3 for SQL Server 2005 (and of course SQL 2008 as well) SQL Server no longer uses the inaccurate techniques associated with the RDTSC component of Windows. Since there is a lot to explain about how this all works I will again point you to another link which goes into much greater detail.&amp;#160; &lt;a title="http://blogs.msdn.com/psssql/archive/2008/12/16/how-it-works-sql-server-no-longer-uses-rdtsc-for-timings-in-sql-2008-and-sql-2005-service-pack-3-sp3.aspx" href="http://blogs.msdn.com/psssql/archive/2008/12/16/how-it-works-sql-server-no-longer-uses-rdtsc-for-timings-in-sql-2008-and-sql-2005-service-pack-3-sp3.aspx"&gt;http://blogs.msdn.com/psssql/archive/2008/12/16/how-it-works-sql-server-no-longer-uses-rdtsc-for-timings-in-sql-2008-and-sql-2005-service-pack-3-sp3.aspx&lt;/a&gt;&amp;#160; I for one say it is about time:).&lt;/p&gt;
&lt;BR&gt;&lt;div class = "shareblock"&gt;&lt;span class = "shareblockTitle"&gt;Share this post:&lt;/span&gt;&lt;span class = "shareblockLink"&gt; &lt;a href = "mailto:?subject=What time do you have?&amp;amp;body=Seen on SQLblog.com: %0A%0A%09What time do you have?%0A%0Ahttp://sqlblog.com/blogs/andrew_kelly/archive/2008/12/20/what-time-do-you-have.aspx" target="_blank" title = "Email What time do you have?"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://sqlblog.com/blogs/andrew_kelly/archive/2008/12/20/what-time-do-you-have.aspx&amp;amp;title=What+time+do+you+have%3f" target="_blank" title = "Submit What time do you have? to del.icio.us"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://sqlblog.com/blogs/andrew_kelly/archive/2008/12/20/what-time-do-you-have.aspx&amp;amp;phase=2" target="_blank" title = "Submit What time do you have? to digg.com"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://sqlblog.com/blogs/andrew_kelly/archive/2008/12/20/what-time-do-you-have.aspx&amp;amp;title=What+time+do+you+have%3f" target="_blank" title = "Submit What time do you have? to reddit.com"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://sqlblog.com/blogs/andrew_kelly/archive/2008/12/20/what-time-do-you-have.aspx&amp;amp;title=What+time+do+you+have%3f" target="_blank" title = "Submit What time do you have? to DotNetKicks"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;mkt=en-us&amp;amp;url=http://sqlblog.com/blogs/andrew_kelly/archive/2008/12/20/what-time-do-you-have.aspx&amp;amp;title=What+time+do+you+have%3f&amp;amp;;top=1" target="_blank" title = "Add What time do you have? to Live Bookmarks"&gt;live it!&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;img src="http://info.sqlblog.com/a.aspx?ZoneID=0&amp;BannerID=12&amp;AdvertiserID=1&amp;CampaignID=12&amp;Task=Get&amp;Mode=TEXT&amp;SiteID=1&amp;RandomNumber=463323" width="1" height="1" border="0"&gt;&lt;img src="http://sqlblog.com/aggbug.aspx?PostID=10661" width="1" height="1"&gt;</description><category domain="http://sqlblog.com/blogs/andrew_kelly/archive/tags/Documentation/default.aspx">Documentation</category><category domain="http://sqlblog.com/blogs/andrew_kelly/archive/tags/Performance/default.aspx">Performance</category><category domain="http://sqlblog.com/blogs/andrew_kelly/archive/tags/Developer/default.aspx">Developer</category></item><item><title>RML Utilities Have Been Updated</title><link>http://sqlblog.com/blogs/andrew_kelly/archive/2008/11/13/rml-utilities-have-been-updated.aspx</link><pubDate>Thu, 13 Nov 2008 23:08:11 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:9954</guid><dc:creator>Andrew Kelly</dc:creator><slash:comments>1</slash:comments><comments>http://sqlblog.com/blogs/andrew_kelly/comments/9954.aspx</comments><wfw:commentRss>http://sqlblog.com/blogs/andrew_kelly/commentrss.aspx?PostID=9954</wfw:commentRss><description>&lt;p&gt;The RML utilities from PSS have just been updated to include support for SQL Server 2008 along with various enhancement and bug fixes.&amp;#160; If you don't know what the RML utilities are I suggest you have a look at this link and take a few minutes to download them and play around some. &lt;/p&gt;  &lt;p&gt;&lt;a title="http://blogs.msdn.com/psssql/archive/2008/11/12/cumulative-update-1-to-the-rml-utilities-for-microsoft-sql-server-released.aspx" href="http://blogs.msdn.com/psssql/archive/2008/11/12/cumulative-update-1-to-the-rml-utilities-for-microsoft-sql-server-released.aspx"&gt;http://blogs.msdn.com/psssql/archive/2008/11/12/cumulative-update-1-to-the-rml-utilities-for-microsoft-sql-server-released.aspx&lt;/a&gt;&lt;/p&gt;
&lt;BR&gt;&lt;div class = "shareblock"&gt;&lt;span class = "shareblockTitle"&gt;Share this post:&lt;/span&gt;&lt;span class = "shareblockLink"&gt; &lt;a href = "mailto:?subject=RML Utilities Have Been Updated&amp;amp;body=Seen on SQLblog.com: %0A%0A%09RML Utilities Have Been Updated%0A%0Ahttp://sqlblog.com/blogs/andrew_kelly/archive/2008/11/13/rml-utilities-have-been-updated.aspx" target="_blank" title = "Email RML Utilities Have Been Updated"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://sqlblog.com/blogs/andrew_kelly/archive/2008/11/13/rml-utilities-have-been-updated.aspx&amp;amp;title=RML+Utilities+Have+Been+Updated" target="_blank" title = "Submit RML Utilities Have Been Updated to del.icio.us"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://sqlblog.com/blogs/andrew_kelly/archive/2008/11/13/rml-utilities-have-been-updated.aspx&amp;amp;phase=2" target="_blank" title = "Submit RML Utilities Have Been Updated to digg.com"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://sqlblog.com/blogs/andrew_kelly/archive/2008/11/13/rml-utilities-have-been-updated.aspx&amp;amp;title=RML+Utilities+Have+Been+Updated" target="_blank" title = "Submit RML Utilities Have Been Updated to reddit.com"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://sqlblog.com/blogs/andrew_kelly/archive/2008/11/13/rml-utilities-have-been-updated.aspx&amp;amp;title=RML+Utilities+Have+Been+Updated" target="_blank" title = "Submit RML Utilities Have Been Updated to DotNetKicks"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;mkt=en-us&amp;amp;url=http://sqlblog.com/blogs/andrew_kelly/archive/2008/11/13/rml-utilities-have-been-updated.aspx&amp;amp;title=RML+Utilities+Have+Been+Updated&amp;amp;;top=1" target="_blank" title = "Add RML Utilities Have Been Updated to Live Bookmarks"&gt;live it!&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;img src="http://info.sqlblog.com/a.aspx?ZoneID=0&amp;BannerID=12&amp;AdvertiserID=1&amp;CampaignID=12&amp;Task=Get&amp;Mode=TEXT&amp;SiteID=1&amp;RandomNumber=463323" width="1" height="1" border="0"&gt;&lt;img src="http://sqlblog.com/aggbug.aspx?PostID=9954" width="1" height="1"&gt;</description><category domain="http://sqlblog.com/blogs/andrew_kelly/archive/tags/Performance/default.aspx">Performance</category><category domain="http://sqlblog.com/blogs/andrew_kelly/archive/tags/I_2F00_O/default.aspx">I/O</category></item><item><title>PASS Conference Stories - Tagging No one :)</title><link>http://sqlblog.com/blogs/andrew_kelly/archive/2008/10/03/pass-conference-stories-tagging-no-one.aspx</link><pubDate>Fri, 03 Oct 2008 23:26:18 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:9242</guid><dc:creator>Andrew Kelly</dc:creator><slash:comments>2</slash:comments><comments>http://sqlblog.com/blogs/andrew_kelly/comments/9242.aspx</comments><wfw:commentRss>http://sqlblog.com/blogs/andrew_kelly/commentrss.aspx?PostID=9242</wfw:commentRss><description>&lt;p&gt;Well this isn't really a funny story given the like the others given the destruction that occurred but here goes.&amp;#160; A number of years back PASS was at the Gaylord Palms in Orlando and we had a hurricane come thru a few days before the conference started. I had planned to come in a few days early anyway to play a few rounds of golf. Well the hurricane changed those plans somewhat as it roared right past Orlando.&amp;#160; Anyone who was already at the hotel was pretty much locked inside for the brunt of it. I thought this was kind of ironic since the entire central part of the atrium area was solid glass panels 50 foot overhead.&amp;#160; The wind and the rain was shaking and rattling the panels so much I thought they were all going to fall on everyone's heads. Many of them were leaking water during the peak of the storm and I remember they had guards at the doors to keep people in.&amp;#160; All I could think of was that I felt like a prisoner and the prison was about to collapse :) . Well it turned out there was minor damage to the hotel itself but I am sure the guy parked outside my room was not too happy when he saw the palm tree that had fallen on his car.&amp;#160; I did get to witness that from my window:).&amp;#160; &lt;/p&gt;
&lt;BR&gt;&lt;div class = "shareblock"&gt;&lt;span class = "shareblockTitle"&gt;Share this post:&lt;/span&gt;&lt;span class = "shareblockLink"&gt; &lt;a href = "mailto:?subject=PASS Conference Stories - Tagging No one :)&amp;amp;body=Seen on SQLblog.com: %0A%0A%09PASS Conference Stories - Tagging No one :)%0A%0Ahttp://sqlblog.com/blogs/andrew_kelly/archive/2008/10/03/pass-conference-stories-tagging-no-one.aspx" target="_blank" title = "Email PASS Conference Stories - Tagging No one :)"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://sqlblog.com/blogs/andrew_kelly/archive/2008/10/03/pass-conference-stories-tagging-no-one.aspx&amp;amp;title=PASS+Conference+Stories+-+Tagging+No+one+%3a)" target="_blank" title = "Submit PASS Conference Stories - Tagging No one :) to del.icio.us"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://sqlblog.com/blogs/andrew_kelly/archive/2008/10/03/pass-conference-stories-tagging-no-one.aspx&amp;amp;phase=2" target="_blank" title = "Submit PASS Conference Stories - Tagging No one :) to digg.com"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://sqlblog.com/blogs/andrew_kelly/archive/2008/10/03/pass-conference-stories-tagging-no-one.aspx&amp;amp;title=PASS+Conference+Stories+-+Tagging+No+one+%3a)" target="_blank" title = "Submit PASS Conference Stories - Tagging No one :) to reddit.com"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://sqlblog.com/blogs/andrew_kelly/archive/2008/10/03/pass-conference-stories-tagging-no-one.aspx&amp;amp;title=PASS+Conference+Stories+-+Tagging+No+one+%3a)" target="_blank" title = "Submit PASS Conference Stories - Tagging No one :) to DotNetKicks"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;mkt=en-us&amp;amp;url=http://sqlblog.com/blogs/andrew_kelly/archive/2008/10/03/pass-conference-stories-tagging-no-one.aspx&amp;amp;title=PASS+Conference+Stories+-+Tagging+No+one+%3a)&amp;amp;;top=1" target="_blank" title = "Add PASS Conference Stories - Tagging No one :) to Live Bookmarks"&gt;live it!&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;img src="http://info.sqlblog.com/a.aspx?ZoneID=0&amp;BannerID=12&amp;AdvertiserID=1&amp;CampaignID=12&amp;Task=Get&amp;Mode=TEXT&amp;SiteID=1&amp;RandomNumber=463323" width="1" height="1" border="0"&gt;&lt;img src="http://sqlblog.com/aggbug.aspx?PostID=9242" width="1" height="1"&gt;</description><category domain="http://sqlblog.com/blogs/andrew_kelly/archive/tags/Speaking/default.aspx">Speaking</category><category domain="http://sqlblog.com/blogs/andrew_kelly/archive/tags/Humor/default.aspx">Humor</category></item><item><title>Debug button in SSMS 2008</title><link>http://sqlblog.com/blogs/andrew_kelly/archive/2008/09/17/debug-button-in-ssms-2008.aspx</link><pubDate>Wed, 17 Sep 2008 20:44:59 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:8952</guid><dc:creator>Andrew Kelly</dc:creator><slash:comments>6</slash:comments><comments>http://sqlblog.com/blogs/andrew_kelly/comments/8952.aspx</comments><wfw:commentRss>http://sqlblog.com/blogs/andrew_kelly/commentrss.aspx?PostID=8952</wfw:commentRss><description>&lt;p&gt;How many people are tired of accidentally hitting the toolbar button with the &lt;font color="#008000"&gt;green&lt;/font&gt; triangle on it when trying to run a query in the Query Editor only to get into the &lt;font color="#ff0000"&gt;debug&lt;/font&gt; mode?&amp;#160; If you are like me then I bet a lot of you:).&amp;#160; It only seems natural to hit the &lt;font color="#008000"&gt;Green&lt;/font&gt; button to run something right?&amp;#160; Especially since it is right next to the execute button to begin with. Maybe if you are more of a developer and use Visual Studio a lot its not so bad. Well I got tired of it real quick so I simply removed it from the toolbar altogether and no longer have to think about it.&amp;#160; For those few times you really want to debug the script you can still access it from the menu or by hitting Alt - F5.&amp;#160; These are such simple solutions but we tend to forget about them so this is just a reminder that you can control your SSMS life after all:).&lt;/p&gt;
&lt;BR&gt;&lt;div class = "shareblock"&gt;&lt;span class = "shareblockTitle"&gt;Share this post:&lt;/span&gt;&lt;span class = "shareblockLink"&gt; &lt;a href = "mailto:?subject=Debug button in SSMS 2008&amp;amp;body=Seen on SQLblog.com: %0A%0A%09Debug button in SSMS 2008%0A%0Ahttp://sqlblog.com/blogs/andrew_kelly/archive/2008/09/17/debug-button-in-ssms-2008.aspx" target="_blank" title = "Email Debug button in SSMS 2008"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://sqlblog.com/blogs/andrew_kelly/archive/2008/09/17/debug-button-in-ssms-2008.aspx&amp;amp;title=Debug+button+in+SSMS+2008" target="_blank" title = "Submit Debug button in SSMS 2008 to del.icio.us"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://sqlblog.com/blogs/andrew_kelly/archive/2008/09/17/debug-button-in-ssms-2008.aspx&amp;amp;phase=2" target="_blank" title = "Submit Debug button in SSMS 2008 to digg.com"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://sqlblog.com/blogs/andrew_kelly/archive/2008/09/17/debug-button-in-ssms-2008.aspx&amp;amp;title=Debug+button+in+SSMS+2008" target="_blank" title = "Submit Debug button in SSMS 2008 to reddit.com"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://sqlblog.com/blogs/andrew_kelly/archive/2008/09/17/debug-button-in-ssms-2008.aspx&amp;amp;title=Debug+button+in+SSMS+2008" target="_blank" title = "Submit Debug button in SSMS 2008 to DotNetKicks"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;mkt=en-us&amp;amp;url=http://sqlblog.com/blogs/andrew_kelly/archive/2008/09/17/debug-button-in-ssms-2008.aspx&amp;amp;title=Debug+button+in+SSMS+2008&amp;amp;;top=1" target="_blank" title = "Add Debug button in SSMS 2008 to Live Bookmarks"&gt;live it!&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;img src="http://info.sqlblog.com/a.aspx?ZoneID=0&amp;BannerID=12&amp;AdvertiserID=1&amp;CampaignID=12&amp;Task=Get&amp;Mode=TEXT&amp;SiteID=1&amp;RandomNumber=463323" width="1" height="1" border="0"&gt;&lt;img src="http://sqlblog.com/aggbug.aspx?PostID=8952" width="1" height="1"&gt;</description><category domain="http://sqlblog.com/blogs/andrew_kelly/archive/tags/Documentation/default.aspx">Documentation</category><category domain="http://sqlblog.com/blogs/andrew_kelly/archive/tags/Trivia/default.aspx">Trivia</category></item><item><title>New England SQL Users Group &amp; Craig Freedman</title><link>http://sqlblog.com/blogs/andrew_kelly/archive/2008/05/06/new-england-sql-users-group-craig-freedman.aspx</link><pubDate>Tue, 06 May 2008 19:50:23 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:6657</guid><dc:creator>Andrew Kelly</dc:creator><slash:comments>9</slash:comments><comments>http://sqlblog.com/blogs/andrew_kelly/comments/6657.aspx</comments><wfw:commentRss>http://sqlblog.com/blogs/andrew_kelly/commentrss.aspx?PostID=6657</wfw:commentRss><description>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Adam Machanic has already blogged about Craig's visit to New England coming up on May 8th but I wanted to re-iterate some points for the benefit of the folks planning to attend. Due to the large crowd expected we really need you to RSVP if you plan to attend to ensure we have enough chairs and Pizza for everyone:).&amp;#160; &lt;a href="http://www.red-gate.com/" target="_blank"&gt;Red Gate Software&lt;/a&gt; is sponsoring the event and it would be great to get the head count as close as possible to maximize the event potential. They made it possible to get a great speaker like Craig as out guest. See the link below if you need more info on how to RSVP or just want more details.&lt;/p&gt;  &lt;p&gt;&lt;a title="http://sqlblog.com/blogs/adam_machanic/archive/2008/05/02/new-england-nesql-special-meeting-featuring-craig-freedman.aspx" href="http://sqlblog.com/blogs/adam_machanic/archive/2008/05/02/new-england-nesql-special-meeting-featuring-craig-freedman.aspx"&gt;http://sqlblog.com/blogs/adam_machanic/archive/2008/05/02/new-england-nesql-special-meeting-featuring-craig-freedman.aspx&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Thanks and hope to see you there...&lt;/p&gt;
&lt;BR&gt;&lt;div class = "shareblock"&gt;&lt;span class = "shareblockTitle"&gt;Share this post:&lt;/span&gt;&lt;span class = "shareblockLink"&gt; &lt;a href = "mailto:?subject=New England SQL Users Group &amp;amp; Craig Freedman&amp;amp;body=Seen on SQLblog.com: %0A%0A%09New England SQL Users Group &amp;amp; Craig Freedman%0A%0Ahttp://sqlblog.com/blogs/andrew_kelly/archive/2008/05/06/new-england-sql-users-group-craig-freedman.aspx" target="_blank" title = "Email New England SQL Users Group &amp;amp; Craig Freedman"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://sqlblog.com/blogs/andrew_kelly/archive/2008/05/06/new-england-sql-users-group-craig-freedman.aspx&amp;amp;title=New+England+SQL+Users+Group+%26amp%3b+Craig+Freedman" target="_blank" title = "Submit New England SQL Users Group &amp;amp; Craig Freedman to del.icio.us"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://sqlblog.com/blogs/andrew_kelly/archive/2008/05/06/new-england-sql-users-group-craig-freedman.aspx&amp;amp;phase=2" target="_blank" title = "Submit New England SQL Users Group &amp;amp; Craig Freedman to digg.com"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://sqlblog.com/blogs/andrew_kelly/archive/2008/05/06/new-england-sql-users-group-craig-freedman.aspx&amp;amp;title=New+England+SQL+Users+Group+%26amp%3b+Craig+Freedman" target="_blank" title = "Submit New England SQL Users Group &amp;amp; Craig Freedman to reddit.com"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://sqlblog.com/blogs/andrew_kelly/archive/2008/05/06/new-england-sql-users-group-craig-freedman.aspx&amp;amp;title=New+England+SQL+Users+Group+%26amp%3b+Craig+Freedman" target="_blank" title = "Submit New England SQL Users Group &amp;amp; Craig Freedman to DotNetKicks"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;mkt=en-us&amp;amp;url=http://sqlblog.com/blogs/andrew_kelly/archive/2008/05/06/new-england-sql-users-group-craig-freedman.aspx&amp;amp;title=New+England+SQL+Users+Group+%26amp%3b+Craig+Freedman&amp;amp;;top=1" target="_blank" title = "Add New England SQL Users Group &amp;amp; Craig Freedman to Live Bookmarks"&gt;live it!&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;img src="http://info.sqlblog.com/a.aspx?ZoneID=0&amp;BannerID=12&amp;AdvertiserID=1&amp;CampaignID=12&amp;Task=Get&amp;Mode=TEXT&amp;SiteID=1&amp;RandomNumber=463323" width="1" height="1" border="0"&gt;&lt;img src="http://sqlblog.com/aggbug.aspx?PostID=6657" width="1" height="1"&gt;</description><category domain="http://sqlblog.com/blogs/andrew_kelly/archive/tags/User+Groups/default.aspx">User Groups</category></item><item><title>OT - Where is the gas cap?</title><link>http://sqlblog.com/blogs/andrew_kelly/archive/2008/04/04/ot-where-is-the-gas-cap.aspx</link><pubDate>Fri, 04 Apr 2008 13:33:50 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:6044</guid><dc:creator>Andrew Kelly</dc:creator><slash:comments>31</slash:comments><comments>http://sqlblog.com/blogs/andrew_kelly/comments/6044.aspx</comments><wfw:commentRss>http://sqlblog.com/blogs/andrew_kelly/commentrss.aspx?PostID=6044</wfw:commentRss><description>&lt;p&gt;I know this is a SQL blog but I need to take my mind out of the technical mode for a few minutes to gain some sanity and hey, this is a blog after all:).&amp;#160; I was thinking about something my wife reminded me of while we were driving a rental car in Myrtle Beach last week. Being a consultant I rent a lot of cars or all makes &amp;amp; models as I am sure a lot of you do. But how many times have you pulled into a gas station in a rental car and the gas tank filler nozzle was on the wrong side? I am sure more than we want to admit. Well as it turns out every modern car (at least in the US) these days has a little arrow next to the gas gauge on the dashboard that points to the right or left indicating which side the gas cap is on. Now I bet most of you have been driving your own car for years and never even noticed this arrow. Why should you, you know which side it is on. Anyway I just wanted to share this little tidbit of almost useless information (until you actually need it that is). Happy car renting:).&lt;/p&gt;
&lt;BR&gt;&lt;div class = "shareblock"&gt;&lt;span class = "shareblockTitle"&gt;Share this post:&lt;/span&gt;&lt;span class = "shareblockLink"&gt; &lt;a href = "mailto:?subject=OT - Where is the gas cap?&amp;amp;body=Seen on SQLblog.com: %0A%0A%09OT - Where is the gas cap?%0A%0Ahttp://sqlblog.com/blogs/andrew_kelly/archive/2008/04/04/ot-where-is-the-gas-cap.aspx" target="_blank" title = "Email OT - Where is the gas cap?"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://sqlblog.com/blogs/andrew_kelly/archive/2008/04/04/ot-where-is-the-gas-cap.aspx&amp;amp;title=OT+-+Where+is+the+gas+cap%3f" target="_blank" title = "Submit OT - Where is the gas cap? to del.icio.us"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://sqlblog.com/blogs/andrew_kelly/archive/2008/04/04/ot-where-is-the-gas-cap.aspx&amp;amp;phase=2" target="_blank" title = "Submit OT - Where is the gas cap? to digg.com"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://sqlblog.com/blogs/andrew_kelly/archive/2008/04/04/ot-where-is-the-gas-cap.aspx&amp;amp;title=OT+-+Where+is+the+gas+cap%3f" target="_blank" title = "Submit OT - Where is the gas cap? to reddit.com"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://sqlblog.com/blogs/andrew_kelly/archive/2008/04/04/ot-where-is-the-gas-cap.aspx&amp;amp;title=OT+-+Where+is+the+gas+cap%3f" target="_blank" title = "Submit OT - Where is the gas cap? to DotNetKicks"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;mkt=en-us&amp;amp;url=http://sqlblog.com/blogs/andrew_kelly/archive/2008/04/04/ot-where-is-the-gas-cap.aspx&amp;amp;title=OT+-+Where+is+the+gas+cap%3f&amp;amp;;top=1" target="_blank" title = "Add OT - Where is the gas cap? to Live Bookmarks"&gt;live it!&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;img src="http://info.sqlblog.com/a.aspx?ZoneID=0&amp;BannerID=12&amp;AdvertiserID=1&amp;CampaignID=12&amp;Task=Get&amp;Mode=TEXT&amp;SiteID=1&amp;RandomNumber=463323" width="1" height="1" border="0"&gt;&lt;img src="http://sqlblog.com/aggbug.aspx?PostID=6044" width="1" height="1"&gt;</description><category domain="http://sqlblog.com/blogs/andrew_kelly/archive/tags/Trivia/default.aspx">Trivia</category></item></channel></rss>