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
 SQL Server Administration (2005)
 Refreshing procs

Author  Topic 

ravilobo
Master Smack Fu Yak Hacker

1184 Posts

Posted - 2010-10-15 : 17:51:56
I need to create an automated process to refresh procs from one server to another.

What are my options?



------------------------
I think, therefore I am - Rene Descartes

jezemine
Master Smack Fu Yak Hacker

2886 Posts

Posted - 2010-10-16 : 00:39:38
script them all, then execute the scripts from batch file using SQLCMD, is what I would do.

here's a cmdline app you can use to script them: http://www.codeplex.com/scriptdb

or you can use the "generate scripts wizard" in SSMS if you like GUIs.


elsasoft.org
Go to Top of Page

ravilobo
Master Smack Fu Yak Hacker

1184 Posts

Posted - 2010-10-18 : 09:25:53

I need to automate the whole process. The procs at the source get updated all the time.

I am thinking of creating a refresh proc which will accept a input parameter (Proc list). Then probably refresh the target procs over a linked server.


------------------------
I think, therefore I am - Rene Descartes
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-10-18 : 12:50:45
We do an automatic build/deploy through our source control.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

ravilobo
Master Smack Fu Yak Hacker

1184 Posts

Posted - 2010-10-19 : 09:23:30
Tara, what do you use for source control? How does refreshing work?

------------------------
I think, therefore I am - Rene Descartes
Go to Top of Page

jezemine
Master Smack Fu Yak Hacker

2886 Posts

Posted - 2010-10-19 : 15:59:51
suggestion i made is easily automatable. both sqlcmd and scriptdb are cmd line apps. cmd line apps are easily automated.


elsasoft.org
Go to Top of Page
   

- Advertisement -