G
Guest
Hi,
I have a dataset with tables that are similar to some empty tables in a
datasource (the table names are the same, and there is the same number of
columns with the same name and type - the schemas are almost identical).
What I need to do, is get data from the tables in my dataset, back into the
datasource. My problem is that the tables in my dataset were not created
from the datasource, and have no mapping to them. What I have tried so far,
is to create an adapter with a connection to the data source, add an insert
command to it, and create table and column mappings. I then call the Update
method on the adapter. After this, I am almost overjoyed to get no
Exceptions, but the empty tables in my datasource, unfortunately, remain
empty. I suspect that my Insert statement is not being called ( the RowState
of the rows that I am trying to write to the data source is "Unchanged").
Maybe I am taking a wrong aproach to this altogether. Anyone feel like they
can help?
Thanks in Advance!
Yuri
I have a dataset with tables that are similar to some empty tables in a
datasource (the table names are the same, and there is the same number of
columns with the same name and type - the schemas are almost identical).
What I need to do, is get data from the tables in my dataset, back into the
datasource. My problem is that the tables in my dataset were not created
from the datasource, and have no mapping to them. What I have tried so far,
is to create an adapter with a connection to the data source, add an insert
command to it, and create table and column mappings. I then call the Update
method on the adapter. After this, I am almost overjoyed to get no
Exceptions, but the empty tables in my datasource, unfortunately, remain
empty. I suspect that my Insert statement is not being called ( the RowState
of the rows that I am trying to write to the data source is "Unchanged").
Maybe I am taking a wrong aproach to this altogether. Anyone feel like they
can help?
Thanks in Advance!
Yuri