Hi all,
I'm trying to change the "Allow Nulls" property of a field to NOT NULL using
ALTER TABLE tablename ALTER COLUMN fieldname varchar(7) NOT NULL
But since there's an index that's dependent on the field, it returns with an ERROR. However, when I try to do this manually through the Design Table, I can check off that property.
Anybody know how I can make this work without going through the Enterprise Manager? Thanks!
PS- This is in SQL 2000
I'm trying to change the "Allow Nulls" property of a field to NOT NULL using
ALTER TABLE tablename ALTER COLUMN fieldname varchar(7) NOT NULL
But since there's an index that's dependent on the field, it returns with an ERROR. However, when I try to do this manually through the Design Table, I can check off that property.
Anybody know how I can make this work without going through the Enterprise Manager? Thanks!
PS- This is in SQL 2000