Problem : how do I find which columns have ANSI PADDING set to ON ?
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?
Solution : how do I find which columns have ANSI PADDING set to ON ?
Try this to check:
SELECT COLUMNPROPERTY(OBJECT_ID(‘
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