Click here to Skip to main content
11,409,450 members (46,343 online)
Click here to Skip to main content
Alternatives (1)

Using SQL bulk copy with your LINQ-to-SQL datacontext

, 25 Jan 2012 CPOL
How to use bulk insert with your LINQ-to-SQL datacontext


Members may post updates or alternatives to this current article in order to show different approaches or add new features.

23 Feb 2012
If the order of your columns is different in the LINQ to SQL class from that in the database, then you also need to add a column mapping to the bulk copier. Otherwise you get mysterious errors in some of the loaded columns!In my simple fix, I assume that the names match even if the order may...


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

No Biography provided

| | Privacy | Terms of Use | Mobile
Web04 | 2.8.150414.5 | Last Updated 25 Jan 2012
Article Copyright 2011 by Måns Tånneryd
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid