Often times, when I create a table, I supply a default:
"create table thisone (field1 int default 0, field2 char(2) default 'ed')"
etc...
But at any point if I want to remove a field that I put a default on I get an error. Here's what I'd get if I tried to removed field2:
"The object 'DF__thisone__field2__100496D2' is dependent on column 'field2'."
I can't find anyway to remove this default. I tried everything, from sp_unbindefault to alter table drop constraint to trying to modify sysobjects directly (which I am not currently allowed to do)
Geez, I just want to remove the field--there must be an easy answer. If you can shed any light, I'd appreciate it!
--chajadan
"create table thisone (field1 int default 0, field2 char(2) default 'ed')"
etc...
But at any point if I want to remove a field that I put a default on I get an error. Here's what I'd get if I tried to removed field2:
"The object 'DF__thisone__field2__100496D2' is dependent on column 'field2'."
I can't find anyway to remove this default. I tried everything, from sp_unbindefault to alter table drop constraint to trying to modify sysobjects directly (which I am not currently allowed to do)
Geez, I just want to remove the field--there must be an easy answer. If you can shed any light, I'd appreciate it!
--chajadan