SQL Bulkcopy using DATA Access block
Posted
by Sathish
on Stack Overflow
See other posts from Stack Overflow
or by Sathish
Published on 2010-04-19T13:49:06Z
Indexed on
2010/04/19
13:53 UTC
Read the original article
Hit count: 327
c#
I am using the below piece of code for SQL Bulk copy
using (SqlConnection con = new SqlConnection(strConString))
{
con.Open();
SqlBulkCopy sqlBC = new SqlBulkCopy(con);
sqlBC.DestinationTableName = "SomeTable";
sqlBC.WriteToServer(dtOppConSummary);
}
Can anyone provide me the equvalent code using Data access block Enterprise library
© Stack Overflow or respective owner