-1
私はどのように変更/表示されているconstraint_nameを編集するのですか?sqlのdefault constraint_nameを変更するには?
私はどのように変更/表示されているconstraint_nameを編集するのですか?sqlのdefault constraint_nameを変更するには?
リネームする必要がある制約はDF__oldername__c1__7C8480AE
です。今度は、制約を削除して、新しい制約を追加する必要があります。単純に制約を直接変更する方法がないからです。これを使用して:
ALTER TABLE Tablename DROP CONSTRAINT DF__oldername__c1__7C8480AE;
ALTER TABLE Tablename ADD CONSTRAINT DF__newname__c1
DEFAULT NEWSEQUENTIALID() FOR c1;
とされています。
[SQL Serverで制約の名前を変更しますか?](http://stackoverflow.com/questions/8712875/sql-server-rename-a-constraint) –