PRB: ALTER COLUMN Sets TrimTrailingBlanks Property to NO (296559)
The information in this article applies to:
- Microsoft SQL Server 7.0
- Microsoft SQL Server 2000 (all editions)
This article was previously published under Q296559 SYMPTOMS
When altering an existing varchar column on a table, no matter what the setting is for the ANSI PADDING option at the time of alteration, the TrimTrailingBlanks property for the altered column is always set to NO.
This behavior may potentially break applications that are sensitive to padded spaces.
CAUSE
This behavior is by design. ANSI NULL defaults and ANSI PADDING are always set to ON for an ALTER COLUMN statement. For more information, refer to the "ALTER TABLE (T-SQL)" topic in SQL Server Books Online.
WORKAROUND
Re-create the table and transfer existing data.
Modification Type: | Major | Last Reviewed: | 10/16/2003 |
---|
Keywords: | kbprb KB296559 |
---|
|