how do I find which columns have ANSI PADDING set to ON ?

Hi.  I have an MSSQL 2000 table, and whenever I try to make a structure change, I get the warning:
Warning: Columns have different ANSI_PADDING settings. New columns will be created with ANSI_PADDING 'on'.

I have ANSI_PADDING set to OFF on the entire database.  I only have the problem with this one table.  I assume that somehow a column has its ANSI_PADDING set to OFF (if that is even possible to set at the column-level).  

How do I see which column has it set to ON, and then how would I change it?

-- thanks
Rob RudloffIT Development SpecialistAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Try this to check:
SELECT COLUMNPROPERTY(OBJECT_ID('YourTable', 'YourColumn, 'UsesAnsiTrim')
If this returns 1, then ANSI padding was ON when the column was created.
I guess the way to fix it would be tranfer data into a temp table... delete the original table.. recreate it the option set to OFF and insert the records back from the temp table.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Rob RudloffIT Development SpecialistAuthor Commented:
thanks pssandhu --
I'll give that a try.  I might just do the "fix", rather than see which fields have the problem.  As I look closer, I am finding more tables with this problem.  I wonder if there an easy way to switch all my fields on all my tables to ANSI_PADDING = off.
It sounds like I need to upgrade my programs -- according to  Microsoft, ANSI_PADDING is going away in some future release of SQL Server.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.