当前位置:Gxlcms > 数据库问题 > SQL Server 跨库连接

SQL Server 跨库连接

时间:2021-07-01 10:21:17 帮助过:2人阅读

开启组件 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 Server 跨库连接

标签:

人气教程排行