Advertisement
krot

sql server удалить уникальный ключ

Mar 7th, 2018
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
T-SQL 0.13 KB | None | 0 0
  1. SELECT
  2.     'ALTER TABLE ' + OBJECT_NAME(so.parent_obj) + ' DROP CONSTRAINT ' + so.name
  3. FROM sysobjects so
  4. WHERE so.xtype = 'UQ'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement