Re: Ado.net DataSet Refresh
- From: v-wywang@xxxxxxxxxxxxxxxxxxxx (WenYuan Wang [MSFT])
- Date: Thu, 05 Jul 2007 10:04:44 GMT
Dear Manjree,
According to your description, you meet an issue that the inserted data
rows are not retrieved by dataadapter. However, if you close the
application and open it again, all new records are listed via DataSet. If I
misunderstand anything, please correct me thanks.
For such issue, please check the following two sections.
1) Please make sure new records have been inserted into underlying database.
You may open the underlying database and check each table and rows.
2) Please change the code snippet you pasted in the initial post.
What if you clear the dataset and fill it again? Will all rows be
retrieved by DataAdatper?
int r = adapter->InsertCommand->ExecuteNonQuery();
dataset->Clear();
adapter->Fill(dataset);
If this is the case, the issue may relate to adapter or dataset.
Please kindly test the above method and let me know the result. We are glad
to assist you.
Have a great day,
Sincerely,
Wen Yuan
Microsoft Online Community Support
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
.
- References:
- Re: Ado.net DataSet Refresh
- From: Manjree Garg
- Re: Ado.net DataSet Refresh
- From: WenYuan Wang [MSFT]
- Re: Ado.net DataSet Refresh
- Prev by Date: Re: Ado.net DataSet Refresh
- Next by Date: RE: Can you close without Close()?
- Previous by thread: Re: Ado.net DataSet Refresh
- Next by thread: Re: Ado.net DataSet Refresh
- Index(es):