January 13, 2006 at 10:43 am
Hi,
We have a lot of databases in our Sql Server. We are creating a web application which uses lot of stored procedures. We are creating all these stored procedures in our sample database. Lets say I have a database db1 which has all the stored procedures. I also have a common database db. I would like to create a stored procedure in this common database which will check if a stored procedure exists in one of our Client databases. If not, it needs to get the text of that stored procedure from the sample database db1 and create that stored procedure in the client database. I do not know if this is the right way of synchronizing the databases. If it is, please let me know how to do that. If not, please let me know the right way of doing it.
Thanks,
Sridhar.
January 13, 2006 at 10:51 am
Have you checked out RedGate SQLCompare software? It compares databases, and generates the approiate scripts to "sync" the databases.
A.J.
DBA with an attitude
January 13, 2006 at 11:19 am
Hi,
I just need to create the Stored Procedures and Functions that does not exist. So I was thinking to write code to do that instead of buying a software to do that. Please let me know how I could do that.
Thnx,
Sridhar.
January 16, 2006 at 8:44 pm
If you truly want to synchronize, why not just generate all the code for sprocs, views, and udf's in Enterprise Manager and let 'er rip?
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply