I am trying to reset the default value in the bit column, I set it incorrectly and I want to do it again correctly. However, when I write:
ALTER TABLE Person
ALTER COLUMN tsHomePref DROP DEFAULT;
I get "incorrect syntax next to default error by default" and I don't know why
I want to delete a column and then create it again
ALTER TABLE Person
ADD COLUMN tsHomePref bit NOT NULL DEFAULT 0;
So why doesn't he let me “delete” the default value?
Thanks R.
source
share