Click here to Skip to main content
15,919,931 members
Home / Discussions / Database
   

Database

 
GeneralRe: Why my SQL Server is so slow? Pin
leppie27-Dec-02 12:25
leppie27-Dec-02 12:25 
AnswerRe: Why my SQL Server is so slow? Pin
Thomas Lau30-Dec-02 18:28
Thomas Lau30-Dec-02 18:28 
GeneralCount total records Pin
Jassim Rahma23-Dec-02 21:18
Jassim Rahma23-Dec-02 21:18 
GeneralRe: Count total records Pin
Mazdak24-Dec-02 1:34
Mazdak24-Dec-02 1:34 
GeneralRe: Count total records Pin
dangdinhtien26-Dec-02 2:52
dangdinhtien26-Dec-02 2:52 
GeneralDeleting rows in disconnected dataset Pin
Ludwig Stuyck23-Dec-02 7:53
Ludwig Stuyck23-Dec-02 7:53 
GeneralRe: Deleting rows in disconnected dataset Pin
Mazdak23-Dec-02 8:08
Mazdak23-Dec-02 8:08 
GeneralRe: Deleting rows in disconnected dataset Pin
Ludwig Stuyck23-Dec-02 9:24
Ludwig Stuyck23-Dec-02 9:24 
Hi there,

well, in short, I use the following approach:

- at client side, I have a typed dataset connected to a listbox. If I select an item in the listbox and hit a delete button, that dataset is serialized and sent to the server through the http-channel.

- at server side, it is deserialized and written to the database:

SqlDataAdapter sqlda = new SqlDataAdapter("select * from tbSearch", sqlcon)
SqlCommandBuilder sqlcomb = new SqlCommandBuilder(sqlda);	
sqlda.Update(dsetUserSearches, dsetUserSearches.tbSearch.TableName);
dsetUserSearches.AcceptChanges();

I then send this dataset dsetUserSearches back to the client, where it is merged with the client dataset:

dsetUserSearches.Merge(us, false);

This works with updates and insertions, but it does not when I delete items in the listbox. The strange thing is, that it works the first time, it doesn't the second time, it does the third time, it doesn't the 4th time, etc...

The error I get is 'concurrency violation'.

I'm stuck here....

PS - I'm using sql server

Ludwig
GeneralRe: Deleting rows in disconnected dataset Pin
Mazdak23-Dec-02 9:42
Mazdak23-Dec-02 9:42 
GeneralRe: Deleting rows in disconnected dataset Pin
Ludwig Stuyck23-Dec-02 10:07
Ludwig Stuyck23-Dec-02 10:07 
GeneralRe: Deleting rows in disconnected dataset Pin
Nick Seng26-Dec-02 23:17
Nick Seng26-Dec-02 23:17 
GeneralRe: Deleting rows in disconnected dataset Pin
lustuyck27-Dec-02 3:47
lustuyck27-Dec-02 3:47 
GeneralRe: Deleting rows in disconnected dataset Pin
Nick Seng27-Dec-02 14:21
Nick Seng27-Dec-02 14:21 
GeneralPaging in ADO.NET Pin
vasily23-Dec-02 0:31
vasily23-Dec-02 0:31 
GeneralRe: Paging in ADO.NET Pin
leppie23-Dec-02 6:08
leppie23-Dec-02 6:08 
GeneralNewbie needs help Pin
Benjamin Ng22-Dec-02 16:58
Benjamin Ng22-Dec-02 16:58 
GeneralRe: Newbie needs help Pin
Paul Ingles23-Dec-02 1:37
Paul Ingles23-Dec-02 1:37 
GeneralRe: Newbie needs help Pin
Tatham26-Dec-02 7:07
Tatham26-Dec-02 7:07 
GeneralSQL SELECT Question Pin
Larry Antram21-Dec-02 12:19
Larry Antram21-Dec-02 12:19 
GeneralRe: SQL SELECT Question Pin
Rein Hillmann21-Dec-02 17:23
Rein Hillmann21-Dec-02 17:23 
GeneralAutomate registering a DSN Pin
Robby20-Dec-02 4:10
Robby20-Dec-02 4:10 
GeneralRe: Automate registering a DSN Pin
Rein Hillmann20-Dec-02 6:03
Rein Hillmann20-Dec-02 6:03 
GeneralRe: Automate registering a DSN Pin
Alexander Kojevnikov22-Dec-02 2:07
Alexander Kojevnikov22-Dec-02 2:07 
GeneralRe: Automate registering a DSN Pin
mwilliamson23-Dec-02 9:44
mwilliamson23-Dec-02 9:44 
GeneralTo wrap or not to wrap... that´s the question... Pin
Mauricio Ritter19-Dec-02 0:17
Mauricio Ritter19-Dec-02 0:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.