【详图】
Access导入SQL Server 2005
将stInfo.mdb库中stInfomation表导入到SQL Server 2005的hhaspx库中hhaspx_info表,详细步骤如下:
在hhaspx库中新建查询,输入下面语句:
exec sp_configure 'show advanced options',1 reconfigure
exec sp_configure 'Ad Hoc Distributed Queries',1 reconfigure
select * into hhaspx_info from
OpenRowSet('microsoft.jet.oledb.4.0',';database=d:\\stinfo.mdb','select * from stInfomation') 执行查询成功后,如下图所示:
刷新后将出现hhaspx_info表,打开后效果图如下:
SQL Server 2005导入Access
将hhaspx库中hhaspx_info表导入到已经建立好的stinfo.mdb库的stInfomation表。 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',';database=d:\\stinfo.mdb','select * from stInfomation') select * from hhaspx_info;

