开发者

VB.NET: What is the equivalent of the SQL Server bit datatype?

开发者 https://www.devze.com 2022-12-12 10:03 出处:网络
I have a field in a SQL Server table th开发者_如何学Cat is of type bit. When I try to use a Boolean in VB.NET when passing parameters to a stored procedure, there are never any matches. I have also t

I have a field in a SQL Server table th开发者_如何学Cat is of type bit.

When I try to use a Boolean in VB.NET when passing parameters to a stored procedure, there are never any matches. I have also tried passing an integer to the stored procedure and that does not work either.


have a look at this table:

http://msdn.microsoft.com/en-us/library/ms131092.aspx


How about

SqlDbType.Bit


System.Data.SqlTypes.SqlBoolean

0

精彩评论

暂无评论...
验证码 换一张
取 消