?
Solved

Update Error

Posted on 2006-11-24
1
Medium Priority
?
192 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
1 Comment
 
LVL 29

Accepted Solution

by:
Nightman earned 2000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

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…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses
Course of the Month13 days, 22 hours left to enroll

809 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