开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜