sql - Alter column's default value -


I have a table with one column 'CompanyID int not null' and its default value is set to 10. Now I want to write a query that will change this default value to 1. How can I do this?

Any help would be appreciated. I am using SQL Server 2000.

I think that you can do whatever you can, and make it again:

  go to the table dbo.YourTable drop barrier default_value_name_constraint table dbo.yourTable add constraint default_value_name_constraint go to YourValueName for the default column  

Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -