Blog Post

NULLs to Not NULLs

,

I have found many columns in many tables of many databases that are defined to allow NULLs but have non NULL values. That's actually an experience of working with constraints and when I got to understand what does mean to have not nullable columns against nullabes in tables. The difference is big. This post gives you a wide window on this importance. 
The script finds char types columns defined to allow NULL values, but have non NULL values and generates the ALTER statements for the changes. And of course you have to check whether all generated ALTER statements will pass to be executed after checking with the other programmable parties that use the database.