insert into SGGLDB.dbo.EduTrain_TrainTest select * from HSSEDB.dbo.EduTrain_TrainTest where TrainingId in (select TrainingId from SGGLDB.dbo.EduTrain_TrainRecord) go insert into SGGLDB.dbo.Training_TestPlan select * from HSSEDB.dbo.Training_TestPlan where ProjectId in (select ProjectId from SGGLDB.dbo.Base_Project) go insert into SGGLDB.dbo.Training_TestRecord select * from HSSEDB.dbo.Training_TestRecord where TestManId in (select PersonId from SGGLDB.dbo.SitePerson_Person) go insert into SGGLDB.dbo.EduTrain_TrainPersonRecord select * from HSSEDB.dbo.EduTrain_TrainPersonRecord where ProjectId in (select ProjectId from SGGLDB.dbo.Base_Project) go insert into SGGLDB.dbo.Training_PlanItem select * from HSSEDB.dbo.Training_PlanItem where PlanId in (select PlanId from SGGLDB.dbo.Training_Plan) go insert into SGGLDB.dbo.Training_Task select * from HSSEDB.dbo.Training_Task where UserId in (select PersonId from SGGLDB.dbo.SitePerson_Person) go insert into SGGLDB.dbo.Training_TaskItem select * from HSSEDB.dbo.Training_TaskItem where TaskId in (select TaskId from SGGLDB.dbo.Training_Task) go insert into SGGLDB.dbo.Training_TestPlanTraining select * from HSSEDB.dbo.Training_TestPlanTraining where TestPlanId in (select TestPlanId from SGGLDB.dbo.Training_TestPlan) go insert into SGGLDB.dbo.Training_TestRecordItem select * from HSSEDB.dbo.Training_TestRecordItem where TestRecordId in (select TestRecordId from SGGLDB.dbo.Training_TestRecord) go insert into SGGLDB.dbo.Test_TestPlan select * from HSSEDB.dbo.Test_TestPlan go insert into SGGLDB.dbo.Test_TestPlanTraining select * from HSSEDB.dbo.Test_TestPlanTraining where TestPlanId in (select TestPlanId from SGGLDB.dbo.Test_TestPlan) go insert into SGGLDB.dbo.Test_TestRecord select * from HSSEDB.dbo.Test_TestRecord where TestPlanId in (select TestPlanId from SGGLDB.dbo.Test_TestPlan) go insert into SGGLDB.dbo.Test_TestRecordItem select * from HSSEDB.dbo.Test_TestRecordItem where TestRecordId in (select TestRecordId from SGGLDB.dbo.Test_TestRecord) go insert into SGGLDB.dbo.HSSE_Hazard_HazardRegisterTypes select * from HSSEDB.dbo.HSSE_Hazard_HazardRegisterTypes go insert into SGGLDB.dbo.HSSE_Hazard_HazardRegister select * from HSSEDB.dbo.HSSE_Hazard_HazardRegister where ProjectId in (select ProjectId from SGGLDB.dbo.Base_Project) go insert into SGGLDB.dbo.Check_CheckSpecial select * from HSSEDB.dbo.Check_CheckSpecial where ProjectId in (select ProjectId from SGGLDB.dbo.Base_Project) go insert into SGGLDB.dbo.Check_CheckSpecialDetail select * from HSSEDB.dbo.Check_CheckSpecialDetail where CheckSpecialId in (select CheckSpecialId from SGGLDB.dbo.Check_CheckSpecial) go insert into SGGLDB.dbo.Check_RectifyNotices select * from HSSEDB.dbo.Check_RectifyNotices where ProjectId in (select ProjectId from SGGLDB.dbo.Base_Project) go insert into SGGLDB.dbo.Check_RectifyNoticesFlowOperate select * from HSSEDB.dbo.Check_RectifyNoticesFlowOperate where RectifyNoticesId in (select RectifyNoticesId from SGGLDB.dbo.Check_RectifyNotices) go insert into SGGLDB.dbo.Check_RectifyNoticesItem select * from HSSEDB.dbo.Check_RectifyNoticesItem where RectifyNoticesId in (select RectifyNoticesId from SGGLDB.dbo.Check_RectifyNotices) go insert into SGGLDB.dbo.Check_PunishNotice select * from HSSEDB.dbo.Check_PunishNotice where ProjectId in (select ProjectId from SGGLDB.dbo.Base_Project) go insert into SGGLDB.dbo.Check_PunishNoticeFlowOperate select * from HSSEDB.dbo.Check_PunishNoticeFlowOperate where PunishNoticeId in (select PunishNoticeId from SGGLDB.dbo.Check_PunishNotice) go insert into SGGLDB.dbo.Check_PunishNoticeItem select * from HSSEDB.dbo.Check_PunishNoticeItem where PunishNoticeId in (select PunishNoticeId from SGGLDB.dbo.Check_PunishNotice) go insert into SGGLDB.dbo.Check_PauseNotice select * from HSSEDB.dbo.Check_PauseNotice where ProjectId in (select ProjectId from SGGLDB.dbo.Base_Project) go insert into SGGLDB.dbo.Check_PauseNoticeFlowOperate select * from HSSEDB.dbo.Check_PauseNoticeFlowOperate where PauseNoticeId in (select PauseNoticeId from SGGLDB.dbo.Check_PauseNotice) go --insert into SGGLDB.dbo.Sys_HttpLog select * from HSSEDB.dbo.Sys_HttpLog --go insert into SGGLDB.dbo.Sys_AccessToken select * from HSSEDB.dbo.Sys_AccessToken go insert into SGGLDB.dbo.Check_CheckColligation select * from HSSEDB.dbo.Check_CheckColligation where ProjectId in (select ProjectId from SGGLDB.dbo.Base_Project) go insert into SGGLDB.dbo.Check_CheckColligationDetail select * from HSSEDB.dbo.Check_CheckColligationDetail where CheckColligationId in (select CheckColligationId from SGGLDB.dbo.Check_CheckColligation) go insert into SGGLDB.dbo.Meeting_AttendMeeting select * from HSSEDB.dbo.Meeting_AttendMeeting where ProjectId in (select ProjectId from SGGLDB.dbo.Base_Project) go insert into SGGLDB.dbo.Meeting_ClassMeeting select * from HSSEDB.dbo.Meeting_ClassMeeting where ProjectId in (select ProjectId from SGGLDB.dbo.Base_Project) go insert into SGGLDB.dbo.Meeting_MonthMeeting select * from HSSEDB.dbo.Meeting_MonthMeeting where ProjectId in (select ProjectId from SGGLDB.dbo.Base_Project) go insert into SGGLDB.dbo.Meeting_SpecialMeeting select * from HSSEDB.dbo.Meeting_SpecialMeeting where ProjectId in (select ProjectId from SGGLDB.dbo.Base_Project) go insert into SGGLDB.dbo.Meeting_WeekMeeting select * from HSSEDB.dbo.Meeting_WeekMeeting where ProjectId in (select ProjectId from SGGLDB.dbo.Base_Project) go insert into SGGLDB.dbo.License_BreakGround select * from HSSEDB.dbo.License_BreakGround where ProjectId in (select ProjectId from SGGLDB.dbo.Base_Project) go insert into SGGLDB.dbo.License_FireWork select * from HSSEDB.dbo.License_FireWork where ProjectId in (select ProjectId from SGGLDB.dbo.Base_Project) go insert into SGGLDB.dbo.License_HeightWork select * from HSSEDB.dbo.License_HeightWork where ProjectId in (select ProjectId from SGGLDB.dbo.Base_Project) go insert into SGGLDB.dbo.License_LiftingWork select * from HSSEDB.dbo.License_LiftingWork where ProjectId in (select ProjectId from SGGLDB.dbo.Base_Project) go insert into SGGLDB.dbo.License_LimitedSpace select * from HSSEDB.dbo.License_LimitedSpace where ProjectId in (select ProjectId from SGGLDB.dbo.Base_Project) go insert into SGGLDB.dbo.License_NightWork select * from HSSEDB.dbo.License_NightWork where ProjectId in (select ProjectId from SGGLDB.dbo.Base_Project) go insert into SGGLDB.dbo.License_OpenCircuit select * from HSSEDB.dbo.License_OpenCircuit where ProjectId in (select ProjectId from SGGLDB.dbo.Base_Project) go insert into SGGLDB.dbo.License_RadialWork select * from HSSEDB.dbo.License_RadialWork where ProjectId in (select ProjectId from SGGLDB.dbo.Base_Project) go