either your connection string is not correct. your file that you are writting to does not have the columns mapped correctly. in your sql select statement / stored procedure is missing a specified column or have a spelling error.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)