现在的位置: 首页 > 综合 > 正文

access 导入 sqlserver

2013年01月09日 ⁄ 综合 ⁄ 共 333字 ⁄ 字号 评论关闭

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


INSERT INTO 表名(字段1,字段2,字段3)
SELECT 字段1,字段2,字段3
FROM opendatasource('Microsoft.Jet.OLEDB.4.0','Data Source="d:/db.mdb"').表名


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

抱歉!评论已关闭.