A deafult value is a constraint. First you need to drop the existing constraint, then create a new one using the Alter Table command. See Alter Table in BOL for details.
go to EM an locate the table - right click on it and choose design table - locate the field and at the bottom of the page you should see the old default value of Helo - changer this to Goodbye
set @tablename = '<your table name>'
set @colname='<your column name>'
select @constraintname=sysobjects.name
from sysconstraints
inner join syscolumns on sysconstraints.colid=syscolumns.colid
inner join sysobjects on sysobjects.id = sysconstraints.constid
where syscolumns.name=@colname and sysobjects.parent_obj = (select id from sysobjects where xtype='U' and name=@tablename)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.