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
 General SQL Server Forums
 New to SQL Server Programming
 check the syntax

Author  Topic 

raky
Aged Yak Warrior

767 Posts

Posted - 2008-01-10 : 05:24:54
default is tha constraint?
if i want to add default value to my column this is corect?

alter table tab1 alter column a add default 0

nr
SQLTeam MVY

12543 Posts

Posted - 2008-01-10 : 05:38:46
alter table tab1 add constraint xxxxx default 0 for a


==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

raky
Aged Yak Warrior

767 Posts

Posted - 2008-01-10 : 05:44:41
thaks
Go to Top of Page
   

- Advertisement -