做网站找哪家公司最好,网站服务器天付,微信上做网站,wordpress 和织梦今天写了一个excel表的导入功能#xff0c;结果在excel表中的内容导入到页面时报错#xff1a;SQL Server 阻止了对组件 Ad Hoc Distributed Queries 的 STATEMENTOpenRowset/OpenDatasource 的访问#xff0c;因为此组件已作为此服务器安全配置的一部分而被关闭。系统管…今天写了一个excel表的导入功能结果在excel表中的内容导入到页面时报错SQL Server 阻止了对组件 Ad Hoc Distributed Queries 的 STATEMENTOpenRowset/OpenDatasource 的访问因为此组件已作为此服务器安全配置的一部分而被关闭。系统管理员可以通过使用 sp_configure 启用 Ad Hoc Distributed Queries。有关启用 Ad Hoc Distributed Queries 的详细信息请参阅 SQL Server 联机丛书中的 外围应用配置器。 在网上查了查实验了一下管用所以记录一下 在数据库sql查询编辑器中运行下面语句即可 1、启用 Ad Hoc Distributed Queries 1 exec sp_configure show advanced options,1
2 reconfigure
3 exec sp_configure Ad Hoc Distributed Queries,1
4 reconfigure 启用 Ad Hoc Distributed Queries 2、关闭 Ad Hoc Distributed Queries 1 exec sp_configure Ad Hoc Distributed Queries,0
2 reconfigure
3 exec sp_configure show advanced options,0
4 reconfigure 关闭 Ad Hoc Distributed Queries 转载于:https://www.cnblogs.com/chao0219/p/4535294.html