I have Dataset and trying to move into SQL Server table using Bulk Option. What is the problem in the loop.
The loop (top loop) will be executing first time and inserting the record into the table without any error. where as the looping (top loop) the second time, i am getting the below error.
ERROR : System.InvalidOperationException : 'The given ColumnMapping does not match up with any column in the source or destination.'
Employee column Details (DataSet)
for (int i = 1; i <= 10; i++)
bulk.DestinationTableName = "tblEmployee";
foreach (DataColumn col in DataSet.Tables.Columns)
pls. give us the guidance where is the problem in the above code.