How to get the right order for creation of stored procedure, user-defined functions and triggers
- by PeeWee2201
I read that object dependencies have been improved in SQL server 2008.
I have a rather complex database schema containing stored procedure, user-defined functions, triggers.
Can anybody give me a query that would return the right order of creation of those items based on their dependencies ?
I read here that there are tools that can do the job, but I am looking for something scriptable. Also, they often give the dependencies of one object and I would like a database-wide solution.
Thank you.