从SQLServer中导出数据到Access

--开启

exec sp_configure 'show advanced options',1

reconfigure

exec sp_configure 'Ad Hoc Distributed Queries',1

reconfigure

--执行

insert into  OPENROWSET('Microsoft.Jet.OLEDB.4.0','C:/CorpData.mdb';'admin';'', Products) select * from Products

--关闭

exec sp_configure 'Ad Hoc Distributed Queries',0

reconfigure

exec sp_configure 'show advanced options',0

reconfigure

你可能感兴趣的:(SQL,SERVER)