SQL 2000 OnlyThis script will create a stored procedure and a table in the master database. Simply run the stored procedure and supply a database name as a parameter. It will do the following:1. Gather/Log DBCC SHOWCONTIG statistics (pre defrag)2. Defragment all user indexes in the database3. Gather/Log DBCC SHOWCONTIG statistics (post defrag)4. DBCC DBREINDEX […]
2010-04-19 (first published: 2003-03-19)
2,226 reads
The Stored Procedure sp_who3 shows ordered processes for the specified database
2010-04-15 (first published: 2010-03-28)
14,524 reads
The Stored Procedure sp_whocpu shows cpu_delta - a metric I introduced to define the real time CPU activity
2010-04-14 (first published: 2010-03-28)
3,565 reads
The Stored Procedure sp_whoio shows DiskIO_delta - a metric I introduced to define the real time I/O activity
2010-04-12 (first published: 2010-03-28)
3,837 reads
This SP reports the status of your heap tables. It gives you an overview of fragmentation, ghost record counts and forwarded record counts. Another reason to create a clustered index!
2010-04-09 (first published: 2010-03-09)
2,164 reads
2010-04-06 (first published: 2010-04-01)
3,933 reads
Run this fun script when you're bored.
2010-04-01 (first published: 2010-03-31)
4,375 reads
With this view you can obtain last failed job steps without using visual interface.
2010-03-30 (first published: 2010-03-19)
2,355 reads
This script will generate scripts to create each database on a sever for attach.
2010-03-29 (first published: 2010-03-24)
1,833 reads
Here is a one more very quick way to find row count for a table.
2010-03-26 (first published: 2010-03-23)
5,370 reads