I have a field (say foo) in a table in a SQL Server database that was initially defined as NULL, but new requirements indicate that this field must not be null.
What is the best way to update this field to nonzero by updating the script without deleting the contents of the table? I tried to create a script from the Design view, but failed at runtime because the current contents of the table are NULL for foo. Even worse, if I ignored this error, it continues to delete the entire contents of the table!
source
share