G
Guest
Hi all,
I would like to have a functionality that saves/updates a given DataTable
into the DB while its structure is unknown.
I think of 2 possible solutions:
1) to use SqlCommandBuilder - which is very expensive in the runtime
(performance issues)
2) constructing my own commands - iterating over the DataTable and construct
update, delete and insert commands. In this approach I have a small problem
as I don't know the original sql types of the columns and it seems to be an
equivalent to the first solution either.
Does anybody think/may suggests another solution, approach ?
Thanks in advance,
Uri
I would like to have a functionality that saves/updates a given DataTable
into the DB while its structure is unknown.
I think of 2 possible solutions:
1) to use SqlCommandBuilder - which is very expensive in the runtime
(performance issues)
2) constructing my own commands - iterating over the DataTable and construct
update, delete and insert commands. In this approach I have a small problem
as I don't know the original sql types of the columns and it seems to be an
equivalent to the first solution either.
Does anybody think/may suggests another solution, approach ?
Thanks in advance,
Uri