Link to home
Start Free TrialLog in
Avatar of MrDavidThorn
MrDavidThorn

asked on

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?
Avatar of lcohan
lcohan
Flag of Canada image

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.
Avatar of MrDavidThorn
MrDavidThorn

ASKER

I used the script from the default instance, so they are exactly the same
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?
ASKER CERTIFIED SOLUTION
Avatar of lcohan
lcohan
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial