I've got a field in my SQL SPROC resultset that is a calculated CASE statement that returns 1 or 0 (ie True/False).
When I try to use the GetBoolean method of the SqlDataReader class and exception gets th开发者_开发百科rown.
Any suggestions would be appreciated.
Cast the value into a bit before returning it
CAST (value AS bit)
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论