ALTER TABLE dbo.tblTabl01 DROP CONSTRAINT IF EXISTS FK_tblTabl01_tblTable02;
GO
ALTER TABLE [dbo].[tblTabl01]  WITH CHECK ADD  CONSTRAINT [FK_tblTabl01_tblTable02] FOREIGN KEY([ColumnId])
REFERENCES [dbo].[tblTable02] ([Id])
GO
ALTER TABLE [dbo].[tblTabl01] CHECK CONSTRAINT [FK_tblTabl01_tblTable02]
Last modified: March 10, 2020

Author

Comments

Write a Reply or Comment