Situation:
When you run a script and there's errors (even if it's just only one), SQL creates the database anyway. You run your script, some errors pop up, yet you see your database was created... but without certain tables, triggers, relations, so on.
It creates only what you "did well" in your script; a completely useless result because you need the whole database, not just what was "done right". Now you have to delete that incompleted database, correct the errors, and hope this time everything goes right. Nope, you got another incomplete, useless database on your hands, and you have to delete it again and check again your script (Rinse and repeat until all errors are solved).
Why SQL does this? Wouldn't it be better to not to create anything at all until the errors are solved from the script? That way I wouldn't have to lose my time deleting lots of databases that don't have everything I need...
Is there a way or an option to "tell" SQL not to create databases unless the script is completely error-free?
I really hope such a solution exists, it's frustating to keep deleting databases. Thank you.