I have connected to some csv files using oledb, and am able to acces the
data vis SQL statements.
Is it possible to update the tables, via insert statements?
I have not been able, but can't remember the error, I'm not at my developer
PC.
Something about key fields.
Regardless of my problem, does anyone know if it can be done, and if so have
a snipet to demonstrate?
any assistance will be appreciated.
Bernie Yaeger - 27 Oct 2004 00:49 GMT
Hi,
It's data so it should be updateable. The error you are getting probably
relates to the fact that the csv file has no primary key field(s) and you
are probably not creating an update command manually. The commandbuilder
object is very generic and wants to be able to update only single tables
which do have primary keys.
HTH,
Bernie Yaeger
>I have connected to some csv files using oledb, and am able to acces the
>data vis SQL statements.
[quoted text clipped - 6 lines]
>
> any assistance will be appreciated.
Paul Clement - 27 Oct 2004 18:32 GMT
¤ I have connected to some csv files using oledb, and am able to acces the
¤ data vis SQL statements.
¤ Is it possible to update the tables, via insert statements?
¤ I have not been able, but can't remember the error, I'm not at my developer
¤ PC.
¤ Something about key fields.
¤ Regardless of my problem, does anyone know if it can be done, and if so have
¤ a snipet to demonstrate?
¤
¤ any assistance will be appreciated.
¤
The Text ISAM driver does not support the ability to update a text file. You would need to use the
file I/O classes to perform the updates.
Paul ~~~ pclement@ameritech.net
Microsoft MVP (Visual Basic)