Could not find server 'server name' in sys.servers. SQL Server 2014

后端 未结 3 1325
迷失自我
迷失自我 2021-01-03 23:34

I recently upgraded our SQL Server from 2005 to 2014 (linked server) and I am noticing that one of the stored procedures which calls the exec command to execute a stored pro

3条回答
  •  没有蜡笔的小新
    2021-01-04 00:09

    I figured out the issue. The linked server was created correctly. However, after the server was upgraded and switched the server name in sys.servers still had the old server name.

    I had to drop the old server name and add the new server name to sys.servers on the new server

    sp_dropserver 'Server_A'
    GO
    sp_addserver  'Server',local
    GO
    

提交回复
热议问题