PC Review


Reply
Thread Tools Rate Thread

BindingNavigator, SQL Embeeded and new records

 
 
B i r d
Guest
Posts: n/a
 
      8th Oct 2008
For whatever reason, I cannot get the simplest database app to work.
This is my environment:
SQL 2008 Standard
SQL Embedded 3.? (Not express)

Sample database table:
table people
peopleID (int, primary key, identity etc)
fullname nvarchar
whatever nvarchar

I then create a new form, drop a bindingnavigator on the form, link it
to the database which generates the dataset, datasource and
dataadaptors.

I then go into the database and add 2 rows manually for content.

I then add two textboxes to the form and via the databinding connect
it to the datasource.

I then add an event for bindingsource item changed (I believe that is
the event), and add an event for onformclose. in both of these methods
I call endEdit to the datasource, and pass the dataset to the
dataadaptor.Update.

When I am running, I can change either of the two rows, and they are
commited to the database, however if I add an extra row, I get a
Concurrency violation: the UpdateCommand affected 0 of the expected 1

I have done nothing fancy, all of the updates work, however I cannot
add new rows and am totally stumped. Googling the concurrency error
only gives info regarding having a database name in the update
statement, which does not exist (and updates work just fine).

Any advise would be appreciated, I am stumped.

Thanks!
Derek
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
BindingNavigator, SQL Embedded and new records Options B i r d Microsoft Dot NET Framework 0 8th Oct 2008 01:34 PM
Embeeded resources Vs. Content files Lonifasiko Microsoft Dot NET Compact Framework 20 17th Jan 2006 07:08 AM
Embeeded resources Vs. Content files Lonifasiko Microsoft Dot NET Compact Framework 0 9th Jan 2006 11:01 AM
xp embeeded registration number Jason Windows XP Embedded 1 29th Jun 2005 09:46 PM
Another solution for multiple embeeded IF Stefan Robert Microsoft Excel Worksheet Functions 7 10th Dec 2004 02:36 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:56 AM.