sethreno / schemazen

Script and create SQL Server objects quickly
MIT License
333 stars 140 forks source link

Fix Schema Import #165

Closed bjmarte closed 5 years ago

bjmarte commented 5 years ago

Changing the order of the user creation in relation to the schemas. The users need to already exist in order for the schemas to be created successfully. Unfortunately the schema creation fails silently when the users don't exist. There should be little to no impact on moving the user creation earlier in the process. Also wrapping the schema name in brackets in the script creation because it can have spaces and special characters.