SET IDENTITY_INSERT [Staff] ON
INSERT INTO [Staff]
([ID]
,[Sex]
,[FirstName]
,[LastName]
,[E_mail]
,[Email_Office]
,[PositionID]
,[AttendStart]
,[AttendEnd]
,[Title]
,[StaffNo]
,[CellPhone]
,[TelOffice]
,[TelNo]
,[Compound]
,[CompoundNo]
,[StreetNo]
,[District]
,[City]
,[PostCode]
,[Photo]
,[M1CardNo]
,[Barcode]
,[SalaryCategoryID]
,[SalaryCategoryLevelID]
,[SalaryModifiedDate]
,[SalaryModifiedBy]
,[Flag_UseComputerCalculateSalary]
,[SalaryCurrency]
,[Flag_CalculateSalaryUseSpecialWay]
,[WeekSalary]
,[WeekSalaryCurrency]
,[WeekHours]
,[ActualWeekhours]
,[SalaryMonthlyAddTitle]
,[SalaryMonthlyAdd]
,[SalaryMonthlyAddCurrency]
,[SalaryMonthlyMinusTitle]
,[SalaryMonthlyMinus]
,[SalaryMonthlyMinusCurrency]
,[AccountName]
,[AccountBankName]
,[AccountNoInGerman]
,[AccountBLZ]
,[AccountIBAN]
,[AccountSwift]
,[ArchivesNo]
,[SortNo]
,[Kurzel]
,[FlagShowInContactList]
,[UniqueNO]
,[Bus_StationId]
,[Birthday]
,[CampusID]
,[PrintCount]
,[ADAccount]
,[ADDisplayName]
,[Consultation]
,[IsADUpdate]
,[ADSID]
,[ADGUID]
,[Remark]
,[Tel_emergency]
,[Remark2]
,CreateDate
)
SELECT [ID]
,[Sex]
,[FirstName]
,[LastName]
,[E_mail]
,[Email_Office]
,[PositionID]
,[AttendStart]
,[AttendEnd]
,[Title]
,[StaffNo]
,[CellPhone]
,[TelOffice]
,[TelNo]
,[Compound]
,[CompoundNo]
,[StreetNo]
,[District]
,[City]
,[PostCode]
,[Photo]
,[M1CardNo]
,[Barcode]
,[SalaryCategoryID]
,[SalaryCategoryLevelID]
,[SalaryModifiedDate]
,[SalaryModifiedBy]
,[Flag_UseComputerCalculateSalary]
,[SalaryCurrency]
,[Flag_CalculateSalaryUseSpecialWay]
,[WeekSalary]
,[WeekSalaryCurrency]
,[WeekHours]
,[ActualWeekhours]
,[SalaryMonthlyAddTitle]
,[SalaryMonthlyAdd]
,[SalaryMonthlyAddCurrency]
,[SalaryMonthlyMinusTitle]
,[SalaryMonthlyMinus]
,[SalaryMonthlyMinusCurrency]
,[AccountName]
,[AccountBankName]
,[AccountNoInGerman]
,[AccountBLZ]
,[AccountIBAN]
,[AccountSwift]
,[ArchivesNo]
,[SortNo]
,[Kurzel]
,[FlagShowInContactList]
,[UniqueNO]
,[Bus_StationId]
,[Birthday]
,[CampusID]
,[PrintCount]
,[ADAccount]
,[ADDisplayName]
,[Consultation]
,[IsADUpdate]
,[ADSID]
,[ADGUID]
,[Remark]
,[Tel_emergency]
,[Remark2]
,CreateDate
FROM [Staff_Del_History] where id in (1,3)
SET IDENTITY_INSERT [Staff] OFF