Click here to Skip to main content
15,920,110 members
Home / Discussions / Database
   

Database

 
GeneralRe: SQL Server problem Pin
Hesham Amin8-Feb-04 8:40
Hesham Amin8-Feb-04 8:40 
GeneralAdapter Update function not working for me. Pin
Michael A. Barnhart6-Feb-04 4:31
Michael A. Barnhart6-Feb-04 4:31 
GeneralRe: Adapter Update function not working for me. Pin
Michael A. Barnhart6-Feb-04 13:24
Michael A. Barnhart6-Feb-04 13:24 
GeneralRe: Adapter Update function not working for me. Pin
Bill Dean6-Feb-04 17:11
Bill Dean6-Feb-04 17:11 
GeneralRe: Adapter Update function not working for me. Pin
Michael A. Barnhart7-Feb-04 15:25
Michael A. Barnhart7-Feb-04 15:25 
GeneralRe: Adapter Update function not working for me. Pin
Bill Dean7-Feb-04 16:28
Bill Dean7-Feb-04 16:28 
GeneralRe: Adapter Update function not working for me. Pin
Michael A. Barnhart8-Feb-04 9:17
Michael A. Barnhart8-Feb-04 9:17 
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 

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.