首页 / RUST / SQL Agent Job 报“Access to the remote server is denied because the current security context is not trusted”
SQL Agent Job 报“Access to the remote server is denied because the current security context is not trusted”
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了SQL Agent Job 报“Access to the remote server is denied because the current security context is not trusted”,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含1400字,纯文字阅读大概需要3分钟。
内容图文
SQL Server 2005(Microsoft SQL Server 2005 - 9.00.5000.00)下的一个作业执行一个存储过程,存储过程中动态SQL语句使用链接服务器(Linked Servers),从另外一台SQL Server服务器获取数据。但是执行时报“Access to the remote server is denied because the current security context is not trusted”。 但是在SSMS客户端手工执行存储过程却又是OK的。
遇到这个问题很是诡异,看似是一个权限和安全方面的原因,但是有不少作业也是这么做的,唯独这台服务器遇到这个问题。网上也有大把人遇到这个问题。官方都有一些资料。
https://www.sqlservercentral.com/Forums/Topic579778-146-1.aspx
提供的解决方法也五花八门的。我都一一尝试了一下,结果都没有解决我的问题。最后按照下面这篇文章的介绍解决了问题。
修改作业的Owner,将作业Owner从sa改为链接服务器(Linked Server)的安全上下文( Current Security Context)所使用的账号,问题解决。虽然问题解决了,但是还是没有明白root cause,跟一些人沟通都无解。暂时先记录一下这个问题。
原文:http://www.cnblogs.com/kerrycode/p/6437871.html
内容总结
以上是互联网集市为您收集整理的SQL Agent Job 报“Access to the remote server is denied because the current security context is not trusted”全部内容,希望文章能够帮你解决SQL Agent Job 报“Access to the remote server is denied because the current security context is not trusted”所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。