How to get the right order for creation of stored procedure, user-defined functions and triggers

Posted by PeeWee2201 on Stack Overflow See other posts from Stack Overflow or by PeeWee2201
Published on 2010-12-21T16:49:39Z Indexed on 2010/12/21 20:54 UTC
Read the original article Hit count: 267

Filed under:
|
|
|

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.

© Stack Overflow or respective owner

Related posts about sql

Related posts about sql-server