Jan 29, 2002 #1 gcole Programmer Joined Aug 2, 2000 Messages 390 Location US We need a true false field in a table. We used bit and int data types but the Query Analyzer isn't seeing the 0 and -1 values. We are using 7.0.
We need a true false field in a table. We used bit and int data types but the Query Analyzer isn't seeing the 0 and -1 values. We are using 7.0.
Jan 29, 2002 #2 RickCole Technical User Joined May 9, 2001 Messages 349 Location GB The bit datatype on SQL Server can hold the values 1, 0, or NULL. Are you saying you bit field does not contain any of these values?? Rick. Upvote 0 Downvote
The bit datatype on SQL Server can hold the values 1, 0, or NULL. Are you saying you bit field does not contain any of these values?? Rick.
Jan 29, 2002 Thread starter #3 gcole Programmer Joined Aug 2, 2000 Messages 390 Location US I need a field to hold -1 (Boolean true) or 0 (Boolean false). It also needs to be recognized by sql. Upvote 0 Downvote
I need a field to hold -1 (Boolean true) or 0 (Boolean false). It also needs to be recognized by sql.
Jan 29, 2002 #4 fluteplr Programmer Joined Oct 23, 2000 Messages 1,599 Location US Smallint. This is due to the stupid VB standard of -1 being true instead of 1 being true. Upvote 0 Downvote