T
Timothy Parez
Hello,
Let's say I first fill a DataTable in a DataSet by using some
SQL command
"SELECT * FROM SomeTable"
Now I have another database,
and it has another table.
Now I want to send the DataSet I created from the first database
to this second database, but the table in the second database does not
have all the fields the first one does.
So I would like to send only a few fields from the DataTable in my
DataSet to the second table
Example
TABLE1
id
name
street
number
securityId
groupId
transactionId
TABLE2
id
name
transactionId
Of course the real example has a lot more fields.
I do SELECT * FROM TABLE1
put that in a DataTable
and now I want to send the rows in that DataTable to Table2
without the fields TABLE2 doesn't have.
How can I do this ?
Let's say I first fill a DataTable in a DataSet by using some
SQL command
"SELECT * FROM SomeTable"
Now I have another database,
and it has another table.
Now I want to send the DataSet I created from the first database
to this second database, but the table in the second database does not
have all the fields the first one does.
So I would like to send only a few fields from the DataTable in my
DataSet to the second table
Example
TABLE1
id
name
street
number
securityId
groupId
transactionId
TABLE2
id
name
transactionId
Of course the real example has a lot more fields.
I do SELECT * FROM TABLE1
put that in a DataTable
and now I want to send the rows in that DataTable to Table2
without the fields TABLE2 doesn't have.
How can I do this ?