Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Pushing stored procs to linked servers

Author  Topic 

leoc50
Yak Posting Veteran

54 Posts

Posted - 2012-03-15 : 08:51:43
I wonder if anybody has a way to push sprocs to linked servers?
Basically I have a central server where all my supported servers are linked in. I have some a small database on each server with the same stored procs but if I modify one of these (tested in the central server) and I need to pass it along to the other servers I basically have to login to each one and compile the new proc.
Does anyone have a better solution for this?

thanks!

- lec

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2012-03-15 : 16:07:19
cant you set up replication between them including the required stored procedures?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

leoc50
Yak Posting Veteran

54 Posts

Posted - 2012-03-19 : 11:40:27
I guess it could be done (have to refresh on it), but doesn't seem to be what I'm looking for.
I'd like to execute a one-time push to my 'selected' linked-servers without dealing with timing of replication and/or setting up repl.

Any other suggestions?

thanks!

- lec
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2012-03-19 : 12:52:47
Sure..do you have a script of all the sprocs that need to be compiled?

Create a bat file that has sqlcmd in it and copy that to the destination server along with the *.sql of all the sprocs to compile

Then execute the bat on the remote box


Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx


Want to help yourself?

http://msdn.microsoft.com/en-us/library/ms130214.aspx

http://weblogs.sqlteam.com/brettk/

http://brettkaiser.blogspot.com/


Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2012-03-19 : 15:57:51
for one time you can even use transfer database object task also

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -