Indexing

Technical Article

Update statistics for all tables in any DB

  • Script

Most of the time even after executing dbcc dbreindex script on database you won't see much improvement in application/DB performance.  Thats because dbreindex creates statistics for all tables but it executes sp_updatestats which is like sample statistics. To get the maximum performance we had to execute Update statistics with fullscan on table. This simple will […]

4.75 (8)

You rated this post out of 5. Change rating

2006-12-22 (first published: )

21,110 reads

Technical Article

Quick Fix secondary Indexes ( SQL 2000 )

  • Script

In real world production tuning sometimes a "quick fix" is required. This script will generate index create scripts for any column ending ID which doesn't have an index. It's dirty and its quick but you might just be amazed by the results when run against your database!

You rated this post out of 5. Change rating

2007-07-11 (first published: )

497 reads

Technical Article

List all indexes with keys, description and size

  • Script

This script combines functionality of sp_helpindex and sp_spaceused to list all tables with individual indexes, their keys and description  (sp_spaceused cannot do that) and size in MB per individual index (sp_helpindex cannot do that either). Feel free to use and modify as you see fit. Hope it can help.

5 (9)

You rated this post out of 5. Change rating

2007-07-03 (first published: )

2,652 reads

Technical Article

Script all indexes as CREATE INDEX statements

  • Script

this script will generate CREATE index statements for all indexes in the database;there are already scripts out there that script constraints for primary keys and unique constraints, which automatically create an index behind the scenes. but what about the other indexes?uncomment two statements in order to filter out primary keys and Unique indexes so you […]

4.22 (18)

You rated this post out of 5. Change rating

2006-03-17 (first published: )

30,025 reads

Blogs

Regression Testing: DAX User Defined Functions

By

User Defined Functions is a new feature in PowerBI currently in public preview. There...

The fundamental requirements of a reporting system

By

There are some fundamental boxes that your reporting system must tick. ✅ The figures...

Seeing the Bigger Picture: How A Monitoring Tool Changed My Approach to Estate Management

By

When it comes to managing complex database environments, having the right monitoring solution is...

Read the latest Blogs

Forums

SQL MI Next-gen general purpose tier

By SqlAdmin001

Has anyone used Azure SQL MI on the next-gen general purpose tier, Microsoft documentation...

Create an HTML Report on the Status of SQL Server Agent Jobs

By Nisarg Upadhyay

Comments posted to this topic are about the item Create an HTML Report on...

The Last Good DBCC Run

By Steve Jones - SSC Editor

Comments posted to this topic are about the item The Last Good DBCC Run

Visit the forum

Question of the Day

The Last Good DBCC Run

I want to check when DBCC CHECKDB was last run on my Baseball database. What code should I use?

See possible answers