The information in this article applies to:
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.
Keywords : kbprg SSrvServer |
Last Reviewed: March 9, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |