Click here to Skip to main content
11,645,893 members (77,948 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#
Hi I am creating a sql table by using datatable column names. And I have data for each column. I am using SQLBulkCopy for copying column values from datatable to sqltable. I have same number of columns in both source and destination with same datatype. But I am getting an exception as The Given ColumnMapping does not match up with any column in the source or destination. And Both the tables have no identity column too. Give me the solution.
Posted 21-Jul-14 11:44am
Vino_277

1 solution

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

  Print Answers RSS
0 OriginalGriff 523
1 jyo.net 514
2 Sergey Alexandrovich Kryukov 503
3 Afzaal Ahmad Zeeshan 368
4 F-ES Sitecore 279
0 OriginalGriff 1,143
1 jyo.net 994
2 Sergey Alexandrovich Kryukov 808
3 Afzaal Ahmad Zeeshan 702
4 DamithSL 691


Advertise | Privacy | Mobile
Web02 | 2.8.150731.1 | Last Updated 21 Jul 2014
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100