Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
Log in  ::  Register  ::  Not logged in

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

Synchronize several stored procedure between two servers

By Th Tr,

This stored procedures uses the procedure [spSynchStoredProcedure] I had sent before.

For example, your development server is called DEV and your production server is called PROD, and you create two linked servers in local SQL Server with the same name. Assumed that your database between DEV and PROD have the same name: TestDB.

If you want to synchronize 3 stored procedures called TestProc1, TestProc2, TestProc3 between TestDB of DEV and PROD, you can excute this procedure like that:

EXEC spSynchMultiProcedures @ProcedureNames = 'TestProc1, TestProc2, TestProc3', @SourceServer = 'DEV', @SourceDatabase = 'TestDB', @TargetServer = 'PROD', @TargetDatabase = 'TestDB'

Total article views: 1187 | Views in the last 30 days: 1
Related Articles

The concurrent snapshot for publication 'TESTDB' is not available

The concurrent snapshot for publication 'TESTDB' is not available because it has not been fully gene...


Synchronize a stored procedure between two servers

Use this stored procedure to synchronize source code of a stored procedure between two servers.


Stored Procedure At The Remote Server

Executing Stored Procedure At Another Server


executing oracle procedure from sql server

executing oracle procedure from sql server

linked server    
stored procedures    

Join the most active online SQL Server Community

SQL knowledge, delivered daily, free:

Email address:  

You make SSC a better place

As a member of SQLServerCentral, you get free access to loads of fresh content: thousands of articles and SQL scripts, a library of free eBooks, a weekly database news roundup, a great Q & A platform… And it’s our huge, buzzing community of SQL Server Professionals that makes it such a success.

Join us!

Steve Jones

Already a member? Jump in:

Email address:   Password:   Remember me: Forgotten your password?
Steve Jones