Assalam O Alaikum
I've this query which works fine with single server database to database data transfer i.e
INSERT INTO tblinfo(name) select name from testDB.dbo.tblInfo
where name not in(select name from NORTHWND.dbo.tblinfo)
but when I try to transfer data from one system server to an other it gives an error.
Query:
INSERT INTO tblinfo(name) select name from machin2008.testDB.dbo.tblInfo
where name not in(select name from machinpne\sql2008.NORTHWND.dbo.tblinfo)
Error:
Could not find server 'machin2008' in sys.servers. Verify that the correct server name was specified. If necessary, execute the
stored procedure sp_addlinkedserver to add the server to sys.servers.
(location of store procedure is ::tempdb:store procedure:system stored procedures)
When I execute that store procedure sp_addlinkedserver. It gave another error
Error:
Msg 102, Level 15, State 1, Procedure sp_addlinkedserver, Line 70
Incorrect syntax near '%'.
My question is and please help me with that. How can I transfer data from one server to an other with just these queries.