473,513 Members | 2,406 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=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 1267
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
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...
2
3028
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
13980
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
1812
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
7264
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,...
0
7166
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
7386
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
7543
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...
1
7106
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...
0
7534
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...
0
4749
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...
0
1601
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 ...
0
459
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...

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.