ERROR:
“An invalid schema or catalog was specified for the provider “Local Server” for linked server “(null)”.”
EXPLANATION:
I received this error message when I ran a command similar to the following using a Linked Server:
1 |
SELECT * FROM LinkedServer.MyDatabase..MyTable |
SOLUTION:
Make sure that you use Fully Qualified Name in the queries you use in Linked Server. The draft of this is as follows:
[Linked Server Name].[Database Name].[Schema Name].[Object Name]Example:
1 |
SELECT * FROM LinkedServer.MyDatabase.MySchema.MyTable |