krot

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

Mar 7th, 2018
93
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. SELECT
  2.     'ALTER TABLE ' + OBJECT_NAME(so.parent_obj) + ' DROP CONSTRAINT ' + so.name
  3. FROM sysobjects so
  4. WHERE so.xtype = 'UQ'
RAW Paste Data