问题描述
我处于这种情况。
我有一个应用服务器APPSRVA,2个数据库服务器DBSRVA,DBSRVB
I have a app server APPSRVA, 2 DB server DBSRVA , DBSRVB
链接服务器是在DBSRVA创建以链接到DBSRVB,并且APPSRVA在DBSRVA中有一个脚本棒来调用存储过程
Link server is created at DBSRVA to link to DBSRVB, and APPSRVA has a script bat to call a store procedure
以在DBSRVB中执行查询。
in DBSRVA to execute query in DBSRVB.
通过在APPSRVA中使用management Studio安装测试链接服务器,连接到DBSRVA,右键单击链接服务器并测试确定。
The link server is tested ok by using management Studio install in APPSRVA, connect to DBSRVA , right click the link server and test ok.
链接服务器正在使用"使用登录的当前安全上下文"
The link server is using "be made using the login's current security context"
如何执行脚本,用户'NT AUTHORITY \ANONYMOUS LOGON'登录失败。
要模拟此问题,请清除APPSRVA中的Kerberos票证。问题再次发生。
To simulate this issue, I clear the Kerberos tickets in APPSRVA. The issue happen again.
在我成功测试链接服务器之后,脚本可以成功运行。
and just after when I test the link server successfully , the script can successfully run.
之前有人遇到此问题吗?
anyone hit this issue before ?
在Windows 2016和sql server上2016
On windows 2016 and sql server 2016
推荐答案
这篇关于链接服务器问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!