sql server - SqlBulkCopy unable to Parse "0", "1" bool values into BIT on database table -


i using custom csvdatareader : idatareader {} insert bulk values in database table.

every datatype bit (from "1"/"0") parsed perfectly. getting following error " value of type string data source cannot converted type bit" while parsing 0 or 1 bool

if change these values "true"/"false". taken without problem.

i can't alter csv file. replace specific column "0"/"1" "false"/"true" during iteration. not elegant solution.

please !

thanks panks

i guess you're sending "1" , "0" rather 1 , 0

fyi, sql server accept true , false bit


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -