美文网首页
SQL Server 阻止了对组件 'Ad Hoc Distri

SQL Server 阻止了对组件 'Ad Hoc Distri

作者: shmaur | 来源:发表于2019-04-03 17:04 被阅读0次

原因:错误提示是因为SQL ServerAd Hoc Distributed Queries组件被禁用了。
1、打开 Ad Hoc Distributed Queries组件,新建查询:

exec sp_configure 'show advanced options',1
reconfigure
exec sp_configure 'Ad Hoc Distributed Queries',1
reconfigure

2、关闭Ad Hoc Distributed Queries组件,新建查询:

exec sp_configure 'Ad Hoc Distributed Queries',0
reconfigure
exec sp_configure 'show advanced options',0
reconfigure

相关文章

网友评论

      本文标题:SQL Server 阻止了对组件 'Ad Hoc Distri

      本文链接:https://www.haomeiwen.com/subject/dwizbqtx.html