473,672 Members | 2,876 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Updating CSV files with Connection object

Hi,

I have a scenario wherein I need to update a record in a CSV file. However,
it seems that with the connection string I am using,

strConnString = "Provider=Micro soft.Jet.OLEDB. 4.0;Data
Source=D:\Webro ot\DB;Extended Properties='tex t;HDR=Yes;FMT=D elimited'"

I can merely insert and select, and not update. Anybody facing this problem?
And what is the alternative to it? I have been able to read from the CSV
files and have performed joins as well on multiple CSV files but am stuck on
the update functionality.
Any pointers on the approach?
I read somewhere that Jet.OleDB does not provide support for updates and
deletes... Is this true? and if yes, then what other connection can i use?

Nick.
Jul 21 '05 #1
1 1282
On Mon, 6 Jun 2005 03:08:01 -0700, "Nick" <Ni**@discussio ns.microsoft.co m> wrote:

¤ Hi,
¤
¤ I have a scenario wherein I need to update a record in a CSV file. However,
¤ it seems that with the connection string I am using,
¤
¤ strConnString = "Provider=Micro soft.Jet.OLEDB. 4.0;Data
¤ Source=D:\Webro ot\DB;Extended Properties='tex t;HDR=Yes;FMT=D elimited'"
¤
¤ I can merely insert and select, and not update. Anybody facing this problem?
¤ And what is the alternative to it? I have been able to read from the CSV
¤ files and have performed joins as well on multiple CSV files but am stuck on
¤ the update functionality.
¤ Any pointers on the approach?
¤ I read somewhere that Jet.OleDB does not provide support for updates and
¤ deletes... Is this true? and if yes, then what other connection can i use?

The Text driver ISAM does not support updates and deletes so you can't really use ADO.NET. You will
need to use the System.IO namespace instead.
Paul
~~~~
Microsoft MVP (Visual Basic)
Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
229
by: Nick | last post by:
Hi, I have a scenario wherein I need to update a record in a CSV file. However, it seems that with the connection string I am using, strConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\Webroot\DB;Extended Properties='text;HDR=Yes;FMT=Delimited'" I can merely insert and select, and not update. Anybody facing this problem? And what is the alternative to it? I have been able to read from the CSV
2
3038
by: barret bonden | last post by:
(closest newsgroup I could find) Error Type: ADODB.Recordset (0x800A0CB3) Current Recordset does not support updating. This may be a limitation of the provider, or of the selected locktype. /asp_data3_add.asp, line 30 <% 'Dimension variables Dim adoCon 'Holds the Database Connection Object
6
13993
by: Rich | last post by:
Dim da As New SqlDataAdapter("Select * from tbl1", conn) dim tblx As New DataTable da.Fill(tblx) '--works OK up to this point da.UpdateCommand = New SqlCommand da.UpdateCommand.Connection = conn da.UpdateCommand.CommandText = "Update tbl1 set fld1 = 'test' where ID = 1" da.Update(tblx) '--tblx/tbl1 not getting updated here.
2
1818
by: Smurfas | last post by:
What's wrong? Compiletor don't show anything, but whet I start program show this error: "Error updating the employee details!" protected void Button1_Click(object sender, EventArgs e) { //416 puslapis // Declare objects SqlConnection conn;
0
8505
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
8648
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8701
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6261
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5725
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4446
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2845
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2097
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1842
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.