M
mosscliffe
I have lots of old data files, which I am adding to an Access Database.
I read somewhere, that you can select directly on a CSV file or XML by
changing the Connection String - Extended Property - or I could have
been dreaming.
So to save a lot of coding and before I break everything, is it
possible to do something like the following
COPY CSV into an Access Table
INSERT INTO TABLE1 (Fld1, fld2, fld3, fld4) SELECT fld1, fld2, fld3,
fld4 from mycsv.csv
COPY XML into an Access Table
INSERT INTO TABLE1 (Fld1, fld2, fld3, fld4) SELECT fld1, fld2, fld3,
fld4 from myxml.xml
Using OleDbCommand.executeNonQuery
If it is possible, some sample code would be very helpful
Thanks for any help - Richard
I read somewhere, that you can select directly on a CSV file or XML by
changing the Connection String - Extended Property - or I could have
been dreaming.
So to save a lot of coding and before I break everything, is it
possible to do something like the following
COPY CSV into an Access Table
INSERT INTO TABLE1 (Fld1, fld2, fld3, fld4) SELECT fld1, fld2, fld3,
fld4 from mycsv.csv
COPY XML into an Access Table
INSERT INTO TABLE1 (Fld1, fld2, fld3, fld4) SELECT fld1, fld2, fld3,
fld4 from myxml.xml
Using OleDbCommand.executeNonQuery
If it is possible, some sample code would be very helpful
Thanks for any help - Richard