SQL Server Index Naming Conventions

Eric Ness picture Eric Ness · May 6, 2010 · Viewed 94.1k times · Source

Is there some standard way to name indexes for SQL Server? It seems that the primary key index is named PK_ and non-clustered indexes typically start with IX_. Are there any naming conventions beyond that for unique indexes?

Answer

JSR picture JSR · May 6, 2010

I use

PK_ for primary keys

UK_ for unique keys

IX_ for non clustered non unique indexes

UX_ for unique indexes

All of my index name take the form of
<index or key type>_<table name>_<column 1>_<column 2>_<column n>