Linked server does not work on SQL server instance but work on another

Hi Experts

I have a linked server that works fine on the local (default) server istance, I have created a script from the linked server and run it on a different  server instance on the same box with the same credentials.

When I try and query the linked server on the different SQL server instance , I get the error message  that the table doesnt exsit or the current user does not have permissions on that table.

The table does exsit and I can use the same syntax on the default instance and it works as expected.

Has anybody else had this problem and do they know how to resolve it?
MrDavidThornAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

lcohanDatabase AnalystCommented:
Please keep in mind that an instance is addressed by ServerName\InstanceName where a SQL default (instance) is addressed just by ServerName.
You sould try and add the Linked server on the instance the same way or in SSMS instead and generate script from there to see the differences.
MrDavidThornAuthor Commented:
I used the script from the default instance, so they are exactly the same
MrDavidThornAuthor Commented:
It must be some sort of permissions issue, though I have also logged on as the sever admin account, could there be a port being blocked?
lcohanDatabase AnalystCommented:
"When I try and query the linked server on the different SQL server instance , I get the error message  that the table doesnt exsit or the current user does not have permissions on that table."


You MUST have/add a linked server on the " different SQL server instance" as well. You cant add a linked server on server A to server B then go on server C and try query server B(or A for that matter)

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server 2005

From novice to tech pro — start learning today.