Dynamic Column Mapping

B

Bill

Hi,
I need to take out records from one table and insert it
into another identical table via a C# application.Is there
a way to dynamically determine the corresponding columns
of the two tables ?

If I use an XML file to map the corresponding columns of
the two tables, how do I check the mapping file
dynamically before data insertion ?

Any help is appreciated.

Thank You
 
K

Kathleen Dollard

Bill,

Could you clarify what you mean by "check mapping file dynamically"?
 
B

Bill

By dynamic mapping, I meant that before the records are
transferred from one table to the other(source to target),
the xml file which will have the field names of the two
tables mapped, is to be checked so that while formulating
the "insert into" statement, the column names of the
target table should match that of the source table.
 

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