473,387 Members | 1,520 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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=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
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 1257
On Mon, 6 Jun 2005 03:08:01 -0700, "Nick" <Ni**@discussions.microsoft.com> 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=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
¤ 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
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...
2
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....
6
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 =...
2
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) ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.