How do I 'DROP' and unamed relationship/constraint in MS Access with SQL?

后端 未结 4 1826
栀梦
栀梦 2021-01-19 18:32

I have a Microsoft Access database and I have two tables. Table1 has a primary key and Table2 has a foreign key that references Table1\'s primary key. This relationship is s

4条回答
  •  庸人自扰
    2021-01-19 18:46

    Exploring table in Visual Studio Server Explorer I was able to select unnamed constraint and delete it (as @Beth suggested). Notable, VS generated script with it's name:

    GO
    ALTER TABLE [dbo].[Organizations] DROP CONSTRAINT [FK__OrgDes__Langu__20C1E124];
    

提交回复
热议问题