G
Guest
Hi,
I have two tables with identical columns(same names,data types and constraints) in two different databases.
Say c1,c2,c3.....c90.
The order of the columns are different in the two tables.
Say c1,c2,c3,....c90 in source table and
say c5,c6,c9,.....c90 in the destination table.
Without knowing beforehand as to what the order of columns are in the destination table,
how do I take a record out of source table and insert it in destination table ?
I am able to successfully do it if the columns of both the
tables are in the same order.(two dataadapters and performing an update as suggested by Miha).
I had posted a similar query before.Miha had suggested that column order doesn't matter at all.
Parameters are mapped to columns normally.
( IDataParameter.SourceColumn property).
I did not understand what it meant.Does it mean that while doing the update, the corresponding column names are automatically mapped ? I tried and and I am getting errors.
Could anyone help out ?
I have two tables with identical columns(same names,data types and constraints) in two different databases.
Say c1,c2,c3.....c90.
The order of the columns are different in the two tables.
Say c1,c2,c3,....c90 in source table and
say c5,c6,c9,.....c90 in the destination table.
Without knowing beforehand as to what the order of columns are in the destination table,
how do I take a record out of source table and insert it in destination table ?
I am able to successfully do it if the columns of both the
tables are in the same order.(two dataadapters and performing an update as suggested by Miha).
I had posted a similar query before.Miha had suggested that column order doesn't matter at all.
Parameters are mapped to columns normally.
( IDataParameter.SourceColumn property).
I did not understand what it meant.Does it mean that while doing the update, the corresponding column names are automatically mapped ? I tried and and I am getting errors.
Could anyone help out ?