Solved

Update Error

Posted on 2006-11-24
1
187 Views
Last Modified: 2010-04-16
Recieve a oled db error saying i must use a updateable query

string cmdString_Update = "UPDATE [table 1] SET yn = True WHERE yn=False AND type='avb'";
                   
                    conn = new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:/backend.mdb;Persist Security Info=True;Password=**;User ID=user;Mode=Read;Jet OLEDB:System database=c:/sec.mdw");


OleDbCommand mycommand_Update = new OleDbCommand(cmdString_Update, conn);
                           
                           
                           mycommand_Update.ExecuteNonQuery(); <--- Points to this line of code
0
Comment
Question by:ziwez0
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 29

Accepted Solution

by:
Nightman earned 500 total points
ID: 18007007
have a look at http://support.microsoft.com/kb/175168
Shows 4 possible causes.

Although I suspect yours is number 2 - your connection string explicitly sets the mode to Read, not ReadWrite.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question