异地取数
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了异地取数相关的知识,希望对你有一定的参考价值。
exec sp_configure 'show advanced options',1reconfigure
exec sp_configure 'Ad Hoc Distributed Queries',1
reconfigure
select * into zzdygxhead_l from opendatasource('SQLOLEDB','Data Source=192.168.20.90;User ID=SA;Password=xxzx9936!').AIS20170101022712.[dbo].表名称
/*使用完毕后,记得一定要要关闭它,因为这是一个安全隐患,切记执行下面的SQL语句*/
exec sp_configure 'Ad Hoc Distributed Queries',0
reconfigure
exec sp_configure 'show advanced options',0
reconfigure
以上是关于异地取数的主要内容,如果未能解决你的问题,请参考以下文章