ALTER TABLE [AKUZ].[T_CDA_DANGEROUS_SOCIAL_FACTORS] DROP CONSTRAINT [FK_T_CDA_SECTION_LANAM_T_CDA_DANGEROUS_SOCIAL_FACTORS_CdaSectionLanam]
GO
exec dbo.sp_AlterDropColumn '[AKUZ].[T_CDA_DANGEROUS_SOCIAL_FACTORS]' , 'CdaSectionLanam', 1, 'uniqueidentifier NULL'
GO
ALTER TABLE [AKUZ].[T_CDA_DANGEROUS_SOCIAL_FACTORS] ADD CONSTRAINT [FK_T_CDA_SECTION_LANAM_T_CDA_DANGEROUS_SOCIAL_FACTORS_CdaSectionLanam]
FOREIGN KEY([CdaSectionLanam]) REFERENCES [AKUZ].[T_CDA_SECTION_LANAM] ([CdaSectionLanamID])
GO

ALTER TABLE [AKUZ].[T_CDA_HARMFUL_PRODUCTION_FACTORS] DROP CONSTRAINT [FK_T_CDA_SECTION_LANAM_T_CDA_HARMFUL_PRODUCTION_FACTORS_CdaSectionLanam]
GO
exec dbo.sp_AlterDropColumn '[AKUZ].[T_CDA_HARMFUL_PRODUCTION_FACTORS]' , 'CdaSectionLanam', 1, 'uniqueidentifier NULL'
GO
ALTER TABLE [AKUZ].[T_CDA_HARMFUL_PRODUCTION_FACTORS] ADD CONSTRAINT [FK_T_CDA_SECTION_LANAM_T_CDA_HARMFUL_PRODUCTION_FACTORS_CdaSectionLanam]
FOREIGN KEY([CdaSectionLanam]) REFERENCES [AKUZ].[T_CDA_SECTION_LANAM] ([CdaSectionLanamID])
GO