SQL Server 阻止了对组件 /'Ad Hoc Distributed
来源:互联网 发布:java id生成策略 编辑:程序博客网 时间:2024/05/06 00:42
想用openrowset查询远程数据库,结果提示SQL Server 阻止了对组件 /'Ad Hoc Distributed Queries/' 的访问错误,在网上搜索了一下,找到解决方法:
启用Ad Hoc Distributed Queries:
exec sp_configure 'show advanced options',1
reconfigure
exec sp_configure 'Ad Hoc Distributed Queries',1
reconfigure
使用完成后,关闭Ad Hoc Distributed Queries:
exec sp_configure 'Ad Hoc Distributed Queries',0
reconfigure
exec sp_configure 'show advanced options',0
reconfigure
SELECT *
FROM OPENDATASOURCE(
'SQLOLEDB',
'Data Source=ServerName;User ID=sa;Password=sa'
).DataBaseName.dbo.Table
select * from openrowset( 'SQLOLEDB ', 'IP地址'; '用户名'; '密码',数据库名.dbo.表名)
- SQL Server 阻止了对组件 /'Ad Hoc Distributed
- SQL Server 阻止了对组件 'Ad Hoc Distributed Queries' ......
- [sql异常]SQL Server 阻止了对组件 'Ad Hoc Distributed Queries' 的
- SQL Server 阻止了对组件 /'Ad Hoc Distributed Queries/' 的访问
- SQL Server 阻止了对组件 /'Ad Hoc Distributed Queries/' 的访问
- SQL Server 阻止了对组件 /'Ad Hoc Distributed Queries/' 的访问
- SQL Server 阻止了对组件 /'Ad Hoc Distributed Queries/' 的访问 (转)
- SQL Server 阻止了对组件 'Ad Hoc Distributed Queries' 的 STATEMENT'OpenRowset/OpenDatasource' 的访问
- SQL Server 阻止了对组件 /'Ad Hoc Distributed Queries/' 的访问
- SQL Server 阻止了对组件 /'Ad Hoc Distributed Queries/' 的访问
- SQL Server 阻止了对组件 'Ad Hoc Distributed Queries' 的 STATEMENT'OpenRowset/OpenDatasource' 的访问
- SQL Server 阻止了对组件 'Ad Hoc Distributed Queries' 的 STATEMENT'OpenRowset/OpenDatasource' 的访问
- SQL Server 阻止了对组件 'Ad Hoc Distributed Queries' 的
- [转]SQL Server 阻止了对组件 /'Ad Hoc Distributed Queries/' 的访问
- SQL Server 阻止了对组件 'Ad Hoc Distributed Queries' 的 STATEM...
- SQL Server 阻止了对组件 'Ad Hoc Distributed Queries' 的 STATEMENT'OpenRowset/OpenDatasource' 的访问
- openrowset 中:SQL Server 阻止了对组件 \'Ad Hoc Distributed Queries\' 的访问
- SQL Server 阻止了对组件 'Ad Hoc Distributed Queries' 的 STATEM...
- iis日志分析
- SQL语句查看SQL Server 2005版本号
- mobicreator界面混乱问题的解决
- Linux内核代码 结构体初始化
- 看《守望者》的感想
- SQL Server 阻止了对组件 /'Ad Hoc Distributed
- oracle sql 语句 记录备忘
- 安装php扩展时遇到Cannot find autoconf
- IIS访问出现Server Application Error
- 关闭HTTPERR(IIS日志)的方法
- PHP扩展开发(6):接收参数
- ASP.NET中JSON的序列化和反序列化
- siebel学习初涉小结
- JBPM4项目和tomcat6.0的兼容问题