Recently I was asked to find all the Primary keys that are not clustered Indexes in the database. I constructed the below script which will help us to locate the primary keys in the database which are not clustered index.
2013-09-18 (first published: 2013-09-04)
1,950 reads
Sales Report based on a single view
2013-09-17 (first published: 2013-09-06)
1,482 reads
Analyzing dangerous settings in your SQL Server.
2013-09-12 (first published: 2013-02-08)
699 reads
Analyzing dangerous settings in your SQL Server.
2013-09-12 (first published: 2013-02-08)
1,922 reads
Use this script to find all the Foriegn Keys and their details in a database
2013-09-11 (first published: 2013-09-02)
1,435 reads
Script queries backupset & backupmediafamily tables to get latest backup file, then generates script to restore db using backup file and moves files to new locations.
2013-09-10 (first published: 2013-08-28)
1,389 reads
Kill any user processes per database or for the entire server instance.
2013-09-05 (first published: 2013-08-21)
1,533 reads
Found this lovely T-SQL script to display the SELECT statement for any table.
2013-08-22 (first published: 2013-08-06)
3,248 reads
This script shows size information of every database on the instance.
2013-08-21 (first published: 2010-07-26)
5,966 reads
Create views based on table definitions for backwards compatibility when relocating tables to a new database.
2013-08-16 (first published: 2013-07-30)
1,135 reads