DbDataAdapter.Update does nothing

O

Olivier Matrot

Hello,

I'm having trouble inserting data in a table.
Basically, I'm adding a datarow to a datatable that was populated from the
datasource with an adapter.
Before calling the Update command, the datatable is added a new row
(RowState for this new row = Added).
After calling the Update Method, rowstate becomes Unchanged and no exception
is thrown...
I'm trying to understand this behavior. Any help appreciated.
TIA.
 
O

Olivier Matrot

In fact it does something !
I'm using SQL Profiler to see what's going on underneath. I was only
catching TSQL events... No luck, the dataadapter is using RPC !!! Using the
(default) template, I could see now that everything is fine !!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top