interesting little thing... sql v2000, i have a table loaded daily via csv. one of the attributes is frequently NULL, but i have to include it in my pk (long story)
so i updated all NULLs in existing data to ' ', i then changed the attribute to NOT NULL, and I put a DEFAULT on it of ' '. thus, any future NULL insertions would be written as the default value.
it's not working.
'Integrity violation; attempt to insert NULL data or data which violates constraints.'
i have loaded the data to a tmp table, some of those values are actually NULL, but, why isn't my default overriding that?
Start Free Trial