Connection string works for Entity framework but fails on bulk

c# database-connection entity-framework sql sqlbulkcopy

Popular Answer

The following information should be helpful to you:

Instead of utilizing the Entify framework, consider using a connection directly.

"Put here your database connection string" in the string csDestination;

Using bulk.DestinationTableName = datatable and (SqlConnection destinationConnection = new SqlConnection(csDestination)) and (SqlBulkCopy destination = new SqlBulkCopy(destinationConnection)). Datatable; TableName; bulk.WriteToServer;

0
3/31/2015 12:51:38 PM


Related Questions





Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow