Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 default value for int column that allows null ?

Author  Topic 

BitShift
Yak Posting Veteran

98 Posts

Posted - 2007-08-10 : 15:26:45
If no value is supplied on an insert for an int column that allows nulls, will the value be null or 0 ?

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2007-08-10 : 15:41:02
If a default constraint is present, it will use the default. Otherwise, NULL.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/
Go to Top of Page
   

- Advertisement -