Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Alter Table, Alter Column for default

Author  Topic 

mikebird
Aged Yak Warrior

529 Posts

Posted - 2009-01-27 : 03:13:22
ALTER <TABLE> ALTER <COLUMN> varchar(11) default = 'this string'

How do I get the syntax right for this?

bklr
Master Smack Fu Yak Hacker

1693 Posts

Posted - 2009-01-27 : 03:35:14
try this
alter table temp_k add constraint def_k default ('the string') for columnname
Go to Top of Page
   

- Advertisement -