TableAdapter Fill() returns SQL syntax error for data type bit

G

Guest

Hi,

When calling the Fill() method for a TableAdapter I get the following error:
"syntax error converting the varchar value 'TRUE' to a column of data type
bit"

The typed DataSet to be filled maps the SQL bit columns to a System.boolean
column ('TRUE' instead of 1).

Any workaround for this?

Thanks,

-Ronen
 
M

Miha Markic [MVP C#]

Hi Ronen,

It sounds to me like you are trying to bind a string (and not bit) to
System.Boolean.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top