Scripts

Technical Article

Primary Keys which are not Clustered Indexes in a database

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.

4.2 (5)

You rated this post out of 5. Change rating

2013-09-18 (first published: )

1,913 reads

Blogs

SQL Training: Black Friday Deals Up to 75% Off

By

This Black Week, don't just get a discount—get ahead! Whether you're a total newbie...

When is the perfect moment to build a data strategy in a company?

By

The post When is the perfect moment to build a data strategy in a...

How to Run Databases on Kubernetes: An 8-Step Guide

By

In this step-by-step tutorial, learn how to run MySQL, PostgreSQL, MongoDB, and other stateful...

Read the latest Blogs

Forums

Learn Microsoft Fabric: A practical guide to performing data analytics in the era of artificial intelligence

By Site Owners

Comments posted to this topic are about the item Learn Microsoft Fabric: A practical...

Learn Microsoft Fabric: A practical guide to performing data analytics in the era of artificial intelligence

By Steve Jones - SSC Editor

Comments posted to this topic are about the item Learn Microsoft Fabric: A practical...

Rebuild Index Job on a Large DB

By cooldude001

We have a db close to 3 tb and rebuilding/ reorganizing indexes weekly is...

Visit the forum

Question of the Day

Renaming a Database

If I want to rename the OldSales database to ArchiveSales, how can I do this? (choose 2)  

See possible answers