I have a basic SQL Server 2005 database that is used as our global standard. We are all set up to correctly synchronize the overall schema and table data, but so far we have no good solution for other objects, such as views, stored procedures, and user-defined functions.
I know products like Redgate SQL Compare , but we really do not want to rely (further) on third-party tools.
Is there a way to ensure that a given stored procedure or view in a reference database, for example, is updated in the target databases? Could this be written?
Edit for clarification: when I say βscriptβ, I mean running a script that pushes any changes to the target servers. Do not run the same CREATE / ALTER script multiple times on multiple servers.
Any advice / experience regarding how to approach this would be greatly appreciated.
source share