In Microsoft SQL server, how can I add/change the default on an existing table column using T-SQL?
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. Join them; it only takes a minute:
Here's how it works:
- Anybody can ask a question
- Anybody can answer
- The best answers are voted up and rise to the top
To change the default, drop the constraint and re-add it with the new value: