June 21, 2017 at 7:54 am
Thanks
June 21, 2017 at 8:51 am
I am a little confused. You started with a linked server named RefreshDB, but it morphed into RefreshDatabases, or was that another test?
Also, ServerA was the server with the Linked Server Definition, but at the end, it is also the destination?
From the initial description, I would have blamed the local client DNS cache, which would have been fixed with an ipconfig /flushdns. I seriously doubt that any changes would be required to the query plan for the procedure that the job calls, as the query plan would not go any further than a reference to the linked server (although, it may reference the linked server by ID, rather than name). From the error itself (cannot locate RefreshDB in sys.servers), I would check on the stored procedure text, and make sure the name of the linked server called matches what is in sys.servers.
July 5, 2017 at 7:31 am
So sorry for late reply - I was on holiday and unable to get access to the internet.
I also initially had thought it was a local DNS cache issue. But in the end i discovered that the stored proc on Server A called another stored proc on Server B. This sproc on Server B also called a RefreshDatabases linked server but it did not exist on Server B. The reason why i didn't investigate the second stored proc is because the first stored proc failed so instantly that I assumed it failed in it's first call to RefreshDatabases locally on Server A.
Thanks for taking an interest and responding 🙂
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply