I am running into an issue trying to link from MS SQL 2000 to Sybase. I run the sp_addlinkedserver, which appears to work successfully:
exec sp_addlinkedserver @server='test',
@srvproduct = '',
@provider = 'msdasql',
@datasrc = 'Data Source=mySrc;UserID=usrID;Password=pwd',
@location = null,
@provstr = '',
@catalog = null
exec sp_addlinkedsrvlogin 'test','true',NULL,userid,pwd
But when I try to query the db:
select top 10 * from [test].mydb.dbo.mytable
I get the following error:
OLE DB provider 'msdasql' reported an error.
[OLE/DB provider returned message: [Microsoft][ODBC Driver Manager] Data source name too long]
I have searched the forum and the online help, and am coming up blank. Any thoughts?
exec sp_addlinkedserver @server='test',
@srvproduct = '',
@provider = 'msdasql',
@datasrc = 'Data Source=mySrc;UserID=usrID;Password=pwd',
@location = null,
@provstr = '',
@catalog = null
exec sp_addlinkedsrvlogin 'test','true',NULL,userid,pwd
But when I try to query the db:
select top 10 * from [test].mydb.dbo.mytable
I get the following error:
OLE DB provider 'msdasql' reported an error.
[OLE/DB provider returned message: [Microsoft][ODBC Driver Manager] Data source name too long]
I have searched the forum and the online help, and am coming up blank. Any thoughts?