Psst! Did you know DevelopmentNow is a mobile web site design agency?

Contact us for help mobilizing your site, or to sign up for our beta Mobile Web SDK!
all groups > dotnet ado.net > february 2006 >

dotnet ado.net : TableAdapter Fill() returns SQL syntax error for data type bit


Ronen
2/28/2006 5:25:15 AM
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,

Miha Markic [MVP C#]
3/1/2006 12:00:00 AM
Hi Ronen,

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

--
Miha Markic [MVP C#]
RightHand .NET consulting & development www.rthand.com
Blog: http://cs.rthand.com/blogs/blog_with_righthand/

[quoted text, click to view]

AddThis Social Bookmark Button