I am having no luck in executing a stored procedure on a linked server. Is this possible? I am trying the following in SQL Query Analyzer.
Yet I can see the linked server and tables. I can also access the linked tables with a "SELECT" without a problem.
A second question is if I can get this to work, if the stored procedure references tables without the [server.database] qualifier, is it going to access the local server or the linked server?
TIA
Mark
Code:
exec MXW4.CMSTEST.sp_diaryalerts
--------------------------------------
[red]Server: Msg 911, Level 16, State 1, Line 1[/red]
Could not locate entry in sysdatabases for database 'MXW4'. No entry found with that name. Make sure that the name is entered correctly.
Yet I can see the linked server and tables. I can also access the linked tables with a "SELECT" without a problem.
A second question is if I can get this to work, if the stored procedure references tables without the [server.database] qualifier, is it going to access the local server or the linked server?
TIA
Mark