Update TrimTrialingBlanks in sql server

Go To StackoverFlow.com

-1

How do i change a column's TrimTrialingBlanks to Yes from No for a table in sql server for an already existing table?

I used this

Update tabelename set TrimTrialingBlanks='yes';

But this didn't work.

TrimTrialingBlanks seems to be column properties and not a table column.

Thanks.

2012-04-04 16:51
by Sharpeye500


0

I suspect what you are after is to change a fixed-width data type (e.g. CHAR) to VARCHAR, e.g.

ALTER TABLE dbo.foo ALTER COLUMN bar VARCHAR(32);
2012-04-04 16:57
by Aaron Bertrand


0

There is some discussion here: http://www.issociate.de/board/index.php?t=msg&th=144270&rid=0

2012-04-04 16:59
by OCary
Ads