首先设置SQL2005服务组件

EXEC sp_configure 'show advanced options', 1
GO
RECONFIGURE
GO
EXEC sp_configure 'Ad Hoc Distributed Queries', 1
GO
RECONFIGURE
GO

再通过SQL语句来查询导入数据

insert into sa_tree select * from OPENROWSET('SQLOLEDB', 'SERVER=172.27.27.126;uid=sa;pwd=jibojibo;Database=snsDB','select * from sa_tree') as a

相关文章:

  • 2021-07-05
  • 2021-11-13
  • 2022-12-23
  • 2022-01-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-02
  • 2022-12-23
  • 2022-02-19
  • 2021-12-05
  • 2021-07-02
  • 2021-08-28
  • 2021-07-11
相关资源
相似解决方案