SQL Server 跨库连接
2016-06-03 12:04
246 查看
-- 开启组件 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 OPENDATASOURCE('SQLOLEDB','Data Source=192.168.7.137;User ID=sa;Password=8818522').PanelData.dbo.Channel
相关文章推荐
- sql -实验二
- sql -实验二
- hiredis简介
- MongoDB快速入门笔记(八)之MongoDB的java驱动操作代码讲解
- mysql中同义词的一个模拟
- SQL Tuning Advisor 使用11G的自动调优建议
- Mysql判断表字段或索引是否存在
- Mac解压安装卸载MySQL5.7.11
- Redis Web界面管理工具
- Redis 起步
- postgresql 获取所有表名、字段名、字段类型、注释
- Streaming Real-time Data Into HBase
- Oracle安装错误ora-00922(缺少或无效选项)
- redis-设置密码
- Kylin的保存查询SQL时提示kylin_metadata2_user类似的表不存在
- SQL SERVER全面优化-------Expert for SQL Server 诊断系列
- Windows平台下MySQL常用操作与命令
- 读取文本文件,拆分所有sql后进行批处理stmt.addBatch(sql)
- 如何减少对Mysql的访问以优化SQL语句
- 使用mysql连接池提高性能