Group: Forum Members
Posts: 2K,
Visits: 6.6K
|
Ivan's got it right. If you have existing data in the database and you need to add a field that does not allow NULLs, then you have two options (these are SQL Server restraints, not DDT restraints...or rather, the DDT just has to live with the SQL server restraints):
- You add the field and set it to not allow NULLs and you must set a default.
- You add the field and allow NULLs, then after the field is added, you go in and populate the new field with data, then go back and change the field to not allow NULLs.
The first is almost always the way to go unless there is something complicated going on with the field.
Note that if you need to change a field that was formally NULL to one that is NOT NULL (SQL terminology here), then the same issue applies with the same possibilities.
Hope that helps!
|