Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sp_addlinkedserver question

Status
Not open for further replies.

FALCONSEYE

Programmer
Jul 30, 2004
1,158
US
I have a question and will appreciate if somebody has a link or a suggestion. The intention is to use sp_addlinkedserver and create a link between a SQL Server 2000 and SQL 2005 instance. When I run the following:


EXEC sp_addlinkedserver
@server = N'pcmenu_SQL2000',
@srvproduct = N'',
@provider = N'SQLNCLI',
@provstr = N'SERVER=serverNamel;UID=sa;PWD=myPass;'
[/color ]

I receive no error. However, when I use a query like :


SELECT 1 FROM pcmenu_SQL2000.pcmenu.dbo.rmdLookUp


I get an error telling me :
Msg 7314, Level 16, State 1, Line 1
The OLE DB provider "SQLNCLI" for linked server "pcmenu_SQL2000" does not contain the table ""pcmenu"."dbo"."rmdLookUp"". The table either does not exist or the current user does not have permissions on that table.

The sql server 2000 instance, indeed, has the rmdLookUp table. The provstr parameter uses a valid sa + password combination, so the permission should not be a problem. What to do?
Hilfe!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top