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

Is null implicitly inserted as value on nullible columns w/no default? 1

Status
Not open for further replies.

Coder7

Programmer
Oct 29, 2002
224
US
Good morning all.

A general question:

If I have a nullible column, no default set, when I do not explicitly insert a value into the column (i.e. value = getDate()), is NULL always implicitly inserted as the value?

Are there caveats/pitfalls if I don't explicitly insert the NULL value?

I am working with stored procedures that were written by 2 contractors who are supposed to be sql server gurus but I've had to fix enough of their sql to become wary.

Thanks, as always, for sharing your expertise.

Have a great week.
 
If I have a nullible column, no default set, when I do not explicitly insert a value into the column (i.e. value = getDate()), is NULL always implicitly inserted as the value?

Yes, null will be stored (unless the column has an identity attribute).
 
Thanks for the speedy reply, swampBoogie.

Now I can have peace of mind (about this issue at least haha).

 
Actually, not to mix words, but as NULL implies the absence of any value, wouldn't it be more correct to say that no value is stored so that the "value" of the column remains NULL?

cheers,
Jack

Jack De Winter
Software Developer
MedTel Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top