原因:错误提示是因为SQL Server
的Ad 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
网友评论