当前位置:首页 > SQL

[MSSQL]开启/关闭Ad Hoc Distributed Queries组件

happyfhb2年前 (2024-05-15)SQL1451
摘要:

SQL Server 阻止了对组件“Ad Hoc Distributed Queries”的 STATEMENT“OpenRowset/OpenDatasource”的访问


开启组件:

exec sp_configure 'show advanced options',1reconfigureexec sp_configure 'Ad Hoc Distributed Queries',1reconfigure


关闭组件:

exec sp_configure 'Ad Hoc Distributed Queries',0reconfigureexec sp_configure 'show advanced options',0reconfigure

--导入用户信息
truncate table dbo.CustomerInfo
insert into RedPacket.dbo.CustomerInfo
select * from opendatasource('sqloledb','server=xxx.14.xxx.xxx;uid=sa;pwd=123;database=ma').ma.dbo.CustomerInfo


扫描二维码推送至手机访问。

版权声明:本文由海海日记-冯海滨博客发布,如需转载请注明出处。

本文链接:http://www.fenghaibin.com/?id=1369

“[MSSQL]开启/关闭Ad Hoc Distributed Queries组件” 的相关文章

查看SQL Server版本号(2005 & 2008)

 方法一: select serverproperty('productversion') ,serverproperty('productlevel') ,serverproperty('edition') 输出:…

SQL2008和sql2008 r2有什么区别

 首先从不同的角度来说1 如果你是VS2008 则配合良好的是 SQL 2008 而不是 SQL 2008R2.2 如果是 VS2010 则配合良好的是2008R23 SSRS&n…

使用sql server management studio 2008 连接数据库,无法查看数据库,提示 无法为该请求检索数据 错误916

使用sql server management studio 2008 连接数据库,无法查看数据库,提示 无法为该请求检索数据 错误916

今日使用sql server management studio 2008 连接远程数据库,可以链接上,但是无法查看自己的数据库,点击数据库后,提示 无法为该请求检索数据 错误916 解决方法如下点击左侧的数据库,然后到右侧的 “名称”注意 如果点击 没有出现对象自愿管理器 请按F7  然…

sqlserver 数据库查看索引和创建索引

创建索引:create clustered Index 索引名 on 表(列名)查看索引:sp_helpindex 表 …

DBCC CHECKDB用法详解

手工修复数据库…

mssql 如何查找某个字段在哪个表中

select table_name from INFORMATION_SCHEMA.columns where column_name='查找的字段的名字'…

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。