INF: Creating NOT NULL Character Fields Without Padded BlanksLast reviewed: April 25, 1997Article ID: Q63238 |
The information in this article applies to:
- Microsoft SQL Server version 4.2 for OS/2 For character fields defined as NOT NULL, the dbdatlen() function returns the field width. The data is padded with blanks to the maximum width of the field. To create tables in SQL Server that will not blank-fill character fields for columns that require data, define the CHAR NOT NULL fields as VARCHAR NOT NULL. If you use VARCHAR, dbdatlen() will return the length of the character string instead of the field width.
|
Additional query words:
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |