1.开启Ad Hoc Distributed Queries组件,在sql查询编辑器中执行如下语句:
exec sp_configure 'show advanced options',1
reconfigure
exec sp_configure 'Ad Hoc Distributed Queries',1
reconfigure
2.关闭Ad Hoc Distributed Queries组件,在sql查询编辑器中执行如下语句:
exec sp_configure 'Ad Hoc Distributed Queries',0
reconfigure
exec sp_configure 'show advanced options',0
reconfigure
select * from OPENROWSET('SQLOLEDB','server=IP,端口;uid=账号;pwd=密码',数据库.架构名.表名)
博客围绕SQL Server远程进行数据的增删改操作展开,虽未给出具体内容,但核心聚焦于利用SQL Server在远程环境下对数据进行增删改的相关信息技术操作。

285

被折叠的 条评论
为什么被折叠?



