Hi Friends ,
I am having two database on two different machine one server is 'server1' and another is 'server2'
both are in network.Both server have a common database name 'FoamDB' and i want to insert record from server2.FoamDB.dbo.Table to server1.FoamDB.dbo while i am currently workin on server1.
what will be the insert statement?
i am using following query that is not working..
insert into [server1].FoamDB.dbo.bill select * from [server2].FoamDB.dbo.bill
Error:
Msg 7202, Level 11, State 2, Line 1
Could not find server 'server2' in sysservers. Execute sp_addlinkedserver to add the server to sysservers.