TheQuestioner
Programmer
Dear SQL Server Overlords,
I'm part of a development team that uses MSDE 2000 to manage the database for our software product. As with any software, we periodically update the front-end and back-end of our product to all of our clients.
My problem is that I'm trying to find an easy way of updating all the views, stored procs, udt's, table structures of each of our client's databases so that it is synch with our master version.
Currently I'm using a range of third party products that compare the last released database to the master one, and then generate the appropriate TSQL DROP AND CREATE SQL statements.
However, if I then try and run this script on my client's MSDE server (using a third-party query analyser), I keep running into problems. Some of the views and stored procedures cannot be created, as the views that they are based on don't yet exist(as they are created afterwards in the script).
So, my questions are:-
1) Rather than manually trying to find a way of ordering the script so that the initial views/stored procedures are created first, is there a way of "bulk creating/adding" all of the views and stored procedures whilst temporarily suppressing any checks on underlying table/view/stored procedure existence?
2) Force each view/stored procedure to "rebuild/refresh" itself so that any internal structure changes have been updated and saved.
Thanks.
I'm part of a development team that uses MSDE 2000 to manage the database for our software product. As with any software, we periodically update the front-end and back-end of our product to all of our clients.
My problem is that I'm trying to find an easy way of updating all the views, stored procs, udt's, table structures of each of our client's databases so that it is synch with our master version.
Currently I'm using a range of third party products that compare the last released database to the master one, and then generate the appropriate TSQL DROP AND CREATE SQL statements.
However, if I then try and run this script on my client's MSDE server (using a third-party query analyser), I keep running into problems. Some of the views and stored procedures cannot be created, as the views that they are based on don't yet exist(as they are created afterwards in the script).
So, my questions are:-
1) Rather than manually trying to find a way of ordering the script so that the initial views/stored procedures are created first, is there a way of "bulk creating/adding" all of the views and stored procedures whilst temporarily suppressing any checks on underlying table/view/stored procedure existence?
2) Force each view/stored procedure to "rebuild/refresh" itself so that any internal structure changes have been updated and saved.
Thanks.