Sql Server 跨服务器查询
2015-09-23 12:22
316 查看
开启功能:
exec sp_configure 'show advanced options',1 reconfigure exec sp_configure 'Ad Hoc Distributed Queries',1 reconfigure
关闭功能:
exec sp_configure 'Ad Hoc Distributed Queries',0 reconfigure exec sp_configure 'show advanced options',0 reconfigure
查询语句:
select * from openrowset('SQLOLEDB','sql服务器名';'用户名';'密码',数据库名.dbo.表名)
相关文章推荐
- mysql5.6编译安装详解
- mysql多表查询及其 group by 组内排序
- Spark-SQL连接MySql关系型数据库
- Spark-SQL连接MySql关系型数据库
- MYSQL基础_聚合函数_分组和多表连接查询
- Oracle数据加载之外部表的介绍
- 数据库设计
- oracle数据库段的概念
- Redis同步(主从复制)
- 为redis分配一个新的端口
- redis教程
- PostgreSQL的三种表连接方式简述
- redis配置文件redis.conf详细说明
- mysql并行复制功能
- MYSQL 数据类型
- 非关系型数据库redis、memcache、mongoDB的对比
- sql prompt5安装好了 也破解完成了 然后到SQL里面 还是没有提示 是为什么?
- mysql获取某个表的所有字段名
- mysql中enum的用法
- oracle性能优化一——简介