Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding a record, but null is giving me problems

Status
Not open for further replies.

danalynn

Programmer
Jun 12, 2001
25
0
0
US
I am adding a record to my sql database, in one field, bit field, there is not an entry for it so it needs to be null, well it won't let me add it because bit can't go null, what do i need to do?

i went into properties of the table and tried checking all null but it won't let me, how do i do this?

thanks

dana
 
I fixed it so nm! The record would take a 0 instead of null and means the same thing in the field.

Thanks again

Dana
 
I might disagree that 0 means NULL, but I know what you mean.

IIRC, this was changed in SQLS 7 so that bit datatypes could be NULLable. Robert Bradley
Sr. DBA, some big company
cheap prints and oil paintings:
 
Are you trying to enter the value of NULL? if so, a ctrl-0, control-zero, will place a null in that field if it has been set to accept nulls, even in a bit field.
J. Kusch
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top