W
wp231957
Unregistered / Unconfirmed
GUEST, unregistred user!
query1.Close;
query1.RequestLive:=true;
query1.DatabaseName:='';
query1.SQL.Clear ;
query1.SQL.text:='insert into openrowset('+#39+'MSDASQL'+#39+','+#39+
'Driver=Microsoft Visual FoxPro Driver;SourceType=DBF;SourceDB=d:/'+#39+','+
#39+'select * from [baoxian.DBF]'+#39+') select * from 1.xls' ;
showmessage(query1.SQL.Text );
query1.ExecSQL;
query1.RequestLive:=true;
query1.DatabaseName:='';
query1.SQL.Clear ;
query1.SQL.text:='insert into openrowset('+#39+'MSDASQL'+#39+','+#39+
'Driver=Microsoft Visual FoxPro Driver;SourceType=DBF;SourceDB=d:/'+#39+','+
#39+'select * from [baoxian.DBF]'+#39+') select * from 1.xls' ;
showmessage(query1.SQL.Text );
query1.ExecSQL;