You are here: Re: set default value for a char column?? « MsSQL Server « IT news, forums, messages
Re: set default value for a char column??

Posted by tlyczko on 09/26/06 16:45

--CELKO-- wrote:
> >> Wouldn't using a default value at least avoid the issues of using NULL per se?? <<
>
> What issues? This is a nominal value, not a numeric value. All your
> default would do in sort like any other string.

I meant the quirks of null, etc. mentioned above.

> Back in the COBOL days, we use to use all 9's for missing values. You
> just held that key down and let it repeat until you got the the end of
> the field of the punch card. The missing values would sort to the end
> of the reports. In FORTRAN, we left the fields un-punched, and they
> were read as all 0's and woudl sort to the top of the reports.
> In fact, if you look at a number of standard codes, such as ICD, they
> follow these convention today.

Thank you also for this suggestion. However, I've concluded that since
the dataset requiring SSN information (and similar items that should
generally not be null) is relatively small, that the required text
entry will be enforced in the front end as strongly as possible. If it
really becomes necessary to use a default value in a text string, I'll
use 0's or 9's.

Thank you, Tom

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация