Click here to Skip to main content
15,902,636 members
Home / Discussions / Database
   

Database

 
Questiona count query Pin
sana1723-Jan-09 10:37
sana1723-Jan-09 10:37 
AnswerRe: a count query Pin
Wendelius23-Jan-09 10:44
mentorWendelius23-Jan-09 10:44 
GeneralRe: a count query Pin
sana1723-Jan-09 11:13
sana1723-Jan-09 11:13 
GeneralRe: a count query Pin
Wendelius23-Jan-09 11:15
mentorWendelius23-Jan-09 11:15 
QuestionHow to modify a DataSet VB.NET Pin
enipla23-Jan-09 8:58
enipla23-Jan-09 8:58 
AnswerRe: How to modify a DataSet VB.NET Pin
Wendelius23-Jan-09 9:14
mentorWendelius23-Jan-09 9:14 
GeneralRe: How to modify a DataSet VB.NET Pin
enipla23-Jan-09 9:24
enipla23-Jan-09 9:24 
GeneralRe: How to modify a DataSet VB.NET Pin
Wendelius23-Jan-09 9:29
mentorWendelius23-Jan-09 9:29 
It's because you call AcceptChanges in the loop. That method clears the modified flag from all rows. The idea behind AcceptChanges is that you let the rows to be modified (or inserted or updated) until you put the data to a safe place (for example database). After that the modification flags can be removed.

So in short, remove the AcceptChanges.

The need to optimize rises from a bad design.My articles[^]

GeneralRe: How to modify a DataSet VB.NET Pin
enipla23-Jan-09 9:33
enipla23-Jan-09 9:33 
GeneralRe: How to modify a DataSet VB.NET Pin
Wendelius23-Jan-09 9:37
mentorWendelius23-Jan-09 9:37 
GeneralRe: How to modify a DataSet VB.NET Pin
enipla23-Jan-09 10:22
enipla23-Jan-09 10:22 
GeneralRe: How to modify a DataSet VB.NET [modified] Pin
Wendelius23-Jan-09 10:26
mentorWendelius23-Jan-09 10:26 
GeneralRe: How to modify a DataSet VB.NET Pin
enipla23-Jan-09 10:39
enipla23-Jan-09 10:39 
GeneralRe: How to modify a DataSet VB.NET Pin
Wendelius23-Jan-09 10:41
mentorWendelius23-Jan-09 10:41 
GeneralRe: How to modify a DataSet VB.NET Pin
enipla23-Jan-09 10:47
enipla23-Jan-09 10:47 
GeneralRe: How to modify a DataSet VB.NET Pin
Wendelius23-Jan-09 10:54
mentorWendelius23-Jan-09 10:54 
GeneralRe: How to modify a DataSet VB.NET Pin
enipla23-Jan-09 11:06
enipla23-Jan-09 11:06 
GeneralRe: How to modify a DataSet VB.NET Pin
Wendelius23-Jan-09 11:12
mentorWendelius23-Jan-09 11:12 
QuestionUndo and Redo in Databases Pin
rezac423-Jan-09 6:02
rezac423-Jan-09 6:02 
AnswerRe: Undo and Redo in Databases Pin
Wendelius23-Jan-09 6:56
mentorWendelius23-Jan-09 6:56 
AnswerPerformance Question about SQL 2005 Pin
felopater23-Jan-09 1:28
felopater23-Jan-09 1:28 
GeneralRe: Performance Question about SQL 2005 Pin
Aman Bhullar23-Jan-09 2:37
Aman Bhullar23-Jan-09 2:37 
GeneralRe: Performance Question about SQL 2005 Pin
Ennis Ray Lynch, Jr.23-Jan-09 3:07
Ennis Ray Lynch, Jr.23-Jan-09 3:07 
GeneralRe: Performance Question about SQL 2005 Pin
Wendelius23-Jan-09 3:29
mentorWendelius23-Jan-09 3:29 
GeneralRe: Performance Question about SQL 2005 Pin
felopater23-Jan-09 9:46
felopater23-Jan-09 9:46 

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.