Please help me! I want to change column formula
Now my column formula is: (CONVERT([decimal](15,2),[Casting Internal Sales - Casting Unit Price]*(0.6),(0)))
but I want to change it to: (CONVERT([decimal](15,2),[Casting Internal Sales - Casting Unit Price]*(0.7),(0)))
I don't want to use SQL Studio Management, I want to use alter statement.
How can I do?
alter table dbo.MyTableName
drop myColumnName
alter table dbo.MyTableName
add myColumnName as (CONVERT([decimal](15,2),[
http://technet.microsoft.com/en-us/library/aa275462(SQL.80).aspx
HTH
David
PS Computed columns are great, but having to change the column definition frequently isn't that great. Are the other ways you could do this wihtout a computed column? Or is this change a one-off?