Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / VB.NET / October 2004

Tip: Looking for answers? Try searching our database.

oledb and csv updateable?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Fred Flintstone - 27 Oct 2004 00:01 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.
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)

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.