<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.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>Engine Watch</title><link>http://blogs.msdn.com/weix/default.aspx</link><description>database engine technology and SQL Server</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>White paper Link: trouble shooting SQL Server 2005 performance problems</title><link>http://blogs.msdn.com/weix/archive/2006/03/23/559404.aspx</link><pubDate>Fri, 24 Mar 2006 02:10:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:559404</guid><dc:creator>weix</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/weix/comments/559404.aspx</comments><wfw:commentRss>http://blogs.msdn.com/weix/commentrss.aspx?PostID=559404</wfw:commentRss><description>&lt;P&gt;a must read: &lt;A href="http://www.microsoft.com/technet/prodtechnol/sql/2005/tsprfprb.mspx"&gt;http://www.microsoft.com/technet/prodtechnol/sql/2005/tsprfprb.mspx&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=559404" width="1" height="1"&gt;</description></item><item><title>2006 greetings </title><link>http://blogs.msdn.com/weix/archive/2006/01/23/516132.aspx</link><pubDate>Mon, 23 Jan 2006 11:11:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:516132</guid><dc:creator>weix</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/weix/comments/516132.aspx</comments><wfw:commentRss>http://blogs.msdn.com/weix/commentrss.aspx?PostID=516132</wfw:commentRss><description>&lt;P&gt;This is my first blog posting for 2006. I went to china for a almost whole month at the end of 2005. I went to several cities. I presented at the SQL 2005 Launch Event in china. I had a great time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=516132" width="1" height="1"&gt;</description></item><item><title>Is lock grant in SQL Server First-In-First-Out (FIFO)?</title><link>http://blogs.msdn.com/weix/archive/2005/11/22/496000.aspx</link><pubDate>Wed, 23 Nov 2005 01:41:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:496000</guid><dc:creator>weix</dc:creator><slash:comments>8</slash:comments><comments>http://blogs.msdn.com/weix/comments/496000.aspx</comments><wfw:commentRss>http://blogs.msdn.com/weix/commentrss.aspx?PostID=496000</wfw:commentRss><description>&lt;P&gt;Many people thought that lock grant in SQL Server was FIFO to avoid starvation problems.&amp;nbsp; Think about it. If someone is able to get in front of you in a super market checkout queue, you may never be able to get out of the store.&lt;/P&gt;
&lt;P&gt;My friend Santtu who is the lock manager expert told me that SQL Server is actually smarter than that. FIFO has one disadvantage. It does not always allow the maximum concurrency. The lock manager in SQL Server 2005 allows as much concurrency as possible without starvation. Here is an example:&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial color=navy size=2&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"&gt;Transaction T1 has an IX lock on table Foo.&amp;nbsp; Transaction T2 runs a query on Foo and specifies the TABLOCK hint.&amp;nbsp; T2 becomes blocked behind T1 because its S lock is not compatible with T1’s IX.&amp;nbsp; Transaction T3 runs a select query on Foo without any hints – its IS request is granted immediately (i.e. before T2’s S request) because IS conflicts with neither IX nor S.&amp;nbsp; However if transaction T4 attempts to run an update statement on Foo, it will become blocked behind T2 because its IX request is not compatible with T2’s S requests and because T2 made its request first, it has priority.&amp;nbsp; &lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;FONT face=Arial color=navy size=2&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"&gt;In SQL Server 2000, both T3 and T4 would have been blocked behind T2’s request.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=496000" width="1" height="1"&gt;</description></item><item><title>SQL 2005 shipped (11/7/2005)</title><link>http://blogs.msdn.com/weix/archive/2005/11/14/492847.aspx</link><pubDate>Tue, 15 Nov 2005 10:17:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:492847</guid><dc:creator>weix</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/weix/comments/492847.aspx</comments><wfw:commentRss>http://blogs.msdn.com/weix/commentrss.aspx?PostID=492847</wfw:commentRss><description>&lt;P&gt;What an exciting five years. Areas I personally contributed: snapshot isolation and RCSI; page allocation and free space management; tempdb and a few other smaller things.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=492847" width="1" height="1"&gt;</description></item><item><title>Link: SQL Server 2000 Build Chart </title><link>http://blogs.msdn.com/weix/archive/2005/10/17/481895.aspx</link><pubDate>Mon, 17 Oct 2005 20:38:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:481895</guid><dc:creator>weix</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/weix/comments/481895.aspx</comments><wfw:commentRss>http://blogs.msdn.com/weix/commentrss.aspx?PostID=481895</wfw:commentRss><description>&lt;P&gt;This could be pretty useful: a build chart lists all of the known KB articles, hotfixes and other builds of SQL Server 2000 that have been released:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.aspfaq.com/sql2000Builds.asp"&gt;http://www.aspfaq.com/sql2000Builds.asp&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=481895" width="1" height="1"&gt;</description></item><item><title>introducing the SQLCAT team blog</title><link>http://blogs.msdn.com/weix/archive/2005/10/12/480449.aspx</link><pubDate>Thu, 13 Oct 2005 09:18:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:480449</guid><dc:creator>weix</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/weix/comments/480449.aspx</comments><wfw:commentRss>http://blogs.msdn.com/weix/commentrss.aspx?PostID=480449</wfw:commentRss><description>&lt;P&gt;These guys works with the largest SQL Server databases:&lt;/P&gt;
&lt;P&gt;&lt;a href="http://blogs.msdn.com/sqlcat/"&gt;http://blogs.msdn.com/sqlcat/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=480449" width="1" height="1"&gt;</description></item><item><title>[SQL Server 2005] TEMPDB optimization</title><link>http://blogs.msdn.com/weix/archive/2005/09/13/464907.aspx</link><pubDate>Tue, 13 Sep 2005 21:12:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:464907</guid><dc:creator>weix</dc:creator><slash:comments>3</slash:comments><comments>http://blogs.msdn.com/weix/comments/464907.aspx</comments><wfw:commentRss>http://blogs.msdn.com/weix/commentrss.aspx?PostID=464907</wfw:commentRss><description>&lt;P class=MsoNormal&gt;&lt;FONT face=Arial color=navy size=2&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"&gt;In SQL 2005 we have done quite a bit of internal improvements in tempdb scalability. These include:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;UL style="MARGIN-TOP: 0in" type=disc&gt;
&lt;LI class=MsoNormal style="COLOR: navy"&gt;&lt;FONT face=Arial color=navy size=2&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;Caching of IAM and first data page for temp table and table variables. &lt;/SPAN&gt;&lt;/FONT&gt;
&lt;LI class=MsoNormal style="COLOR: navy"&gt;&lt;FONT face=Arial color=navy size=2&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;Improved allocation page latching protocol so that we use UP latch less frequently.&lt;/SPAN&gt;&lt;/FONT&gt; 
&lt;LI class=MsoNormal style="COLOR: navy"&gt;&lt;FONT face=Arial color=navy size=2&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;Reduced logging overhead for tempdb so that we consume less IO bandwidth in tempdb log file.&lt;/SPAN&gt;&lt;/FONT&gt; 
&lt;LI class=MsoNormal style="COLOR: navy"&gt;&lt;FONT face=Arial color=navy size=2&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;More efficient allocation algorithm for mixed pages in tempdb.&lt;/SPAN&gt;&lt;/FONT&gt; &lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;&lt;FONT face=Arial color=navy size=2&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"&gt;There should be less need of implementing the trace flag 1118. The TF is still there in case you need it. &lt;FONT face=Arial color=navy size=2&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face=Arial color=navy size=2&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"&gt;&lt;FONT face=Arial color=navy size=2&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Arial color=navy size=2&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face=Arial color=navy size=2&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"&gt;We recommend the following if you see latch contention on tempdb allocation or system catalog pages:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN-LEFT: 1in; TEXT-INDENT: -0.25in"&gt;&lt;FONT face=Arial color=navy size=2&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"&gt;Avoid auto grow. Pre-allocate space for tempdb files.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN-LEFT: 1in; TEXT-INDENT: -0.25in"&gt;&lt;FONT face=Arial color=navy size=2&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"&gt;Make sure your temp tables are cached ( &lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana; mso-bidi-font-weight: bold"&gt;SQLServer:General Statistics&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana"&gt; &lt;SPAN style="mso-bidi-font-weight: bold"&gt;Temp Tables Creation Rate)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN-LEFT: 1in; TEXT-INDENT: -0.25in"&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN-LEFT: 1in; TEXT-INDENT: -0.25in"&gt;&lt;FONT face=Arial color=navy size=2&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"&gt;Make as many tempdb files as you have CPU's (accounting for any affinity mask settings) &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN-LEFT: 1in; TEXT-INDENT: -0.25in"&gt;&lt;FONT face=Arial color=navy size=2&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"&gt;File sizes of equal amounts&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;FONT face=Arial color=navy size=2&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"&gt;
&lt;P class=MsoNormal style="MARGIN-LEFT: 0.5in"&gt;&lt;FONT face="Times New Roman" size=3&gt;&lt;SPAN style="FONT-SIZE: 12pt"&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=464907" width="1" height="1"&gt;</description></item><item><title>[SQL 7.0] capacity planning tips</title><link>http://blogs.msdn.com/weix/archive/2005/09/09/462832.aspx</link><pubDate>Fri, 09 Sep 2005 11:05:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:462832</guid><dc:creator>weix</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/weix/comments/462832.aspx</comments><wfw:commentRss>http://blogs.msdn.com/weix/commentrss.aspx?PostID=462832</wfw:commentRss><description>&lt;P&gt;This is really old, but some tips are still potentially useful:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.microsoft.com/technet/prodtechnol/sql/70/tips/storagen.mspx"&gt;http://www.microsoft.com/technet/prodtechnol/sql/70/tips/storagen.mspx&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=462832" width="1" height="1"&gt;</description></item><item><title>SQL 2000: stored proc recompile</title><link>http://blogs.msdn.com/weix/archive/2005/09/08/462784.aspx</link><pubDate>Fri, 09 Sep 2005 07:28:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:462784</guid><dc:creator>weix</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/weix/comments/462784.aspx</comments><wfw:commentRss>http://blogs.msdn.com/weix/commentrss.aspx?PostID=462784</wfw:commentRss><description>&lt;P&gt;Old article but still very useful:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.microsoft.com/default.aspx?scid=kb;en-us;243586"&gt;http://support.microsoft.com/default.aspx?scid=kb;en-us;243586&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=462784" width="1" height="1"&gt;</description></item><item><title>SQL 2000: what to do if tempdb grows to be very big</title><link>http://blogs.msdn.com/weix/archive/2005/09/08/462777.aspx</link><pubDate>Fri, 09 Sep 2005 06:59:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:462777</guid><dc:creator>weix</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/weix/comments/462777.aspx</comments><wfw:commentRss>http://blogs.msdn.com/weix/commentrss.aspx?PostID=462777</wfw:commentRss><description>&lt;P&gt;Unless your workload changed significantly, shrink file is not going to help you because tempdb will just grow back if a query needs that amount of free space. So a better way is to identify the query and try to optimize that, maybe by adding an index. The query that needs a lot of space in tempdb usually is a long running query. So you could start from the longest running queries. If you see a spool, or sort, or hash join in the query plan, that could be an indication of tempdb usage.&lt;BR&gt;&lt;BR&gt;To prevent tempdb from consuming too much space on your disk, you could set up a max size for tempdb file. However, if you do this, make sure it is large enough. Otherwise your query may fail if it could not get the needed space.&lt;/P&gt;
&lt;P&gt;On SQL 2005 there are better ways. I will post something later.&lt;BR&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=462777" width="1" height="1"&gt;</description></item><item><title>SQL 2005: TSQL enhancements</title><link>http://blogs.msdn.com/weix/archive/2005/09/02/460426.aspx</link><pubDate>Sat, 03 Sep 2005 07:58:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:460426</guid><dc:creator>weix</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/weix/comments/460426.aspx</comments><wfw:commentRss>http://blogs.msdn.com/weix/commentrss.aspx?PostID=460426</wfw:commentRss><description>&lt;P&gt;Click the following link to learn things like: TOP, RANK, ROW_NUMBER, PIVOT, Recursion...&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.awprofessional.com/articles/article.asp?p=327394&amp;amp;seqNum=7&amp;amp;rl=1"&gt;http://www.awprofessional.com/articles/article.asp?p=327394&amp;amp;seqNum=7&amp;amp;rl=1&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=460426" width="1" height="1"&gt;</description></item><item><title>[sql 2005] Q: How do we verify page checksum in a database to make sure I have no hardware problem?</title><link>http://blogs.msdn.com/weix/archive/2005/08/24/456050.aspx</link><pubDate>Thu, 25 Aug 2005 07:39:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:456050</guid><dc:creator>weix</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/weix/comments/456050.aspx</comments><wfw:commentRss>http://blogs.msdn.com/weix/commentrss.aspx?PostID=456050</wfw:commentRss><description>&lt;P class=MsoNormal style="TEXT-JUSTIFY: inter-ideograph; MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify; mso-pagination: none; mso-layout-grid-align: none"&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="TEXT-JUSTIFY: inter-ideograph; MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify; mso-pagination: none; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial; mso-font-kerning: 1.0pt"&gt;DBCC CHECKDB will do just what you want.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;The PHYSICAL_ONLY option is probably the fastest way to get the checksums validated.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="TEXT-JUSTIFY: inter-ideograph; MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify; mso-pagination: none; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial; mso-font-kerning: 1.0pt"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=456050" width="1" height="1"&gt;</description></item><item><title>[SQL 2005] Q: How to find out how much space is used in database ?</title><link>http://blogs.msdn.com/weix/archive/2005/08/24/456048.aspx</link><pubDate>Thu, 25 Aug 2005 07:35:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:456048</guid><dc:creator>weix</dc:creator><slash:comments>2</slash:comments><comments>http://blogs.msdn.com/weix/comments/456048.aspx</comments><wfw:commentRss>http://blogs.msdn.com/weix/commentrss.aspx?PostID=456048</wfw:commentRss><description>&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;Somebody asked me this question. So here it is:&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;SQL 2005 still supports the following three ways to report data and log space usage for a database:&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DBCC SQLPERF ( LOGSPACE )&amp;nbsp; can tell you the log size and used size.&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sp_spaceused&amp;nbsp; for space used/reserved in data files, not for log files.&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Perfmon.exe to view the database size and log size:&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; SQL Server: Databases Object&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Data File(s) Size (KB)&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Log File(s) Size (KB)&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Log File(s) Used Size (KB)&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;In addition, SQL 2005 introduces the following two system views which can give you more information about space used by a table. These are the building blocks for space usage information that we expose via various tools.&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sys.allocation_units &lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sys.dm_db_index_physical_stats&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;Please refer to BOL for their definition. Please note that there is some slight difference between sys.dm_db_index_physical_stats and sys.allocation_units. &lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;The summary page in Management studio reports the&amp;nbsp;space usage in data files. it should be the same as sp_spaceused. &lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=456048" width="1" height="1"&gt;</description></item><item><title>SQL2005 CLR: two white papers </title><link>http://blogs.msdn.com/weix/archive/2005/08/16/452300.aspx</link><pubDate>Tue, 16 Aug 2005 21:48:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:452300</guid><dc:creator>weix</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/weix/comments/452300.aspx</comments><wfw:commentRss>http://blogs.msdn.com/weix/commentrss.aspx?PostID=452300</wfw:commentRss><description>&lt;P&gt;DBA focus:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.sqlskills.com/resources/Whitepapers/SQL%20Server%20DBA%20Guide%20to%20SQLCLR.htm"&gt;http://www.sqlskills.com/resources/Whitepapers/SQL%20Server%20DBA%20Guide%20to%20SQLCLR.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Developer focus:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnsql90/html/sqlclrguidance.asp"&gt;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnsql90/html/sqlclrguidance.asp&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=452300" width="1" height="1"&gt;</description></item><item><title>SkyServer based on SQL Server </title><link>http://blogs.msdn.com/weix/archive/2005/08/14/451684.aspx</link><pubDate>Mon, 15 Aug 2005 09:48:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:451684</guid><dc:creator>weix</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/weix/comments/451684.aspx</comments><wfw:commentRss>http://blogs.msdn.com/weix/commentrss.aspx?PostID=451684</wfw:commentRss><description>&lt;P&gt;This is a quite old paper (Jan 02):&lt;/P&gt;
&lt;P&gt;&lt;A href="http://research.microsoft.com/~gray/Papers/MSR_TR_O2_01_20_queries.pdf"&gt;http://research.microsoft.com/~gray/Papers/MSR_TR_O2_01_20_queries.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I was reading some news on astronomy which mentioned the SDSS. So I looked up this paper for some more detail. I thought you might like the way this paper approached physical database design and performance analysis, which is my interest.&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=451684" width="1" height="1"&gt;</description></item></channel></rss>