执行1. 为开启所需服务;成功后执行3.进行导数据;执行完后关闭服务,执行2. 1.启用Ad Hoc Distributed Queries: exec sp_configure 'show advanced options',1 reconfigure exec sp_configure 'Ad Hoc Distributed Queries',1 reconfigure 2.为了安全使用完成后,关闭Ad Hoc Distributed Queries: exec sp_configure 'Ad Hoc Distributed Queries',0 reconfigure exec sp_configure 'show advanced options',0 reconfigure 3. INSERT TPOLPDTPLNH SELECT * FROM OPENROWSET('SQLOLEDB','10.69.4.53\ebenefitqa';'dev';'developer',eCompassSGP132QA.DBO.TPOLPDTPLNH) |
|