--若obom_stru_expand1、obom_stru_expand1的数据被误删除了,需要从另一个数据库中将数据导入到
--现时数据库中,但这两个表又包含有外键等。则需要将其disable再进行数据导致
Alter Table obom_stru_expand2 Nocheck Constraint All
Alter Table obom_stru_expand2 Disable Trigger All
Alter Table obom_stru_expand1 Nocheck Constraint All
Alter Table obom_stru_expand1 Disable Trigger All
insert into obom_stru_expand1
select * from erp1024.dbo.obom_stru_expand1
insert into obom_stru_expand1
select * from erp1024.dbo.obom_stru_expand
Alter Table obom_stru_expand2 Check Constraint All
Alter Table obom_stru_expand2 Enable Trigger All
Alter Table obom_stru_expand1 Check Constraint All
Alter Table obom_stru_expand1 Enable Trigger All
--现时数据库中,但这两个表又包含有外键等。则需要将其disable再进行数据导致
Alter Table obom_stru_expand2 Nocheck Constraint All
Alter Table obom_stru_expand2 Disable Trigger All
Alter Table obom_stru_expand1 Nocheck Constraint All
Alter Table obom_stru_expand1 Disable Trigger All
insert into obom_stru_expand1
select * from erp1024.dbo.obom_stru_expand1
insert into obom_stru_expand1
select * from erp1024.dbo.obom_stru_expand
Alter Table obom_stru_expand2 Check Constraint All
Alter Table obom_stru_expand2 Enable Trigger All
Alter Table obom_stru_expand1 Check Constraint All
Alter Table obom_stru_expand1 Enable Trigger All