您的位置:首页 > 博客中心 > 数据库 >

开启MSSQLServer跨服务器查询功能

时间:2022-03-14 01:22

  • 首先在MSSQL客户端中进行如下图文操作配置

    gxlsystem.com,布布扣
    gxlsystem.com,布布扣
  • 其次使用脚本进行操作配置

    ---开启SQLServer 跨服务器查询功能

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

    --关闭SQLServer 跨服务器查询功能

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

 

热门排行

今日推荐

热门手游