I am trying to transfer data between databases, but cannot get INSERT to work.
USE [db1_Name]
GO
INSERT INTO [dbo].[company$Customer]
[No_]
GO
USE [db2_Name]
GO
SELECT
[No_]
FROM [dbo].[company$Customer]
GO
I am trying to transfer data between databases, but cannot get INSERT to work.
USE [db1_Name]
GO
INSERT INTO [dbo].[company$Customer]
[No_]
GO
USE [db2_Name]
GO
SELECT
[No_]
FROM [dbo].[company$Customer]
GO
Change your script to
INSERT INTO DbnameTarget.[dbo].[company$Customer]
SELECT
Colum1,Colum2
FROM DbnameSource.[dbo].[company$Customer]
Replace Dbnames,colums with your own
Select * into [DestinationDB].dbo.tableName
from [SourceDB.dbo].SourceTable
(or) select * into [Destinationserver].[DestinationDB].dbo.tablename from [Sourceserver].[SourceDB].dbo.tablename