Hi All,
I sent some DB design specs to our "DB" guy. In the specs are some fields that may or may not have values inserted into them, ie; if data is supplied for a field it is inserted, if not, no insertion to that field. I had sent the spec stating that several of the fields were to allow nulls, since I didn't know if they would have data supplied to them or not. Our "DB" guy decided it would be more efficient to not allow nulls into any of the values, overriding me and opting to give them a default value of zero. This kind of erks me for several reasons. First, being a Comp Science BA graduate, I fully understand the difference between what a zero is and what a null is, thus I set this up to allow nulls for fields that may not have any info, not ones that have have zero info. Secondly, I was under the assumption that a zero took more space to save than a null, in SQL Server, granted not much individually, but possibly a great bit on the large scale. Am I wrong? What is the size difference between saving a null and a zero? Also, if the data type is Currency, wouldn't it make since to have the default save as 0.00, than just plain 0? Or am I just being nitpicky.
Thanks,
ryandoah
I sent some DB design specs to our "DB" guy. In the specs are some fields that may or may not have values inserted into them, ie; if data is supplied for a field it is inserted, if not, no insertion to that field. I had sent the spec stating that several of the fields were to allow nulls, since I didn't know if they would have data supplied to them or not. Our "DB" guy decided it would be more efficient to not allow nulls into any of the values, overriding me and opting to give them a default value of zero. This kind of erks me for several reasons. First, being a Comp Science BA graduate, I fully understand the difference between what a zero is and what a null is, thus I set this up to allow nulls for fields that may not have any info, not ones that have have zero info. Secondly, I was under the assumption that a zero took more space to save than a null, in SQL Server, granted not much individually, but possibly a great bit on the large scale. Am I wrong? What is the size difference between saving a null and a zero? Also, if the data type is Currency, wouldn't it make since to have the default save as 0.00, than just plain 0? Or am I just being nitpicky.
Thanks,
ryandoah