ITPub博客

首页 > > > sqlserver跨服务器插入数据

sqlserver跨服务器插入数据

作者:飘絮絮絮丶 时间:2023-03-22 14:21:33 0 删除 编辑

今天的业务涉及到了跨服务器链接数据 且 需要将远程数据插入到本地。特记录,以供学习..备份

exec sp_configure 'show advanced options',1
reconfigure
exec sp_configure 'Ad Hoc Distributed Queries',1
reconfigure



select * into hyye_info from openrowset( 'SQLOLEDB ', '192.168.0.233'; 'sa'; 'sa',远程数据库名称.dbo.hyye_info)



exec sp_configure 'Ad Hoc Distributed Queries',
reconfigure
exec sp_configure 'show advanced options',
reconfigure

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/69946831/viewspace-3133481/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2019-09-09

  • 博文量
    2646
  • 访问量
    42168