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]
Comments