Hi,
How can I create a linkedserver to two differente database on the same server. Here is what I am trying to do but it doesn't work for the seconde one I try.
EXEC sp_addlinkedserver1
@server = 'myserver',
@srvproduct = '' ,
@datasrc = 'Database1',
@provider = 'SQLOLEDB',
@provstr = 'DRIVER=SQL Server;SERVER=myserver';UID=Username;PWD=Password;'
EXEC sp_addlinkedserver2
@server = 'myserver',
@srvproduct = '' ,
@datasrc = 'Database1',
@provider = 'SQLOLEDB',
@provstr = 'DRIVER=SQL Server;SERVER=myserver';UID=Username;PWD=Password;'