Home » Sql Server Drop Primary Key

Sql Server Drop Primary Key

by Online Tutorials Library

Drop Primary Key

ALTER TABLE statement is used to drop a primary key in SQL Server.

Syntax:

Example:

Let’s drop a primary key using the ALTER TABLE statement in SQL Server. Here we take “cricketers2” table which has “cricketer_id” as a primary key and “cricketers2_pk” as constraint name.

Output:

SQL Drop primary 1

Next TopicSS Foreign Keys

You may also like