Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- IF EXISTS (SELECT name from sys.indexes
- WHERE name = N'index_name')
- DROP INDEX index_name ON schema.tableName;
- GO
- CREATE UNIQUE INDEX index_name
- ON schema.tableName (colName);
- GO
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement