1 建立连接
sp_addlinkedserver 'linkedserver''Access'
'Microsoft.Jet.OLEDB.4.0',
'C:\access.mdb'

2 查询
SELECT *  into newtable 
FROM OPENQUERY(linkedserver, 'SELECT * FROM table'); 

注:
使用 sp_addlinkedserver 与 OpenQuery会避免一部分错误的发生
另外
sp_configure 'show advanced options'1;
GO
RECONFIGURE;
GO
sp_configure 
'Ole Automation Procedures'1;
GO
RECONFIGURE;
GO
sp_configure 
'Ad Hoc Distributed Queries' ,1
RECONFIGURE;
GO

应该会对你有用。

相关文章:

  • 2021-06-01
  • 2021-10-01
  • 2022-01-04
  • 2022-12-23
  • 2021-11-13
  • 2021-11-23
猜你喜欢
  • 2021-03-31
  • 2022-01-29
  • 2021-06-07
  • 2022-01-21
  • 2021-05-20
  • 2021-12-17
  • 2022-02-20
相关资源
相似解决方案