Everything Web

DataAdapter

Using CommandBuilder in a transaction (Copy data - part 2).

June 24, 2009dgrinberg

Once I got the initial data transfer up and running, I needed to place the whole thing into a transaction, I was doing multiple table transfers (with some data manipulation).  I could not have half a database transferred, even if I did throw an error.

I simply threw in an SqlTransaction, and made everything run inside that.

However, I hit an exception when using the SqlCommandBuilder to create the insert command:

Copying data from one database to another - Part 1

June 18, 2009dgrinberg
The task was straightforward, or so I thought; create a small application that transfers an applications configuration information from the test database into the production database