B
Bob Day
Using vs.2003, SQL native
1) I presume that the SQL bit data type is the equivalent of Boolean data
type in VS 2003. I have used it that way, and it works fine.
2) Given above, using Server Explorer, Design Table, what can I put in the
default field for FALSE for a bit data type column? The IDE accepts ('0')
and also (0) as OK (and fails on things like ('False') as I would expect)..
But when you create a new row and save it to the data source, it fails,
indicating you cannot write a null to that field (it is set up as
non-nullable). I use defaults as a way of avoiding nulls, but cannot figure
out the default for a bit filed.
Please give me the answer specifically for the Default Field in the Design
Table dialog box, what the exact entry would be. These fields often use
different
formats than SQL.
What works?
Bob Day
1) I presume that the SQL bit data type is the equivalent of Boolean data
type in VS 2003. I have used it that way, and it works fine.
2) Given above, using Server Explorer, Design Table, what can I put in the
default field for FALSE for a bit data type column? The IDE accepts ('0')
and also (0) as OK (and fails on things like ('False') as I would expect)..
But when you create a new row and save it to the data source, it fails,
indicating you cannot write a null to that field (it is set up as
non-nullable). I use defaults as a way of avoiding nulls, but cannot figure
out the default for a bit filed.
Please give me the answer specifically for the Default Field in the Design
Table dialog box, what the exact entry would be. These fields often use
different
formats than SQL.
What works?
Bob Day