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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can someone explain the difference between Nullable and Is_Nullable

Status
Not open for further replies.

SBendBuckeye

Programmer
May 22, 2002
2,166
US
Hello all,

I have a decent working knowledge of Sql Server, although I don't work with it constantly. One of the things I have never quite understood is how Nullable and Is_Nullable differ. BOL says they are different, but does not elaborate. Could one of you be so kind? Thanks in advance!

Have a great day!

j2consulting@yahoo.com
 
Is_Nullable is three-state (yup, nope and unknown) and conforms to ISO rules (blah).
Nullable is two-state (yup and nope).

Both describe the same thing - whether column accepts NULLs or not.

------
"There's a man... He's bald and wears a short-sleeved shirt, and somehow he's very important to me. I think his name is Homer."
(Jack O'Neill, Stargate)
[banghead]
 
Various standards-compliant features should have it - INFORMATION_SCHEMA views, results returned by sp_columns...

------
"There's a man... He's bald and wears a short-sleeved shirt, and somehow he's very important to me. I think his name is Homer."
(Jack O'Neill, Stargate)
[banghead]
 
Sorry, but I'm still confused. If I want to read sp_Columns and determine whether or not a field is nullable, which one do I use, nullable or is_nullable? Thanks again!

Have a great day!

j2consulting@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top