Click here to Skip to main content
15,897,187 members
Home / Discussions / Database
   

Database

 
GeneralRe: HELP ! HELP! Please Pin
Sarvesvara (BVKS) Dasa27-Mar-04 3:06
Sarvesvara (BVKS) Dasa27-Mar-04 3:06 
GeneralCRecordSet and requery Pin
pnpfriend24-Mar-04 4:44
pnpfriend24-Mar-04 4:44 
GeneralRe: CRecordSet and requery Pin
kzyczynski24-Mar-04 6:23
kzyczynski24-Mar-04 6:23 
GeneralContinuous Datagrid update Pin
JM_FL24-Mar-04 1:10
JM_FL24-Mar-04 1:10 
GeneralRe: Continuous Datagrid update Pin
Mike Dimmick24-Mar-04 1:58
Mike Dimmick24-Mar-04 1:58 
GeneralAcess Workflow and SQL 8.0 Pin
vikramlinux23-Mar-04 18:19
vikramlinux23-Mar-04 18:19 
GeneralOleDbAdapter.Update problem Pin
Tristan Rhodes23-Mar-04 10:35
Tristan Rhodes23-Mar-04 10:35 
GeneralRe: OleDbAdapter.Update problem Pin
Edbert P23-Mar-04 11:35
Edbert P23-Mar-04 11:35 
I think it is because you are calling ds_Data.AcceptChanges().
It commits all the changes made to your dataset which means the DataRowState for all rows are changed from Added to Unchanged. Therefore, your adapter.Update(currentTable) won't update your database as the data in the table is considered original/unchanged.

Just remove the ds_Data.AcceptChanges() as the adapter.Update() will automatically call this for you. As long as you set the right InsertCommand your database should be updated.

Edbert P.
Sydney, Australia.
GeneralRe: OleDbAdapter.Update problem Pin
Tristan Rhodes24-Mar-04 11:53
Tristan Rhodes24-Mar-04 11:53 
GeneralConnectionless recordset error Pin
Adam Gritt23-Mar-04 4:35
Adam Gritt23-Mar-04 4:35 
GeneralRe: Connectionless recordset error Pin
Mike Dimmick24-Mar-04 2:13
Mike Dimmick24-Mar-04 2:13 
GeneralRe: Connectionless recordset error Pin
Adam Gritt24-Mar-04 3:29
Adam Gritt24-Mar-04 3:29 
Generalmoving in mfc recordset Pin
kzyczynski23-Mar-04 4:04
kzyczynski23-Mar-04 4:04 
GeneralRe: moving in mfc recordset Pin
DiWa25-Mar-04 8:33
DiWa25-Mar-04 8:33 
GeneralRe: moving in mfc recordset Pin
kzyczynski26-Mar-04 3:19
kzyczynski26-Mar-04 3:19 
GeneralI need Free SQL Server 2000 EBook Pin
xstoneheartx22-Mar-04 23:52
xstoneheartx22-Mar-04 23:52 
GeneralRe: I need Free SQL Server 2000 EBook Pin
Mike Dimmick23-Mar-04 3:54
Mike Dimmick23-Mar-04 3:54 
GeneralRe: I need Free SQL Server 2000 EBook Pin
Sarvesvara (BVKS) Dasa27-Mar-04 3:07
Sarvesvara (BVKS) Dasa27-Mar-04 3:07 
GeneralMonth to date in SP Pin
Anonymous22-Mar-04 10:26
Anonymous22-Mar-04 10:26 
GeneralRe: Month to date in SP Pin
Edbert P22-Mar-04 11:27
Edbert P22-Mar-04 11:27 
GeneralRe: Month to date in SP Pin
michanne26-Mar-04 2:58
michanne26-Mar-04 2:58 
GeneralSQL For Smarties Pin
afronaut22-Mar-04 10:00
afronaut22-Mar-04 10:00 
GeneralRe: SQL For Smarties Pin
Edbert P22-Mar-04 11:16
Edbert P22-Mar-04 11:16 
GeneralRe: SQL For Smarties Pin
afronaut22-Mar-04 11:42
afronaut22-Mar-04 11:42 
GeneralRe: SQL For Smarties Pin
Edbert P22-Mar-04 12:08
Edbert P22-Mar-04 12:08 

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.