Click here to Skip to main content
15,926,281 members
Home / Discussions / Database
   

Database

 
GeneralRe: Adapter Update function not working for me. Pin
Gigiwig13-Feb-04 23:52
Gigiwig13-Feb-04 23:52 
Hi,

the problem is in the order of these 2 statements:
> m_dsTables.AcceptChanges();
> m_dataAdapter.Update(m_dsTables,m_tableName);

You have to update before accepting the changes in the DataSet.
AcceptChanges means: dataset, forget the information you have collected about the modification of the data since you have received it from the DataAdapters or the last call of AcceptChanges.

So if you call this method before the Update of the DataAdapter, it appears to the adapter that there were do modifications at all and nothing has to be written back in the database.
Concerning this topic also have a look at the EndCurrentEdit-method of the BindingManager and the GetChanges-method of the dataset.

Hope I could help
GeneralRe: Adapter Update function not working for me. Pin
Gigiwig14-Feb-04 0:02
Gigiwig14-Feb-04 0:02 
GeneralA quick question on table variables Pin
PrashantJ6-Feb-04 0:11
PrashantJ6-Feb-04 0:11 
GeneralRe: A quick question on table variables Pin
Mike Dimmick6-Feb-04 5:08
Mike Dimmick6-Feb-04 5:08 
GeneralProblem with VB6 and SQL Server 2000 Pin
gamerPotatoe5-Feb-04 22:40
gamerPotatoe5-Feb-04 22:40 
GeneralRe: Problem with VB6 and SQL Server 2000 Pin
Mazdak5-Feb-04 23:04
Mazdak5-Feb-04 23:04 
GeneralRe: Problem with VB6 and SQL Server 2000 Pin
Mike Dimmick5-Feb-04 23:06
Mike Dimmick5-Feb-04 23:06 
GeneralQuery Pin
girl_lash5-Feb-04 15:13
girl_lash5-Feb-04 15:13 
GeneralRe: Query Pin
Steve S10-Feb-04 6:21
Steve S10-Feb-04 6:21 
Generalsimple INSERT question Pin
hkl5-Feb-04 9:12
hkl5-Feb-04 9:12 
GeneralRe: simple INSERT question Pin
Edbert P5-Feb-04 19:07
Edbert P5-Feb-04 19:07 
GeneralConfigure SMTP Pin
DaKhucBuon4-Feb-04 23:08
DaKhucBuon4-Feb-04 23:08 
GeneralRe: Configure SMTP Pin
Vasudevan Deepak Kumar5-Feb-04 0:37
Vasudevan Deepak Kumar5-Feb-04 0:37 
GeneralRe: Configure SMTP Pin
DaKhucBuon5-Feb-04 14:40
DaKhucBuon5-Feb-04 14:40 
GeneralRe: Configure SMTP Pin
Vasudevan Deepak Kumar6-Feb-04 0:53
Vasudevan Deepak Kumar6-Feb-04 0:53 
GeneralAccess/ODBC: Item count fails Pin
mexicanchili4-Feb-04 21:51
mexicanchili4-Feb-04 21:51 
GeneralRe: Access/ODBC: Item count fails Pin
mexicanchili5-Feb-04 1:43
mexicanchili5-Feb-04 1:43 
Generaltrouble with IDataParameterCollection and ArrayList Pin
Nik Vogiatzis4-Feb-04 9:52
Nik Vogiatzis4-Feb-04 9:52 
GeneralRe: trouble with IDataParameterCollection and ArrayList Pin
Mike Dimmick5-Feb-04 0:43
Mike Dimmick5-Feb-04 0:43 
GeneralADO.NET Query Timeout Pin
afronaut4-Feb-04 6:28
afronaut4-Feb-04 6:28 
GeneralRe: ADO.NET Query Timeout Pin
Michael Potter4-Feb-04 10:16
Michael Potter4-Feb-04 10:16 
GeneralUsing TOP operator within a WHERE clause Pin
OBRon3-Feb-04 10:33
OBRon3-Feb-04 10:33 
GeneralRe: Using TOP operator within a WHERE clause Pin
David Llamas3-Feb-04 10:39
David Llamas3-Feb-04 10:39 
GeneralRe: Using TOP operator within a WHERE clause Pin
OBRon3-Feb-04 10:45
OBRon3-Feb-04 10:45 
Generaladvanced ADO.NET and Oracle Database Pin
koo93-Feb-04 9:33
koo93-Feb-04 9:33 

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.