insert into TABLENAME select *
from OPENROWSET('SQLOLEDB',
'SERVER=10.25.65.32;uid=用户;pwd=密码;Database=库名','select  * from 表名') as a

此语句可用于本地sql脚本操作外部服务器的结果集使用。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-11
  • 2022-12-23
  • 2021-05-27
  • 2021-11-26
  • 2021-12-10
  • 2021-04-29
猜你喜欢
  • 2021-12-20
  • 2022-01-28
  • 2021-07-19
  • 2021-12-05
  • 2021-06-14
  • 2021-05-31
相关资源
相似解决方案