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.
| Author |
Topic |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2006-03-24 : 08:26:49
|
| subbareddy writes "How to add existing columns not null constraint..Example ..Create table test(no int)i need not null constraint in no..how to add" |
|
|
nr
SQLTeam MVY
12543 Posts |
Posted - 2006-03-24 : 08:45:00
|
| alter table mytbl add mycol int not null default 1seehttp://www.nigelrivett.net/SQLAdmin/AlterTableProblems.htmlfor some problems it can cause==========================================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. |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2006-03-24 : 09:54:15
|
| To alter existing column, useAlter table test alter column no int not nullMadhivananFailing to plan is Planning to fail |
 |
|
|
|
|
|