By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
ALTER TABLE [dbo].[B] DROP CONSTRAINT [fk_B_A];
ALTER TABLE [dbo].[C] DROP CONSTRAINT [fk_C_A];
ALTER TABLE [dbo].[B] ADD CONSTRAINT [fk_B_A] FOREIGN KEY ([A_id]) REFERENCES [dbo].[A]([id]);
ALTER TABLE [dbo].[C] ADD CONSTRAINT [fk_C_A] FOREIGN KEY ([A_id]) REFERENCES [dbo].[A]([id]);