Article ID: 296559 - Last Review: October 16, 2003 - Revision: 3.2 PRB: ALTER COLUMN Sets TrimTrailingBlanks Property to NO
This article was previously published under Q296559 On This PageSYMPTOMS
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.
MORE INFORMATIONSteps to Reproduce Behavior
| Other Resources Other Support Sites
CommunityGet Help NowArticle Translations
|






Windows Live
Facebook
Twitter
Linkedin
Digg it
Yahoo
Delicious
StumbleUpon
Yammer
Reddit
Technorati
FriendFeed
Email
Back to the top
