drop unique key constraint in sql server code example
Example 1: how to drop a unique constraint in sql
SHOW CREATE TABLE [tableName]
-- Find the constraintID after CONSTRAINT 'constraintID'
ALTER TABLE [tableName] DROP FOREIGN KEY constraintID
Example 2: remove unique key from a table
example: alter table DropIndex drop index BookId ;
Example 3: drop unique key constraint in sql server
/* To Drop Unique Key Constraint*/
ALTER TABLE Table_Name
DROP CONSTRAINT Constraint_Name