<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Dbcc Showcontig on SQL Server Scripts</title><link>https://www.sqlserver70.com/tags/dbcc-showcontig/</link><description>Recent content in Dbcc Showcontig on SQL Server Scripts</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>SQLServer70.com</copyright><lastBuildDate>Fri, 01 Aug 2025 00:00:00 +0000</lastBuildDate><atom:link href="https://www.sqlserver70.com/tags/dbcc-showcontig/index.xml" rel="self" type="application/rss+xml"/><item><title>Generate DBCC SHOWCONTIG Commands for All SQL Server Tables</title><link>https://www.sqlserver70.com/post/generate-dbcc-showcontig-commands-for-all-user-tables-in-sql-server/</link><pubDate>Fri, 01 Aug 2025 00:00:00 +0000</pubDate><guid>https://www.sqlserver70.com/post/generate-dbcc-showcontig-commands-for-all-user-tables-in-sql-server/</guid><description>
&lt;p&gt;Before &lt;code&gt;sys.dm_db_index_physical_stats&lt;/code&gt; existed, checking fragmentation across a database meant looking up every user table's object ID and running &lt;code&gt;DBCC SHOWCONTIG&lt;/code&gt; against each one individually. This script closes that gap for the &lt;code&gt;sysobjects&lt;/code&gt;-based era of SQL Server administration: it queries &lt;code&gt;sysobjects&lt;/code&gt; for every table of type &lt;code&gt;U&lt;/code&gt;, concatenates a ready-to-run &lt;code&gt;DBCC SHOWCONTIG&lt;/code&gt; command for each one, and returns the full batch sorted alphabetically by table name — turning what would be dozens of hand-typed commands into a single copy-paste result set.&lt;/p&gt;</description></item><item><title>SQL Server Scripts and Commands: DBA Reference All Versions</title><link>https://www.sqlserver70.com/post/sql-server-scripts-database-commands/</link><pubDate>Fri, 01 Aug 2025 00:00:00 +0000</pubDate><guid>https://www.sqlserver70.com/post/sql-server-scripts-database-commands/</guid><description>
&lt;h2 id="sql-server-scripts-and-database-commands-65-70-80-90-100-1050-110-120-130-140-150-160-170"&gt;SQL Server Scripts and Database Commands 6.5, 7.0, 8.0, 9.0, 10.0, 10.50, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0, 17.0&lt;/h2&gt;
&lt;p&gt;The corresponding version numbers: SQL Server 6.5, SQL Server 7.0, SQL Server 2000 (8.0), SQL Server 2005 (9.0), SQL Server 2008 (10.0), SQL Server 2008 R2 (10.50), SQL Server 2012 (11.0), SQL Server 2014 (12.0), SQL Server 2016 (13.0), SQL Server 2017 (14.0), SQL Server 2019 (15.0), SQL Server 2022 (16.0), and SQL Server 2025 (17.0).&lt;/p&gt;</description></item></channel></rss>