设为首页 加入收藏

TOP

sql server 2005远程复制表及“SQL Server阻止了对组件...的访问”解决
2014-11-24 07:25:11 来源: 作者: 【 】 浏览:1
Tags:sql server 2005 远程 制表 SQL Server 阻止 组件 ... 访问 解决
sql server 2005远程复制表及“SQL Server阻止了对组件...的访问”解决
--启用Ad Hoc Distributed Queries
--(使用以下两句代码的原因:下面的sql中,其中有几个从其他 数据库导入数据的语句,所以必须得先启用Ad Hoc Distributed Queries,使用结束后,最好关闭它 )
www.2cto.com
exec sp_configure 'show advanced options',1
reconfigure
exec sp_configure 'Ad Hoc Distributed Queries',1
reconfigure
GO
delete from syscode
insert into syscode
select type,code,name,note,value1,value2 FROM opendatasource('SQLOLEDB','Data Source=192.168.1.101;User ID=sa; Password=***').[DATABASE_NAME].dbo.syscode
--使用完成后,关闭Ad Hoc Distributed Queries:
exec sp_configure 'Ad Hoc Distributed Queries',0
reconfigure
exec sp_configure 'show advanced options',0
reconfigure
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇mysql记录集中记录序号,MySQL中实.. 下一篇开源数据库MySQL源代码及安装程序..

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容:

·Java 集合框架 - 菜 (2025-12-27 02:19:36)
·Java集合框架最全详 (2025-12-27 02:19:33)
·为什么安卓开发要用J (2025-12-27 02:19:30)
·C/C++ 类模板与模板 (2025-12-27 01:49:52)
·C语言 模板化<templ (2025-12-27 01:49:49)