Click here to Skip to main content
12,999,867 members (49,868 online)
Click here to Skip to main content
Alternatives (1)
Add your own
alternative version


29 bookmarked
Posted 9 Dec 2011

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

, 25 Jan 2012
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

Måns Tånneryd
Software Developer (Senior)
Sweden Sweden
No Biography provided

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