If you use the SQL Server Data Tools (SSDT) in your database project, SSDT should handle the deployment order, i.e., tables before views, functions before stored procedures. If you wan to control some object deployment orders, you can use the pre- or post- deployment script. Each database project can only have one pre- or/and one post- deployment script.
Visual Studio SQL Server Database Project Publish Sequence
J Like MIB
71
Reputation points
I am trying to use VS SQL Server Database Project to publish a database to upper levels.
Question: Is there a way to publish objects in sequence? For example, tables first before views, FNs before SPs, certain SPs before another SPs, etc, etc?
OR does sequence not matter?
Thank you
SQL Server Other
14,494 questions