Link to home
Start Free TrialLog in
Avatar of Rob Rudloff
Rob RudloffFlag for United States of America

asked on

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
ASKER CERTIFIED SOLUTION
Avatar of pssandhu
pssandhu
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Rob Rudloff

ASKER

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.