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

2019-04-03  本文已影响0人  shmaur

原因:错误提示是因为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
上一篇 下一篇

猜你喜欢

热点阅读