Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > OleDbAdapter.Update failure

Reply
Thread Tools

OleDbAdapter.Update failure

 
 
Pavel Gusak
Guest
Posts: n/a
 
      11-04-2003
I'm trying to update Access database with data from DataSet in my Web
Service.
Does not work. Generates Concurrency violation error, however, nobody works
with db at the time.
Can you help me?
The code is below.
Thanks.

protected void DataSetUpdate(DataSet ds, string tableName)
{
OleDbDataAdapter adapter;
OleDbCommandBuilder builder;
string selectCommand = "SELECT * FROM " + tableName;
adapter = new OleDbDataAdapter(selectCommand, conn);
builder = new OleDbCommandBuilder(adapter);
adapter.InsertCommand = builder.GetInsertCommand();
adapter.UpdateCommand = builder.GetUpdateCommand();
adapter.DeleteCommand = builder.GetDeleteCommand();
//adapter.ContinueUpdateOnError = true;
adapter.Update(ds, tableName);
adapter.Dispose();
}


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Success Or Failure: There Is No Such Thing As Failure bs866806@163.com C Programming 0 01-06-2008 11:41 AM
[JAVA] [EVALUATION] - The Java Failure (Sorry: The Java(tm) Failure) Ilias Lazaridis Java 0 02-01-2005 10:32 AM
windows socket failure - still having trouble =?Utf-8?B?Q01Dcm9uYW4=?= Wireless Networking 2 10-03-2004 01:10 AM
let's try that again - windows socket failure =?Utf-8?B?Q01Dcm9uYW4=?= Wireless Networking 2 10-02-2004 09:06 AM
Re: 802.1x dhcp failure dpablo Wireless Networking 0 09-01-2004 12:03 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57