SET IDENTITY_INSERT DATABASE_2.dbo.TABLE_1 ON GO insert into DATABASE_2.dbo.TABLE_1 select * from DATABSE_1.dbo.TABLE_1 GO SET IDENTITY_INSERT DATABASE_2.dbo.TABLE_1 OFF GO
SET IDENTITY_INSERT DB2.dbo.TABLE_1 ON INSERT INTO DB2.dbo.TABLE_1 SELECT * FROM DB1.dbo.TABLE_1 SET IDENTITY_INSERT DB2.dbo.TABLE_1 OFF GO
SELECT * INTO DestinationDB..MyDestinationTable FROM SourceDB..MySourceTable
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)