473,472 Members | 2,143 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

oledb and csv updateable?

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.
Nov 21 '05 #1
2 1070
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

"Fred Flintstone" <de**********@rogers.com> wrote in message
news:bO********************@rogers.com...
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.

Nov 21 '05 #2
On Tue, 26 Oct 2004 19:01:03 -0400, "Fred Flintstone" <de**********@rogers.com> wrote:

¤ 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 ~~~ pc******@ameritech.net
Microsoft MVP (Visual Basic)
Nov 21 '05 #3

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

Similar topics

4
by: Steve | last post by:
I have a products table where the PK is ProductID. Also have the standard Orders table and OrderDetails table. I created a query that joins the Orders table and OrderDetails table. The query...
3
by: Ray | last post by:
I have below query in Access 97 but it is not updateable by entering or editing data in the query. Can someone advise how to modify it to be updateable one. SELECT .PCode, .Model, .Description,...
1
by: Edward | last post by:
I've recently migrated the back end of one of my client's applications from Access to SQL Server. One of the forms is based on an Access query thus: SELECT dbo_tblDistributionDetail.*,...
1
by: mp | last post by:
Hi, I have following problem: Operation must use an updateable query I have use OleDb, C# and ASP.NET and MS Access DB named pubs. Code:
9
by: Pam Ammond | last post by:
I need the code to update the database when Save is clicked and a text field has changed. This should be very easy since I used Microsoft's wizards for the OleDBAdapter and OleDBConnection, and...
0
by: NicK chlam via DotNetMonster.com | last post by:
this is the error i get System.Data.OleDb.OleDbException: Syntax error in INSERT INTO statement. at System.Data.Common.DbDataAdapter.Update(DataRow dataRows, DataTableMapping tableMapping) at...
5
by: Web Search Store | last post by:
I'm getting this error on my web page: Error Type: Microsoft OLE DB Provider for ODBC Drivers (0x80004005) Operation must use an updateable query. /searchweb33.asp, line 5014 Here is the...
7
by: Stephen Poley | last post by:
I have the following situation: - a table of employees, keyed on employee-id; - a table of training sessions, keyed on session-id; - a requirement to log who was present at which session, plus...
1
by: tommydnp | last post by:
Is there a possibility to insert values into excel using only an oledb connection? It's no problem for me to select all data, but when I want to insert data or create a table, there's a problem. ...
0
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
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...
0
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
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
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.