whateveragain
Programmer
I'm trying to import from a free VFP table on my hard drive. 1) Do I have to be concerned about Ad Hoc Distributed Queries being turned off? 2) What is wrong with the syntax in the following code? I'm getting an error message: Msg 102, Incorrect syntax near ','
Code:
use yeldata
go
Insert into dirmsarf(dircode, msa, poppct, hhldpct, emppct, buspct, whtpct, blkpct, homecode, msacode2)
(select dirmsarf2.dircode, dirmsarf2.msa, dirmsarf2.poppct,
dirmsarf2.hhldpct, dirmsarf2.emppct, dirmsarf2.buspct, dirmsarf2.whtpct, dirmsarf2.blkpct, dirmsarf2.homecode, dirmsarf2.msacode2 from
OPENDATASOURCE('MSDASQL','Driver=Microsoft Visual FoxPro Driver SourceDB=c:\yeldata\Dirmsarf2.dbf;
SourceType=DBF','select * from Dirmsarf2')
Thanks
Code:
use yeldata
go
Insert into dirmsarf(dircode, msa, poppct, hhldpct, emppct, buspct, whtpct, blkpct, homecode, msacode2)
(select dirmsarf2.dircode, dirmsarf2.msa, dirmsarf2.poppct,
dirmsarf2.hhldpct, dirmsarf2.emppct, dirmsarf2.buspct, dirmsarf2.whtpct, dirmsarf2.blkpct, dirmsarf2.homecode, dirmsarf2.msacode2 from
OPENDATASOURCE('MSDASQL','Driver=Microsoft Visual FoxPro Driver SourceDB=c:\yeldata\Dirmsarf2.dbf;
SourceType=DBF','select * from Dirmsarf2')
Thanks