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.

★ ★ ★ ★ ★ ★ ★ ★ ★ ★

(5)

You rated this post out of 5. Change rating

2013-09-18 (first published: )

1,973 reads

Blogs

Microsoft Ignite Announcements Nov 2026

By

Microsoft shared another large set of announcements at Microsoft Ignite, held November 17–20 in...

What's New in SQL Server for the Developer: SQL Server 2017

By

Part 3 of my What's New in SQL Server for the Developer series. SQL...

Embracing Hardship with Gratitude

By

I once kept a gratitude journal and I still have a task on my...

Read the latest Blogs

Forums

How to Store AI Output in SQL Server: A Practical Data Model

By vgupta

Comments posted to this topic are about the item How to Store AI Output...

Career Advice for Tech

By Steve Jones - SSC Editor

Comments posted to this topic are about the item Career Advice for Tech

Severe Errors

By Steve Jones - SSC Editor

Comments posted to this topic are about the item Severe Errors

Visit the forum

Question of the Day

Severe Errors

Which class of errors are automatically written to the error log?

See possible answers