sp_addlinkedserver N'T1',N'',N'MSDASQL',NULL,
NULL,
'DRIVER={SQL Server};SERVER=1.1.1.1;UID=MYNAME;PWD=MYPASSWORD;'
when I run to :
select top(10)* from t1.training.dbo.person
I get the following message:
The OLE DB provider "MSDASQL" for linked server "t1" reported an error. Authentication failed.
Cannot initialize the data source object of OLE DB provider "MSDASQL" for linked server "t1".
Why I must use the sp_addlinkedsvrlogin do the account mapping again, I have set the right remote sql server name and password in odbc string.
Whether I config error in the sp_addlinkedserver? (my name and password is right)