<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://sqlblogcasts.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>Simons SQL Blog : Backup and Recovery</title><link>http://sqlblogcasts.com/blogs/simons/archive/tags/Backup+and+Recovery/default.aspx</link><description>Tags: Backup and Recovery</description><dc:language>en</dc:language><generator>CommunityServer 2007.1 (Build: 20917.1142)</generator><item><title>Do you do backups? Do you test them?</title><link>http://sqlblogcasts.com/blogs/simons/archive/2010/02/11/Do-you-do-backups--Do-you-test-them-.aspx</link><pubDate>Thu, 11 Feb 2010 10:12:17 GMT</pubDate><guid isPermaLink="false">fa8c4e8e-46a3-4193-8264-2c1a9cb3475d:13031</guid><dc:creator>simonsabin</dc:creator><slash:comments>2</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://sqlblogcasts.com/blogs/simons/rsscomments.aspx?PostID=13031</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://sqlblogcasts.com/blogs/simons/commentapi.aspx?PostID=13031</wfw:comment><comments>http://sqlblogcasts.com/blogs/simons/archive/2010/02/11/Do-you-do-backups--Do-you-test-them-.aspx#comments</comments><description>
&lt;p&gt;I recently read a story about a hosting company that was 
trying to restore a server and was having problems. &lt;a href="http://www.theregister.co.uk/2010/02/10/hostv_outage/"&gt;http://www.theregister.co.uk/2010/02/10/hostv_outage/&lt;/a&gt;&amp;nbsp;To 
me this highlights one of the most common problems in disaster recovery, not 
that people aren&amp;#39;t doing backups (that is the other common problem), but that 
they aren&amp;#39;t testing the backup.&lt;/p&gt;
&lt;p&gt;For any backup it is vital that you are testing the backup. What might go 
wrong you may ask. Well in my experience because backups are generally 
processing large amounts of data that means they are using memory and a lot of 
disk and using a lot of throughput, these are situations that your normal every 
day use may not be experiencing. You can therefore be experiencing issues with 
corrupt data being put in your backups without you knowing.&lt;/p&gt;
&lt;p&gt;Whats more and this is my biggest experience, when using 3rd party vendors to 
manage backups the liklihood of problems with restoring is much much higher. 
IMHO it is therefore essential that you keep ALL versions of a 3rd party 
products software that you have used to do backups with. Too many times have I 
tried to restore a backup and found it not work because I&amp;#39;ve been on a new 
version, although having said that I&amp;#39;ve also found that I can&amp;#39;t restore even 
with the currrent version.&lt;/p&gt;
&lt;p&gt;The minimum you should be doing is to regularly restore from your backup and 
run a checkdb to ensure that your backups work.You should also be using checksum 
detection to check page checksums as the backup is processing and also to 
calculate a checksum for the backup. &lt;/p&gt;
&lt;p&gt;If you don&amp;#39;t test your backups your backup process could be pointless, and 
the last thing you want to do is find out when your database has just crashed 
and your website is down and loosing money.&lt;/p&gt;
&lt;hr /&gt;
&lt;script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt; 
&lt;/script&gt;
&lt;img src="http://sqlblogcasts.com/aggbug.aspx?PostID=13031" width="1" height="1"&gt;</description><category domain="http://sqlblogcasts.com/blogs/simons/archive/tags/Backup+and+Recovery/default.aspx">Backup and Recovery</category></item><item><title>Data Data everywhere even when you think its gone</title><link>http://sqlblogcasts.com/blogs/simons/archive/2007/08/12/Data-Data-everywhere-even-when-you-think-its-gone.aspx</link><pubDate>Sun, 12 Aug 2007 18:09:28 GMT</pubDate><guid isPermaLink="false">fa8c4e8e-46a3-4193-8264-2c1a9cb3475d:2194</guid><dc:creator>simonsabin</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://sqlblogcasts.com/blogs/simons/rsscomments.aspx?PostID=2194</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://sqlblogcasts.com/blogs/simons/commentapi.aspx?PostID=2194</wfw:comment><comments>http://sqlblogcasts.com/blogs/simons/archive/2007/08/12/Data-Data-everywhere-even-when-you-think-its-gone.aspx#comments</comments><description>
&lt;p&gt;The biggest problem I have faced in IT over the last decade has been loss of 
data.&lt;/p&gt;
&lt;p&gt;I have had the problem at work where servers have crashed and lost data, more 
often than not due to failure of disks. I have also personally felt the pain in 
a hard disk losing its partition information, and frequently my wife&amp;#39;s laptop 
dying and windows not being able to boot.&lt;/p&gt;
&lt;p&gt;Whilst many businesses have been aware of the criticality of data for a 
while, data is becoming more critical to everyone. Many people don’t have 
address books anymore, and if they do, do they contain mobiles, IM addresses, 
email address etc. If you lose data the inconvenience and the pain is often 
great.&lt;/p&gt;
&lt;p&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/span&gt;What always surprises me is, 
&lt;/p&gt;
&lt;p style="MARGIN-LEFT:36pt;TEXT-INDENT:-18pt;mso-list:l0 level1 lfo1;"&gt;&lt;span style="mso-list:Ignore;"&gt;1.&lt;span style="FONT:7pt &amp;#39;Times New Roman&amp;#39;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&lt;/span&gt;&lt;/span&gt;The ease in which you can recover data&lt;/p&gt;
&lt;p style="MARGIN-LEFT:36pt;TEXT-INDENT:-18pt;mso-list:l0 level1 lfo1;"&gt;&lt;span style="mso-list:Ignore;"&gt;2.&lt;span style="FONT:7pt &amp;#39;Times New Roman&amp;#39;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&lt;/span&gt;&lt;/span&gt;The inability of IT departments to do so&lt;/p&gt;
&lt;p&gt;The most regular issue I have had is laptop hard drives becoming corrupt. 
This happened to my wife on a regular basis, at which point the IT departments 
said, “nothing we can do love, you’ve lost everything”. You take their word the 
first time. On the second occurrence I said thats tosh. Went off and bought a 
2.5” USB hard drive chassis (£15) popped the drive in, ran chkdsk and heh presto 
it all worked a treat. I’ve done this a few times for friends as well. So simply 
put if you laptop dies (doesn’t boot up) and you have another PC, go and buy a 
USB hard drive case, pop your laptops hard drive in (remember where all the 
screws go) and run chkdsk.&lt;/p&gt;
&lt;p&gt;When I lost my partition (with all my wedding photos on it) I hunted for a 
product that would read the disk. I tried a few, but many didn’t cut it, they 
all have a slightly different feature set. I happened upon Stellar and their 
product Phoenix &lt;a href="http://www.stellarinfo.com/disk-recovery.htm"&gt;http://www.stellarinfo.com/disk-recovery.htm&lt;/a&gt; 
I downloaded and had my data recovered in a few hours. Very simple and only for 
£50&lt;/p&gt;
&lt;p&gt;My latest data issue wasn’t that recent. I had some photos done and was given 
them on a CD. At the time I tried to read them and couldn’t, I thought it was 
because the CD wasn’t finalised so my CD writer software finalised it. In 
hindsight I realise the issue was that the CD had been written on a Mac and not 
a PC and so used HFS and not FAT or NTFS. At eh time I scoured the web trying to 
find a means of reading the CD and none worked. Today I came across the CD again 
and did another hunt. This time I found ISOBuster (&lt;a href="http://www.smart-projects.net/cdrecovery.php"&gt;http://www.smart-projects.net/cdrecovery.php&lt;/a&gt;) 
I downloaded the free version and was pleasantly surprised that it could read 
the CD including the HFS session and whats more I could extract the files, for 
free. On looking ISOBuster does a huge amount more, and I would strongly 
recommend the product.&lt;/p&gt;
&lt;p&gt;The morale of the story is that the data is always there, and it’s not too 
difficult or expensive to recover. &lt;/p&gt;
&lt;p&gt;Remember even if you think your data no longer exists on your machine you are 
probably wrong. The standard way of removing data is to completely rewrite the 
disk. From my limited knowledge 7 times is the best compromise between time and 
security.&lt;/p&gt;
&lt;p&gt;So if you are ever going to give your PC away, make sure you don’t give you 
hard disk. Of get it professionally cleaned. &lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 10pt;"&gt;&lt;font face="Calibri"&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;br /&gt;
&lt;script type="text/javascript" src="http://sqlblogcasts.com/sitefiles/1000/Social_Buttons.js"&gt;&lt;/script&gt;
&lt;hr /&gt;
-
&lt;script type="text/javascript" src="http://sqlblogcasts.com/sitefiles/1000/google_rss.js"&gt;
&lt;/script&gt;
&lt;script type="text/javascript"&gt;var height=90;var width=720;&lt;/script&gt;
&lt;script src="http://www.sqlknowhow.com/scripts/Banner.js" type="text/javascript"&gt;
&lt;/script&gt;
 &lt;img src="http://sqlblogcasts.com/aggbug.aspx?PostID=2194" width="1" height="1"&gt;</description><category domain="http://sqlblogcasts.com/blogs/simons/archive/tags/Tips+and+Tricks/default.aspx">Tips and Tricks</category><category domain="http://sqlblogcasts.com/blogs/simons/archive/tags/Backup+and+Recovery/default.aspx">Backup and Recovery</category><category domain="http://sqlblogcasts.com/blogs/simons/archive/tags/Tools/default.aspx">Tools</category></item><item><title>SQL Server The Truth - Rebuilding a clustered index does not rebuild the non clustered indexes</title><link>http://sqlblogcasts.com/blogs/simons/archive/2007/07/20/SQL-Server-The-Truth---Rebuilding-a-clustered-index-does-not-rebuild-the-non-clustered-indexes.aspx</link><pubDate>Fri, 20 Jul 2007 09:32:49 GMT</pubDate><guid isPermaLink="false">fa8c4e8e-46a3-4193-8264-2c1a9cb3475d:2106</guid><dc:creator>simonsabin</dc:creator><slash:comments>4</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://sqlblogcasts.com/blogs/simons/rsscomments.aspx?PostID=2106</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://sqlblogcasts.com/blogs/simons/commentapi.aspx?PostID=2106</wfw:comment><comments>http://sqlblogcasts.com/blogs/simons/archive/2007/07/20/SQL-Server-The-Truth---Rebuilding-a-clustered-index-does-not-rebuild-the-non-clustered-indexes.aspx#comments</comments><description>

&lt;span class="code"&gt;
&lt;p&gt;It used to be fact that the leaf page of a non-clustered 
index pointed to the row for the page, because it pointed to the file, page and 
row if the file or page of the row changed the nonclustered index had to 
be&amp;nbsp;updated.&lt;/p&gt;
&lt;p&gt;Now however the non-clustered index has the Unique Clustering Key 
value&amp;nbsp;for the main data row. I specifically say Unique because you can 
create a non unique clustered index. In this case SQL generates an additional 
bit of data to make a unique key for each row in the table. (One reason why 
clustering on a non-unique column&amp;nbsp; is bad).&lt;/p&gt;
&lt;p&gt;What this means is that the data row can move about all over the place with 
out affecting the non-clustered&amp;nbsp;index.&lt;/p&gt;
&lt;p&gt;So what happens when you, create a clustered index, 
reindex a clustered index, recreate (using with drop existing) and drop a 
clustered index. This question came up in a recent presentation I was sure of 
the first and last, but not of the middle 2 so I did a repro and was pleasantly 
suprised.&lt;/p&gt;
&lt;p&gt;The first and last both result in the non-clustered index being changed, the 
middle two however don&amp;#39;t.&lt;/p&gt;
&lt;p&gt;The example below puts the index on a different 
filegroup and looks at the IO for each filegroup after the operation. File 3 
relates to the nonclustered index and you can see that the index creation causes 
IO, so does the creation of the clustered index (changing the row pointers to key values). But the reindex and the create with 
drop existing doesn&amp;#39;t.&lt;/p&gt;
&lt;p&gt;So in summary if you need to rebuild a clustered don&amp;#39;t drop it and recreate, 
instead use alter index, dbreindex, or with drop_existing.&lt;/p&gt;
&lt;img src="http://sqlblogcasts.com/photos/blogimages/images/original/ClusteredIndexRebuild.aspx" alt="" /&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;if&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="COLOR:gray;"&gt;not&lt;/span&gt;&lt;font color="#000000"&gt; 
&lt;/font&gt;&lt;span style="COLOR:gray;"&gt;exists&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="COLOR:gray;"&gt;(&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;select&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="COLOR:gray;"&gt;*&lt;/span&gt;&lt;font color="#000000"&gt; 
&lt;/font&gt;&lt;span style="COLOR:blue;"&gt;from&lt;/span&gt;&lt;font color="#000000"&gt; sysfilegroups 
&lt;/font&gt;&lt;span style="COLOR:blue;"&gt;where&lt;/span&gt;&lt;font color="#000000"&gt; groupname 
&lt;/font&gt;&lt;span style="COLOR:gray;"&gt;=&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="COLOR:red;"&gt;&amp;#39;indexes&amp;#39;&lt;/span&gt;&lt;span style="COLOR:gray;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;span style="mso-tab-count:1;"&gt;&lt;font color="#000000"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&lt;/font&gt;&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;begin&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;span style="mso-tab-count:1;"&gt;&lt;font color="#000000"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&lt;/font&gt;&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;alter&lt;/span&gt;&lt;font color="#000000"&gt; 
&lt;/font&gt;&lt;span style="COLOR:blue;"&gt;database&lt;/span&gt;&lt;font color="#000000"&gt; blogcode 
&lt;/font&gt;&lt;span style="COLOR:blue;"&gt;add&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="COLOR:blue;"&gt;filegroup&lt;/span&gt;&lt;font color="#000000"&gt; 
indexes&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;span style="mso-tab-count:1;"&gt;&lt;font color="#000000"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&lt;/font&gt;&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;alter&lt;/span&gt;&lt;font color="#000000"&gt; 
&lt;/font&gt;&lt;span style="COLOR:blue;"&gt;database&lt;/span&gt;&lt;font color="#000000"&gt; blogcode 
&lt;/font&gt;&lt;span style="COLOR:blue;"&gt;add&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="COLOR:blue;"&gt;file&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="COLOR:gray;"&gt;(&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;name&lt;/span&gt;&lt;span style="COLOR:gray;"&gt;=&lt;/span&gt;&lt;font color="#000000"&gt;indexes&lt;/font&gt;&lt;span style="COLOR:gray;"&gt;,&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="COLOR:blue;"&gt;filename&lt;/span&gt;&lt;span style="COLOR:gray;"&gt;=&lt;/span&gt;&lt;span style="COLOR:red;"&gt;&amp;#39;c:\indexes.mdf&amp;#39;&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="COLOR:gray;"&gt;,&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="COLOR:blue;"&gt;size&lt;/span&gt;&lt;span style="COLOR:gray;"&gt;=&lt;/span&gt;&lt;font color="#000000"&gt;10&lt;/font&gt;&lt;span style="COLOR:gray;"&gt;)&lt;/span&gt;&lt;font color="#000000"&gt; 
&lt;/font&gt;&lt;span style="COLOR:blue;"&gt;to&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="COLOR:blue;"&gt;filegroup&lt;/span&gt;&lt;font color="#000000"&gt; 
indexes&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;span style="mso-tab-count:1;"&gt;&lt;font color="#000000"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&lt;/font&gt;&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;end&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;font color="#000000"&gt;go&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;font color="#000000"&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;declare&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;font color="#000000"&gt; @dbid &lt;/font&gt;&lt;span style="COLOR:blue;"&gt;int&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;drop&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="COLOR:blue;"&gt;table&lt;/span&gt;&lt;font color="#000000"&gt; 
simon&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;font color="#000000"&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;create&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="COLOR:blue;"&gt;table&lt;/span&gt;&lt;font color="#000000"&gt; 
simon&lt;/font&gt;&lt;span style="COLOR:gray;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;font color="#000000"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;clusteredCol 
&lt;/font&gt;&lt;span style="COLOR:blue;"&gt;int&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="COLOR:blue;"&gt;identity&lt;/span&gt;&lt;span style="COLOR:gray;"&gt;(&lt;/span&gt;&lt;font color="#000000"&gt;1&lt;/font&gt;&lt;span style="COLOR:gray;"&gt;,&lt;/span&gt;&lt;font color="#000000"&gt;1&lt;/font&gt;&lt;span style="COLOR:gray;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&lt;font color="#000000"&gt;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="COLOR:gray;"&gt;,&lt;/span&gt;&lt;font color="#000000"&gt;col2 &lt;/font&gt;&lt;span style="COLOR:blue;"&gt;uniqueidentifier&lt;/span&gt;&lt;span style="mso-spacerun:yes;"&gt;&lt;font color="#000000"&gt;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="COLOR:gray;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;COLOR:gray;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;insert&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="COLOR:blue;"&gt;into&lt;/span&gt;&lt;font color="#000000"&gt; 
simon&lt;/font&gt;&lt;span style="COLOR:gray;"&gt;(&lt;/span&gt;&lt;font color="#000000"&gt;col2&lt;/font&gt;&lt;span style="COLOR:gray;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;select&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="COLOR:blue;"&gt;top&lt;/span&gt;&lt;font color="#000000"&gt; 
20000 &lt;/font&gt;&lt;span style="COLOR:fuchsia;"&gt;newId&lt;/span&gt;&lt;span style="COLOR:gray;"&gt;()&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;from&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;font color="#000000"&gt; syscolumns a&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;COLOR:gray;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;cross&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="COLOR:gray;"&gt;join&lt;/span&gt;&lt;font color="#000000"&gt; 
syscolumns b&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;font color="#000000"&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;select&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="COLOR:blue;"&gt;identity&lt;/span&gt;&lt;span style="COLOR:gray;"&gt;(&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;int&lt;/span&gt;&lt;span style="COLOR:gray;"&gt;,&lt;/span&gt;&lt;font color="#000000"&gt;1&lt;/font&gt;&lt;span style="COLOR:gray;"&gt;,&lt;/span&gt;&lt;font color="#000000"&gt;1&lt;/font&gt;&lt;span style="COLOR:gray;"&gt;)&lt;/span&gt;&lt;font color="#000000"&gt; id&lt;/font&gt;&lt;span style="COLOR:gray;"&gt;,&lt;/span&gt;&lt;font color="#000000"&gt;fileId&lt;/font&gt;&lt;span style="COLOR:gray;"&gt;,&lt;/span&gt;&lt;span style="COLOR:fuchsia;"&gt;cast&lt;/span&gt;&lt;span style="COLOR:gray;"&gt;(&lt;/span&gt;&lt;span style="COLOR:red;"&gt;&amp;#39;start&amp;#39;&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="COLOR:blue;"&gt;as&lt;/span&gt;&lt;font color="#000000"&gt; 
&lt;/font&gt;&lt;span style="COLOR:blue;"&gt;varchar&lt;/span&gt;&lt;span style="COLOR:gray;"&gt;(&lt;/span&gt;&lt;font color="#000000"&gt;30&lt;/font&gt;&lt;span style="COLOR:gray;"&gt;))&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="COLOR:blue;"&gt;as&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="COLOR:blue;"&gt;action&lt;/span&gt;&lt;span style="COLOR:gray;"&gt;,&lt;/span&gt;&lt;font color="#000000"&gt;numberreads&lt;/font&gt;&lt;span style="COLOR:gray;"&gt;,&lt;/span&gt;&lt;font color="#000000"&gt;numberwrites &lt;/font&gt;&lt;span style="COLOR:blue;"&gt;into&lt;/span&gt;&lt;font color="#000000"&gt; #stats &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;from&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="COLOR:gray;"&gt;::&lt;/span&gt;&lt;span style="COLOR:fuchsia;"&gt;fn_virtualfilestats&lt;/span&gt;&lt;span style="COLOR:gray;"&gt;(&lt;/span&gt;&lt;span style="COLOR:fuchsia;"&gt;db_id&lt;/span&gt;&lt;span style="COLOR:gray;"&gt;(),null)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;span style="COLOR:gray;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;COLOR:gray;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;create&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="COLOR:blue;"&gt;nonclustered&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="COLOR:blue;"&gt;index&lt;/span&gt;&lt;font color="#000000"&gt; 
IX_simon_col2 &lt;/font&gt;&lt;span style="COLOR:blue;"&gt;on&lt;/span&gt;&lt;font color="#000000"&gt; 
simon&lt;/font&gt;&lt;span style="COLOR:gray;"&gt;(&lt;/span&gt;&lt;font color="#000000"&gt;Col2&lt;/font&gt;&lt;span style="COLOR:gray;"&gt;)&lt;/span&gt;&lt;font color="#000000"&gt; 
&lt;/font&gt;&lt;span style="COLOR:blue;"&gt;on&lt;/span&gt;&lt;font color="#000000"&gt; indexes&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;font color="#000000"&gt; 
&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;insert&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="COLOR:blue;"&gt;into&lt;/span&gt;&lt;font color="#000000"&gt; 
#stats &lt;/font&gt;&lt;span style="COLOR:gray;"&gt;(&lt;/span&gt;&lt;font color="#000000"&gt;fileId&lt;/font&gt;&lt;span style="COLOR:gray;"&gt;,&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;action&lt;/span&gt;&lt;span style="COLOR:gray;"&gt;,&lt;/span&gt;&lt;font color="#000000"&gt;numberreads&lt;/font&gt;&lt;span style="COLOR:gray;"&gt;,&lt;/span&gt;&lt;font color="#000000"&gt;numberwrites&lt;/font&gt;&lt;span style="COLOR:gray;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;select&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;font color="#000000"&gt; fileId&lt;/font&gt;&lt;span style="COLOR:gray;"&gt;,&lt;/span&gt;&lt;span style="COLOR:red;"&gt;&amp;#39;create nonclustered&amp;#39;&lt;/span&gt;&lt;span style="COLOR:gray;"&gt;,&lt;/span&gt;&lt;font color="#000000"&gt;numberreads&lt;/font&gt;&lt;span style="COLOR:gray;"&gt;,&lt;/span&gt;&lt;font color="#000000"&gt;numberwrites &lt;/font&gt;&lt;span style="COLOR:blue;"&gt;from&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="COLOR:gray;"&gt;::&lt;/span&gt;&lt;span style="COLOR:fuchsia;"&gt;fn_virtualfilestats&lt;/span&gt;&lt;span style="COLOR:gray;"&gt;(&lt;/span&gt;&lt;span style="COLOR:fuchsia;"&gt;db_id&lt;/span&gt;&lt;span style="COLOR:gray;"&gt;(),null)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;span style="COLOR:gray;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;COLOR:gray;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;create&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="COLOR:blue;"&gt;clustered&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="COLOR:blue;"&gt;index&lt;/span&gt;&lt;font color="#000000"&gt; 
IXC_simon_clusteredCol &lt;/font&gt;&lt;span style="COLOR:blue;"&gt;on&lt;/span&gt;&lt;font color="#000000"&gt; simon&lt;/font&gt;&lt;span style="COLOR:gray;"&gt;(&lt;/span&gt;&lt;font color="#000000"&gt;clusteredCol&lt;/font&gt;&lt;span style="COLOR:gray;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;span style="COLOR:gray;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;insert&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="COLOR:blue;"&gt;into&lt;/span&gt;&lt;font color="#000000"&gt; 
#stats &lt;/font&gt;&lt;span style="COLOR:gray;"&gt;(&lt;/span&gt;&lt;font color="#000000"&gt;fileId&lt;/font&gt;&lt;span style="COLOR:gray;"&gt;,&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;action&lt;/span&gt;&lt;span style="COLOR:gray;"&gt;,&lt;/span&gt;&lt;font color="#000000"&gt;numberreads&lt;/font&gt;&lt;span style="COLOR:gray;"&gt;,&lt;/span&gt;&lt;font color="#000000"&gt;numberwrites&lt;/font&gt;&lt;span style="COLOR:gray;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;select&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;font color="#000000"&gt; fileId&lt;/font&gt;&lt;span style="COLOR:gray;"&gt;,&lt;/span&gt;&lt;span style="COLOR:red;"&gt;&amp;#39;create clustered&amp;#39;&lt;/span&gt;&lt;span style="COLOR:gray;"&gt;,&lt;/span&gt;&lt;font color="#000000"&gt;numberreads&lt;/font&gt;&lt;span style="COLOR:gray;"&gt;,&lt;/span&gt;&lt;font color="#000000"&gt;numberwrites &lt;/font&gt;&lt;span style="COLOR:blue;"&gt;from&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="COLOR:gray;"&gt;::&lt;/span&gt;&lt;span style="COLOR:fuchsia;"&gt;fn_virtualfilestats&lt;/span&gt;&lt;span style="COLOR:gray;"&gt;(&lt;/span&gt;&lt;span style="COLOR:fuchsia;"&gt;db_id&lt;/span&gt;&lt;span style="COLOR:gray;"&gt;(),null)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;span style="COLOR:gray;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;COLOR:gray;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;COLOR:gray;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;create&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="COLOR:blue;"&gt;clustered&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="COLOR:blue;"&gt;index&lt;/span&gt;&lt;font color="#000000"&gt; 
IXC_simon_clusteredCol &lt;/font&gt;&lt;span style="COLOR:blue;"&gt;on&lt;/span&gt;&lt;font color="#000000"&gt; simon&lt;/font&gt;&lt;span style="COLOR:gray;"&gt;(&lt;/span&gt;&lt;font color="#000000"&gt;clusteredCol&lt;/font&gt;&lt;span style="COLOR:gray;"&gt;)&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="COLOR:blue;"&gt;with&lt;/span&gt;&lt;font color="#000000"&gt; 
&lt;/font&gt;&lt;span style="COLOR:blue;"&gt;drop_existing&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;span style="COLOR:blue;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;insert&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="COLOR:blue;"&gt;into&lt;/span&gt;&lt;font color="#000000"&gt; 
#stats &lt;/font&gt;&lt;span style="COLOR:gray;"&gt;(&lt;/span&gt;&lt;font color="#000000"&gt;fileId&lt;/font&gt;&lt;span style="COLOR:gray;"&gt;,&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;action&lt;/span&gt;&lt;span style="COLOR:gray;"&gt;,&lt;/span&gt;&lt;font color="#000000"&gt;numberreads&lt;/font&gt;&lt;span style="COLOR:gray;"&gt;,&lt;/span&gt;&lt;font color="#000000"&gt;numberwrites&lt;/font&gt;&lt;span style="COLOR:gray;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;select&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;font color="#000000"&gt; fileId&lt;/font&gt;&lt;span style="COLOR:gray;"&gt;,&lt;/span&gt;&lt;span style="COLOR:red;"&gt;&amp;#39;create clustered with drop&amp;#39;&lt;/span&gt;&lt;span style="COLOR:gray;"&gt;,&lt;/span&gt;&lt;font color="#000000"&gt;numberreads&lt;/font&gt;&lt;span style="COLOR:gray;"&gt;,&lt;/span&gt;&lt;font color="#000000"&gt;numberwrites &lt;/font&gt;&lt;span style="COLOR:blue;"&gt;from&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="COLOR:gray;"&gt;::&lt;/span&gt;&lt;span style="COLOR:fuchsia;"&gt;fn_virtualfilestats&lt;/span&gt;&lt;span style="COLOR:gray;"&gt;(&lt;/span&gt;&lt;span style="COLOR:fuchsia;"&gt;db_id&lt;/span&gt;&lt;span style="COLOR:gray;"&gt;(),null)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;span style="COLOR:gray;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;COLOR:gray;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;dbcc&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;font color="#000000"&gt; dbreindex&lt;/font&gt;&lt;span style="COLOR:gray;"&gt;(&lt;/span&gt;&lt;font color="#000000"&gt;simon&lt;/font&gt;&lt;span style="COLOR:gray;"&gt;,&lt;/span&gt;&lt;font color="#000000"&gt;IXC_simon_clusteredCol &lt;/font&gt;&lt;span style="COLOR:gray;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;span style="COLOR:gray;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;insert&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="COLOR:blue;"&gt;into&lt;/span&gt;&lt;font color="#000000"&gt; 
#stats &lt;/font&gt;&lt;span style="COLOR:gray;"&gt;(&lt;/span&gt;&lt;font color="#000000"&gt;fileId&lt;/font&gt;&lt;span style="COLOR:gray;"&gt;,&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;action&lt;/span&gt;&lt;span style="COLOR:gray;"&gt;,&lt;/span&gt;&lt;font color="#000000"&gt;numberreads&lt;/font&gt;&lt;span style="COLOR:gray;"&gt;,&lt;/span&gt;&lt;font color="#000000"&gt;numberwrites&lt;/font&gt;&lt;span style="COLOR:gray;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;select&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;font color="#000000"&gt; fileId&lt;/font&gt;&lt;span style="COLOR:gray;"&gt;,&lt;/span&gt;&lt;span style="COLOR:red;"&gt;&amp;#39;dbreindex&amp;#39;&lt;/span&gt;&lt;span style="COLOR:gray;"&gt;,&lt;/span&gt;&lt;font color="#000000"&gt;numberreads&lt;/font&gt;&lt;span style="COLOR:gray;"&gt;,&lt;/span&gt;&lt;font color="#000000"&gt;numberwrites &lt;/font&gt;&lt;span style="COLOR:blue;"&gt;from&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="COLOR:gray;"&gt;::&lt;/span&gt;&lt;span style="COLOR:fuchsia;"&gt;fn_virtualfilestats&lt;/span&gt;&lt;span style="COLOR:gray;"&gt;(&lt;/span&gt;&lt;span style="COLOR:fuchsia;"&gt;db_id&lt;/span&gt;&lt;span style="COLOR:gray;"&gt;(),null)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;span style="COLOR:gray;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;COLOR:gray;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;drop&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="COLOR:blue;"&gt;index&lt;/span&gt;&lt;font color="#000000"&gt; 
simon&lt;/font&gt;&lt;span style="COLOR:gray;"&gt;.&lt;/span&gt;&lt;font color="#000000"&gt;IXC_simon_clusteredCol&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;insert&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="COLOR:blue;"&gt;into&lt;/span&gt;&lt;font color="#000000"&gt; 
#stats &lt;/font&gt;&lt;span style="COLOR:gray;"&gt;(&lt;/span&gt;&lt;font color="#000000"&gt;fileId&lt;/font&gt;&lt;span style="COLOR:gray;"&gt;,&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;action&lt;/span&gt;&lt;span style="COLOR:gray;"&gt;,&lt;/span&gt;&lt;font color="#000000"&gt;numberreads&lt;/font&gt;&lt;span style="COLOR:gray;"&gt;,&lt;/span&gt;&lt;font color="#000000"&gt;numberwrites&lt;/font&gt;&lt;span style="COLOR:gray;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;select&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;font color="#000000"&gt; fileId&lt;/font&gt;&lt;span style="COLOR:gray;"&gt;,&lt;/span&gt;&lt;span style="COLOR:red;"&gt;&amp;#39;drop clustered&amp;#39;&lt;/span&gt;&lt;span style="COLOR:gray;"&gt;,&lt;/span&gt;&lt;font color="#000000"&gt;numberreads&lt;/font&gt;&lt;span style="COLOR:gray;"&gt;,&lt;/span&gt;&lt;font color="#000000"&gt;numberwrites &lt;/font&gt;&lt;span style="COLOR:blue;"&gt;from&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="COLOR:gray;"&gt;::&lt;/span&gt;&lt;span style="COLOR:fuchsia;"&gt;fn_virtualfilestats&lt;/span&gt;&lt;span style="COLOR:gray;"&gt;(&lt;/span&gt;&lt;span style="COLOR:fuchsia;"&gt;db_id&lt;/span&gt;&lt;span style="COLOR:gray;"&gt;(),null)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;span style="COLOR:gray;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;COLOR:gray;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;select&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;font color="#000000"&gt; id&lt;/font&gt;&lt;span style="COLOR:gray;"&gt;,&lt;/span&gt;&lt;font color="#000000"&gt; 
&lt;/font&gt;&lt;span style="COLOR:blue;"&gt;action&lt;/span&gt;&lt;span style="COLOR:gray;"&gt;,&lt;/span&gt;&lt;font color="#000000"&gt; fileId&lt;/font&gt;&lt;span style="COLOR:gray;"&gt;,&lt;/span&gt;&lt;font color="#000000"&gt; numberreads&lt;/font&gt;&lt;span style="COLOR:gray;"&gt;,&lt;/span&gt;&lt;font color="#000000"&gt; 
numberwrites&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;from&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;font color="#000000"&gt; #stats&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;order&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="COLOR:blue;"&gt;by&lt;/span&gt;&lt;font color="#000000"&gt; 
fileid&lt;/font&gt;&lt;span style="COLOR:gray;"&gt;,&lt;/span&gt;&lt;font color="#000000"&gt; 
id&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;font color="#000000"&gt;go&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 0pt;LINE-HEIGHT:normal;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;drop&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="COLOR:blue;"&gt;table&lt;/span&gt;&lt;font color="#000000"&gt; 
#stats&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;script type="text/javascript" src="http://sqlblogcasts.com/sitefiles/1000/Social_Buttons.js"&gt;&lt;/script&gt;
&lt;hr /&gt;
-
&lt;script type="text/javascript" src="http://sqlblogcasts.com/sitefiles/1000/google_rss.js"&gt;
&lt;/script&gt;
&lt;script type="text/javascript"&gt;var height=90;var width=720;&lt;/script&gt;
&lt;script src="http://www.sqlknowhow.com/scripts/Banner.js" type="text/javascript"&gt;
&lt;/script&gt;
 &lt;img src="http://sqlblogcasts.com/aggbug.aspx?PostID=2106" width="1" height="1"&gt;</description><category domain="http://sqlblogcasts.com/blogs/simons/archive/tags/SQL+Server+2005/default.aspx">SQL Server 2005</category><category domain="http://sqlblogcasts.com/blogs/simons/archive/tags/Performance/default.aspx">Performance</category><category domain="http://sqlblogcasts.com/blogs/simons/archive/tags/Tips+and+Tricks/default.aspx">Tips and Tricks</category><category domain="http://sqlblogcasts.com/blogs/simons/archive/tags/Availability/default.aspx">Availability</category><category domain="http://sqlblogcasts.com/blogs/simons/archive/tags/Backup+and+Recovery/default.aspx">Backup and Recovery</category><category domain="http://sqlblogcasts.com/blogs/simons/archive/tags/SQL+Engine/default.aspx">SQL Engine</category><category domain="http://sqlblogcasts.com/blogs/simons/archive/tags/The+Truth/default.aspx">The Truth</category></item><item><title>SQL Server The Truth - Instant file initialisation</title><link>http://sqlblogcasts.com/blogs/simons/archive/2007/07/20/SQL-Server-The-Truth---Instant-file-initialisation.aspx</link><pubDate>Fri, 20 Jul 2007 08:26:15 GMT</pubDate><guid isPermaLink="false">fa8c4e8e-46a3-4193-8264-2c1a9cb3475d:2104</guid><dc:creator>simonsabin</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://sqlblogcasts.com/blogs/simons/rsscomments.aspx?PostID=2104</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://sqlblogcasts.com/blogs/simons/commentapi.aspx?PostID=2104</wfw:comment><comments>http://sqlblogcasts.com/blogs/simons/archive/2007/07/20/SQL-Server-The-Truth---Instant-file-initialisation.aspx#comments</comments><description>
&lt;p&gt;This is the first in a series of posts that are aimed at 
dispelling myths and beliefs as to how SQL Server operates. I have interviewed 
too many people and have been in too many sessions where statements are made as 
though they are fact when in reality they are not. Often the reason is due to a 
change in behaviour between versions or a mis-interpretation of some 
information.&lt;/p&gt;
&lt;p&gt;The first is a very new one and relates to a feature in SQL Server 2005, 
Instant File Initialization.&lt;/p&gt;
&lt;p&gt;What this feature does is allow SQL Server to create a file with the right 
size but not to make it zero it out, i.e. zero all the bytes in the file. The OS 
just allocates the disk space but the contents of the file is actually what is 
still on the disk, its not changed.&lt;/p&gt;
&lt;p&gt;Firstly it is available in ALL editions including express. This is easily 
demonstrated by creating a database with a very small log and a huge data file. 
It should happen within seconds indicating that your service account has the 
correct permissions.&lt;/p&gt;
&lt;p&gt;Secondly&amp;nbsp;it DOES NOT apply to log files, these have to be zeroed. This 
is covered by most people, but some forget to explicitly state that Log files 
are excluded from instant file initialization.&lt;/p&gt;
&lt;p&gt;This is one of the best discussions on instant file initialisation &lt;a href="http://www.microsoft.com/technet/prodtechnol/sql/2005/physdbstor.mspx"&gt;http://www.microsoft.com/technet/prodtechnol/sql/2005/physdbstor.mspx&lt;/a&gt;&lt;/p&gt;
&lt;br /&gt;
&lt;script type="text/javascript" src="http://sqlblogcasts.com/sitefiles/1000/Social_Buttons.js"&gt;&lt;/script&gt;
&lt;hr /&gt;
-
&lt;script type="text/javascript" src="http://sqlblogcasts.com/sitefiles/1000/google_rss.js"&gt;
&lt;/script&gt;
&lt;script type="text/javascript"&gt;var height=90;var width=720;&lt;/script&gt;
&lt;script src="http://www.sqlknowhow.com/scripts/Banner.js" type="text/javascript"&gt;
&lt;/script&gt;
 &lt;img src="http://sqlblogcasts.com/aggbug.aspx?PostID=2104" width="1" height="1"&gt;</description><category domain="http://sqlblogcasts.com/blogs/simons/archive/tags/SQL+Server+2005/default.aspx">SQL Server 2005</category><category domain="http://sqlblogcasts.com/blogs/simons/archive/tags/Backup+and+Recovery/default.aspx">Backup and Recovery</category><category domain="http://sqlblogcasts.com/blogs/simons/archive/tags/The+Truth/default.aspx">The Truth</category></item><item><title>Service Broker - Asynchronous/Multi threaded File Upload</title><link>http://sqlblogcasts.com/blogs/simons/archive/2007/06/07/Service-Broker---Asynchronous-Multi-threaded-File-Upload.aspx</link><pubDate>Thu, 07 Jun 2007 15:52:36 GMT</pubDate><guid isPermaLink="false">fa8c4e8e-46a3-4193-8264-2c1a9cb3475d:1886</guid><dc:creator>simonsabin</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://sqlblogcasts.com/blogs/simons/rsscomments.aspx?PostID=1886</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://sqlblogcasts.com/blogs/simons/commentapi.aspx?PostID=1886</wfw:comment><comments>http://sqlblogcasts.com/blogs/simons/archive/2007/06/07/Service-Broker---Asynchronous-Multi-threaded-File-Upload.aspx#comments</comments><description>
&lt;p&gt;The code and slides from my presentation from today 
(&lt;strong&gt;&lt;font color="#659b00"&gt;Service Broker - Asynchronous processing in SQL 
&lt;/font&gt;&lt;/strong&gt;)are now online.&lt;/p&gt;
&lt;p&gt;The code is on codplex &lt;a href="http://www.codeplex.com/MultiThreadedSQL"&gt;http://www.codeplex.com/MultiThreadedSQL&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;The slides are on &lt;a href="http://sqlblogcasts.com/files/folders/servicebrokerpresentations/entry1885.aspx"&gt;http://sqlblogcasts.com/files/folders/servicebrokerpresentations/entry1885.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;and a video of the service broker restaring after I stopped SQL Server is 
here &lt;a href="http://sqlblogcasts.com/files/folders/servicebrokerdemos/entry1884.aspx"&gt;http://sqlblogcasts.com/files/folders/servicebrokerdemos/entry1884.aspx&lt;/a&gt;&lt;/p&gt;
&lt;br /&gt;
&lt;script type="text/javascript" src="http://sqlblogcasts.com/sitefiles/1000/Social_Buttons.js"&gt;&lt;/script&gt;
&lt;hr /&gt;
-
&lt;script type="text/javascript" src="http://sqlblogcasts.com/sitefiles/1000/google_rss.js"&gt;
&lt;/script&gt;
&lt;script type="text/javascript"&gt;var height=90;var width=720;&lt;/script&gt;
&lt;script src="http://www.sqlknowhow.com/scripts/Banner.js" type="text/javascript"&gt;
&lt;/script&gt;
 &lt;img src="http://sqlblogcasts.com/aggbug.aspx?PostID=1886" width="1" height="1"&gt;</description><category domain="http://sqlblogcasts.com/blogs/simons/archive/tags/SQL+Server+2005/default.aspx">SQL Server 2005</category><category domain="http://sqlblogcasts.com/blogs/simons/archive/tags/Tips+and+Tricks/default.aspx">Tips and Tricks</category><category domain="http://sqlblogcasts.com/blogs/simons/archive/tags/Backup+and+Recovery/default.aspx">Backup and Recovery</category><category domain="http://sqlblogcasts.com/blogs/simons/archive/tags/Service+Broker/default.aspx">Service Broker</category><category domain="http://sqlblogcasts.com/blogs/simons/archive/tags/Usergroup/default.aspx">Usergroup</category><category domain="http://sqlblogcasts.com/blogs/simons/archive/tags/Demos/default.aspx">Demos</category><category domain="http://sqlblogcasts.com/blogs/simons/archive/tags/Downloads/default.aspx">Downloads</category></item><item><title>Service Broker - Reliable processing</title><link>http://sqlblogcasts.com/blogs/simons/archive/2007/06/07/Service-Broker---Reliable-processing.aspx</link><pubDate>Thu, 07 Jun 2007 12:19:38 GMT</pubDate><guid isPermaLink="false">fa8c4e8e-46a3-4193-8264-2c1a9cb3475d:1882</guid><dc:creator>simonsabin</dc:creator><slash:comments>2</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://sqlblogcasts.com/blogs/simons/rsscomments.aspx?PostID=1882</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://sqlblogcasts.com/blogs/simons/commentapi.aspx?PostID=1882</wfw:comment><comments>http://sqlblogcasts.com/blogs/simons/archive/2007/06/07/Service-Broker---Reliable-processing.aspx#comments</comments><description>
&lt;p&gt;I have just finished my presentation on asynchronous 
process/parallel processing using Service Broker at the &lt;a href="http://imtc.firstport.ie/"&gt;Microsoft Technology Conference in Ireland&lt;/a&gt;. I was a bit tentative after deciding last night, 
after a few guinesses and whisky (thanks &lt;a href="http://idunno.org/archive/2007/05/18/irish-microsoft-technology-conference.aspx"&gt;Barry&lt;/a&gt;), to add a new feature to my presentation, 
failure.&lt;/p&gt;
&lt;p&gt;Yep I thought it would be great if I did a demo of how service broker handled 
failure and performed reliably. How can I simulate failure I thought, well the 
best I could come up with at short notice was to shutdown Sql Server with no 
wait whilst service broker was processing.&lt;/p&gt;
&lt;p&gt;Anyone that has done&amp;nbsp;presentations will realise that effectively killing 
SQL Server mid demo is probably not the wisest idea., any way the presentation 
was going well and so I went for it.&lt;/p&gt;
&lt;p&gt;In my demo Service Broker is configure with activation to run an SP process 
the messages and upload the file.&lt;/p&gt;
&lt;p&gt;So I kicked of my process that results in ~180 
messages(files) sitting in the queue to be uploaded. I then showed that Service Broker was processing 
some messages and then shutdown SQL. &lt;/p&gt;
&lt;p&gt;Once shutdown, my app dies because it can&amp;#39;t access the DB.&lt;/p&gt;
&lt;p&gt;I then restart SQL and pray.&lt;/p&gt;
&lt;p&gt;Eventually the databases recover and service brokder starts processing the 
messages again without any intervention.&lt;/p&gt;
&lt;p&gt;Wow it worked. When I tried it last night I was quite shocked that it 
worked.&lt;/p&gt;
&lt;p&gt;A video of this will is available here &lt;a href="http://sqlblogcasts.com/files/folders/servicebrokerdemos/entry1884.aspx"&gt;http://sqlblogcasts.com/files/folders/servicebrokerdemos/entry1884.aspx&lt;/a&gt;       &lt;/p&gt;&lt;br /&gt;
&lt;script type="text/javascript" src="http://sqlblogcasts.com/sitefiles/1000/Social_Buttons.js"&gt;&lt;/script&gt;
&lt;hr /&gt;
-
&lt;script type="text/javascript" src="http://sqlblogcasts.com/sitefiles/1000/google_rss.js"&gt;
&lt;/script&gt;
&lt;script type="text/javascript"&gt;var height=90;var width=720;&lt;/script&gt;
&lt;script src="http://www.sqlknowhow.com/scripts/Banner.js" type="text/javascript"&gt;
&lt;/script&gt;
 &lt;img src="http://sqlblogcasts.com/aggbug.aspx?PostID=1882" width="1" height="1"&gt;</description><category domain="http://sqlblogcasts.com/blogs/simons/archive/tags/SQL+Server+2005/default.aspx">SQL Server 2005</category><category domain="http://sqlblogcasts.com/blogs/simons/archive/tags/Availability/default.aspx">Availability</category><category domain="http://sqlblogcasts.com/blogs/simons/archive/tags/Backup+and+Recovery/default.aspx">Backup and Recovery</category><category domain="http://sqlblogcasts.com/blogs/simons/archive/tags/Service+Broker/default.aspx">Service Broker</category></item><item><title>Restoring and Attaching is a one way street</title><link>http://sqlblogcasts.com/blogs/simons/archive/2007/05/26/Restoring-and-Attaching-is-a-one-way-street.aspx</link><pubDate>Sat, 26 May 2007 21:39:34 GMT</pubDate><guid isPermaLink="false">fa8c4e8e-46a3-4193-8264-2c1a9cb3475d:1838</guid><dc:creator>simonsabin</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://sqlblogcasts.com/blogs/simons/rsscomments.aspx?PostID=1838</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://sqlblogcasts.com/blogs/simons/commentapi.aspx?PostID=1838</wfw:comment><comments>http://sqlblogcasts.com/blogs/simons/archive/2007/05/26/Restoring-and-Attaching-is-a-one-way-street.aspx#comments</comments><description>
&lt;p&gt;Many people often ask how they can us a database in SQL 
2000 that they have attached or restored to SQL2005.&lt;/p&gt;
&lt;p&gt;Unfortunately this is a one way street, once upgraded the only way of using a 
database in a previous version is to copy the schema and data manually. You 
can&amp;#39;t restore or attach a database even if the compatibility has been kept at 
the previous version.&lt;/p&gt;
&lt;p&gt;Paul Randal has sort of blogged about this, also highlighting the fact that 
you can&amp;#39;t even &lt;a href="https://blogs.msdn.com/sqlserverstorageengine/archive/2007/04/26/what-s-the-difference-between-database-version-and-database-compatibility-level.aspx"&gt;restore 
a database to a version with a lower build,&amp;nbsp;so that includes hotfixes and 
service packs&amp;nbsp;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Graham has also raised the question on his blog &lt;a href="http://sqlblogcasts.com/blogs/grahamc/archive/2007/05/21/sql-server-2005-database-back-to-sql-server-2000.aspx"&gt;http://sqlblogcasts.com/blogs/grahamc/archive/2007/05/21/sql-server-2005-database-back-to-sql-server-2000.aspx&lt;/a&gt;&lt;/p&gt;
&lt;br /&gt;
&lt;script type="text/javascript" src="http://sqlblogcasts.com/sitefiles/1000/Social_Buttons.js"&gt;&lt;/script&gt;
&lt;hr /&gt;
-
&lt;script type="text/javascript" src="http://sqlblogcasts.com/sitefiles/1000/google_rss.js"&gt;
&lt;/script&gt;
&lt;script type="text/javascript"&gt;var height=90;var width=720;&lt;/script&gt;
&lt;script src="http://www.sqlknowhow.com/scripts/Banner.js" type="text/javascript"&gt;
&lt;/script&gt;
 &lt;img src="http://sqlblogcasts.com/aggbug.aspx?PostID=1838" width="1" height="1"&gt;</description><category domain="http://sqlblogcasts.com/blogs/simons/archive/tags/SQL+Server+2005/default.aspx">SQL Server 2005</category><category domain="http://sqlblogcasts.com/blogs/simons/archive/tags/Availability/default.aspx">Availability</category><category domain="http://sqlblogcasts.com/blogs/simons/archive/tags/Backup+and+Recovery/default.aspx">Backup and Recovery</category></item><item><title>Earthquake in Seattle</title><link>http://sqlblogcasts.com/blogs/simons/archive/2006/11/15/Earthquake-in-Seattle.aspx</link><pubDate>Wed, 15 Nov 2006 00:44:58 GMT</pubDate><guid isPermaLink="false">fa8c4e8e-46a3-4193-8264-2c1a9cb3475d:1324</guid><dc:creator>simonsabin</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://sqlblogcasts.com/blogs/simons/rsscomments.aspx?PostID=1324</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://sqlblogcasts.com/blogs/simons/commentapi.aspx?PostID=1324</wfw:comment><comments>http://sqlblogcasts.com/blogs/simons/archive/2006/11/15/Earthquake-in-Seattle.aspx#comments</comments><description> 
&lt;p&gt;I was in the lift today and was amused when I saw one of the lights along side the normal lift lights.&lt;/p&gt;
&lt;p align="center"&gt;&lt;img style="WIDTH:204px;HEIGHT:302px;" height="302" alt="http://sqlblogcasts.com/Photos/blogimages/images/1323/480x480.aspx" src="http://sqlblogcasts.com/Photos/blogimages/images/1323/480x480.aspx" width="260" /&gt;&lt;/p&gt;
&lt;p align="left"&gt;Surely you would know if there&amp;#39;s and eartquake going on. You don&amp;#39;t need a little flashing light to tell you.&lt;/p&gt;&lt;br /&gt;
&lt;script type="text/javascript" src="http://sqlblogcasts.com/sitefiles/1000/Social_Buttons.js"&gt;&lt;/script&gt;
&lt;hr /&gt;
-
&lt;script type="text/javascript" src="http://sqlblogcasts.com/sitefiles/1000/google_rss.js"&gt;
&lt;/script&gt;
&lt;script type="text/javascript"&gt;var height=90;var width=720;&lt;/script&gt;
&lt;script src="http://www.sqlknowhow.com/scripts/Banner.js" type="text/javascript"&gt;
&lt;/script&gt;
 &lt;img src="http://sqlblogcasts.com/aggbug.aspx?PostID=1324" width="1" height="1"&gt;</description><category domain="http://sqlblogcasts.com/blogs/simons/archive/tags/Backup+and+Recovery/default.aspx">Backup and Recovery</category><category domain="http://sqlblogcasts.com/blogs/simons/archive/tags/Disaster+Recovery/default.aspx">Disaster Recovery</category></item><item><title>Native Command Substitution is not supported</title><link>http://sqlblogcasts.com/blogs/simons/archive/2006/10/05/Native-Command-Substitution-is-not-supported.aspx</link><pubDate>Thu, 05 Oct 2006 14:29:08 GMT</pubDate><guid isPermaLink="false">fa8c4e8e-46a3-4193-8264-2c1a9cb3475d:1175</guid><dc:creator>simonsabin</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://sqlblogcasts.com/blogs/simons/rsscomments.aspx?PostID=1175</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://sqlblogcasts.com/blogs/simons/commentapi.aspx?PostID=1175</wfw:comment><comments>http://sqlblogcasts.com/blogs/simons/archive/2006/10/05/Native-Command-Substitution-is-not-supported.aspx#comments</comments><description>&lt;p&gt;In response to a recent support incident we raised we got a response about use of detours in SQL Server.&lt;/p&gt;
&lt;p&gt;A detour is a means by which you can change what SQL Server does. This is used by Litespeed to change native backup commands into Litespeed backup commands. Whilst I always thought this a neat idea I always felt it a bit risky. If I want to do a litespeed backup I can easily write the code or use the UI to do so.&lt;/p&gt;
&lt;p&gt;So it seems my caution has proved correct. &lt;/p&gt;
&lt;p&gt;&lt;a href="http://support.microsoft.com/kb/920925/en-us"&gt;Use of detours by a third-party solution is not supported with SQL Server&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;
&lt;script type="text/javascript" src="http://sqlblogcasts.com/sitefiles/1000/Social_Buttons.js"&gt;&lt;/script&gt;
&lt;hr /&gt;
-
&lt;script type="text/javascript" src="http://sqlblogcasts.com/sitefiles/1000/google_rss.js"&gt;
&lt;/script&gt;
&lt;script type="text/javascript"&gt;var height=90;var width=720;&lt;/script&gt;
&lt;script src="http://www.sqlknowhow.com/scripts/Banner.js" type="text/javascript"&gt;
&lt;/script&gt;
 &lt;img src="http://sqlblogcasts.com/aggbug.aspx?PostID=1175" width="1" height="1"&gt;</description><category domain="http://sqlblogcasts.com/blogs/simons/archive/tags/SQL/default.aspx">SQL</category><category domain="http://sqlblogcasts.com/blogs/simons/archive/tags/SQL+Server+2005/default.aspx">SQL Server 2005</category><category domain="http://sqlblogcasts.com/blogs/simons/archive/tags/Tips+and+Tricks/default.aspx">Tips and Tricks</category><category domain="http://sqlblogcasts.com/blogs/simons/archive/tags/Availability/default.aspx">Availability</category><category domain="http://sqlblogcasts.com/blogs/simons/archive/tags/Backup+and+Recovery/default.aspx">Backup and Recovery</category><category domain="http://sqlblogcasts.com/blogs/simons/archive/tags/Operations/default.aspx">Operations</category></item><item><title>Restoring your SQL Server - Chicken and the Egg</title><link>http://sqlblogcasts.com/blogs/simons/archive/2006/09/27/Restoring-your-SQL-Server---Chicken-and-the-Egg.aspx</link><pubDate>Wed, 27 Sep 2006 07:27:04 GMT</pubDate><guid isPermaLink="false">fa8c4e8e-46a3-4193-8264-2c1a9cb3475d:1129</guid><dc:creator>simonsabin</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://sqlblogcasts.com/blogs/simons/rsscomments.aspx?PostID=1129</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://sqlblogcasts.com/blogs/simons/commentapi.aspx?PostID=1129</wfw:comment><comments>http://sqlblogcasts.com/blogs/simons/archive/2006/09/27/Restoring-your-SQL-Server---Chicken-and-the-Egg.aspx#comments</comments><description>&lt;p&gt;Have you tested your DR plan? Do you have one? &lt;/p&gt;
&lt;p&gt;Well if you do have one then unless you test it its worthless. There are many nuances that occur in a recovery process. The Storage Engine Team have posted about one suhc nuance. &lt;/p&gt;
&lt;p&gt;The customer was testing their DR process which included the complete restore of the SQL Server (OS and binaries included). However&amp;nbsp;SQL Server &amp;nbsp;wouldn&amp;#39;t start after the restore. For some reason master was corrupt. So the next step was to restore master from a backup. However to restore master SQL Server needs to be running,&amp;nbsp;and that needs master which is corrupt and you are trying to restore. A bit of a no win situation.&lt;/p&gt;
&lt;p&gt;Read how you get round this on the &lt;a href="http://blogs.msdn.com/sqlserverstorageengine/archive/2006/09/26/772550.aspx"&gt;Storage engine blog entry on restoring master when master is corrupt&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;
&lt;script type="text/javascript" src="http://sqlblogcasts.com/sitefiles/1000/Social_Buttons.js"&gt;&lt;/script&gt;
&lt;hr /&gt;
-
&lt;script type="text/javascript" src="http://sqlblogcasts.com/sitefiles/1000/google_rss.js"&gt;
&lt;/script&gt;
&lt;script type="text/javascript"&gt;var height=90;var width=720;&lt;/script&gt;
&lt;script src="http://www.sqlknowhow.com/scripts/Banner.js" type="text/javascript"&gt;
&lt;/script&gt;
 &lt;img src="http://sqlblogcasts.com/aggbug.aspx?PostID=1129" width="1" height="1"&gt;</description><category domain="http://sqlblogcasts.com/blogs/simons/archive/tags/Tips+and+Tricks/default.aspx">Tips and Tricks</category><category domain="http://sqlblogcasts.com/blogs/simons/archive/tags/Backup+and+Recovery/default.aspx">Backup and Recovery</category><category domain="http://sqlblogcasts.com/blogs/simons/archive/tags/Operations/default.aspx">Operations</category></item></channel></rss>