|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
TableAdapter Fill() returns SQL syntax error for data type bitHi,
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 Hi Ronen,
It sounds to me like you are trying to bind a string (and not bit) to System.Boolean. -- Show quoteMiha Markic [MVP C#] RightHand .NET consulting & development www.rthand.com Blog: http://cs.rthand.com/blogs/blog_with_righthand/ "Ronen" <ronmey***@hotmail.com> wrote in message news:4F767A7A-AD9C-4627-A7F3-732EC2E8900F@microsoft.com... > 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 |
|||||||||||||||||||||||