Home » Sql Server Enable Primary Key

Sql Server Enable Primary Key

by Online Tutorials Library

Enable Primary Key

ALTER INDEX statement is used to enable a primary key in SQL Server database.

Syntax:

Example:

Enable the primary key “customer_id” on the table “customers”.

Output:

SQL Enable primary 1

Now primary key “customer_id” is enabled in table “customers”.

You may also like