今天在修改存储过程,其中有一个地方是得使用到另一台服务器上的数据库,就出现了这种情况:

百度了挺久都是这样的方法:

然后确实都没啥用。后来终于找到解决方法:
1.点击对象资源管理器->服务器对象->链接服务器,右键点击新建链接服务器:

2.链接服务器填写服务器IP,选择SQL Server

点击安全性,选择使用此安全上下文建立连接,填写账号密码

保存,再重新尝试,就成功了。
今天在修改存储过程,其中有一个地方是得使用到另一台服务器上的数据库,就出现了这种情况:
百度了挺久都是这样的方法:
然后确实都没啥用。后来终于找到解决方法:
1.点击对象资源管理器->服务器对象->链接服务器,右键点击新建链接服务器:
点击安全性,选择使用此安全上下文建立连接,填写账号密码
本文标题:关于“在 sys.servers 中找不到服务器 'xxx' ”
本文链接:https://www.haomeiwen.com/subject/xdxavctx.html
网友评论