BULK Upload

Topics: Data Access Application Block, General discussion
Dec 9, 2008 at 10:00 AM
Hi,
can anyone share with me a code snippet for bulk Uplaod using enterprise library.
I am using sql server express edition.

Thanks,
Proxyvon
Dec 9, 2008 at 11:55 AM
You would still use the SqlBulkCopy class,

Database db = DatabaseFactory.CreateDatabase();
using (SqlBulkCopy bulkCopy = new SqlBulkCopy(db.CreateConnection() as SqlConnection))
{
       ......
}



Sarah Urmeneta

Global Techology & Solutions
Avanade, Inc.
entlib.support@avanade.com

Jul 30, 2010 at 9:00 AM

And what about wrapping SqlBulkCopy in a transaction? As described here http://entlib.codeplex.com/Thread/View.aspx?ThreadId=16580

Jul 30, 2010 at 10:03 AM

I replied to the other thread.

Sarah Urmeneta
Global Techology & Solutions
Avanade, Inc.
entlib.support@avanade.com