My scenario..Im using SqlCompactServer Edition .I’m creating table
Create Table SSr( name nvarchar(400),id int unique).I need to alter table and make name as UNIQUE Column and remove unique from existing column. How to Achieve this.
My scenario..Im using SqlCompactServer Edition .I’m creating table Create Table SSr( name nvarchar(400),id int
Share
Use
sp_helpto idenfity the old unique or primary key constraint name. Then drop it by name, before adding your new unique constraint.You can also query the information schema to identify primary key and unique constraints: