G
Guest
I have a table that I generate the schema for by way of
da.FillSchema(ds,schemaType.Source, StringLoadTable)
One of my columns (numerous columns actually) are created as System.Boolean
however the actual SQL column that the schema is pulled from is of datatype
Bit. I can successfully add data to this table in my dataset using "True"
and "False" for the columns that are created as Boolean, however when I
attempt to do some BCP operations on the table the BCP fails because the data
is not of Bit type and cannot be converted from String to Boolean (or so says
the error). So instead of "True" and "False" I attempted to use 1 and 0 in
my data, however when I do this I can not add the data to the table because
""String was not recognized as a valid Boolean.Couldn't store <0> in
feetypeinvfg Column. Expected type is Boolean.""
da.FillSchema(ds,schemaType.Source, StringLoadTable)
One of my columns (numerous columns actually) are created as System.Boolean
however the actual SQL column that the schema is pulled from is of datatype
Bit. I can successfully add data to this table in my dataset using "True"
and "False" for the columns that are created as Boolean, however when I
attempt to do some BCP operations on the table the BCP fails because the data
is not of Bit type and cannot be converted from String to Boolean (or so says
the error). So instead of "True" and "False" I attempted to use 1 and 0 in
my data, however when I do this I can not add the data to the table because
""String was not recognized as a valid Boolean.Couldn't store <0> in
feetypeinvfg Column. Expected type is Boolean.""