We have a set for 200 over stored procedures which we have created and converted into scripts - Success
Environment: SQL Server 2008 R2 and SQL Server 2012
While testing we run the stored procedure script file on a newly created test DB and we encounter error each and every time. The error what we found is in the order of execution of these script as we have EXEC
commands in the scripts which calls another stored procedure by passing the parameter values.
How to make sure the stored procedures are created without giving us issues just for the order of execution in new database.
We don't want to go ahead with DB restore nor want to manually order the stored procedures.