I am developing a multi tenant application where the provisioning process will be automated.
The provisioning process will create a new SQL Server database with tables, procedures, functions and insert default data to the database.
My question is what is the best way to do this process?
After too much headache trying to execute the database script from C# I decided to restore the database programmatically using the below script.