Home All Groups Group Topic Archive Search About
Author
16 Sep 2005 8:29 AM
Jaco
Hi

I need to run a masive script on multiple databases (about 20)
I only want to execute the script once to then loop and run on all databases
one by one. Is there a clean way of doing so?

Thanks

Author
16 Sep 2005 8:43 AM
Jose G. de Jesus Jr MCP, MCDBA
create a third party application with dot net
put the server name in array of connection string
with in a for-next loop
call each connection string and then
call the execute method

--
thanks,

------------------------------------
Jose de Jesus Jr. Mcp,Mcdba
Data Architect
Sykes Asia (Manila philippines)
MCP #2324787


Show quote
"Jaco" wrote:

> Hi
>
> I need to run a masive script on multiple databases (about 20)
> I only want to execute the script once to then loop and run on all databases
> one by one. Is there a clean way of doing so?
>
> Thanks
Author
16 Sep 2005 8:59 AM
R.D
Yup
use undocumented sp_MSforeachdb. Google for that
Regards
R.D

Show quote
"Jose G. de Jesus Jr MCP, MCDBA" wrote:

> create a third party application with dot net
> put the server name in array of connection string
> with in a for-next loop
> call each connection string and then
> call the execute method
>
> --
> thanks,
>
> ------------------------------------
> Jose de Jesus Jr. Mcp,Mcdba
> Data Architect
> Sykes Asia (Manila philippines)
> MCP #2324787
>
>
> "Jaco" wrote:
>
> > Hi
> >
> > I need to run a masive script on multiple databases (about 20)
> > I only want to execute the script once to then loop and run on all databases
> > one by one. Is there a clean way of doing so?
> >
> > Thanks
Author
16 Sep 2005 9:30 AM
Jaco
Thanks.

Show quote
"R.D" wrote:

> Yup
> use undocumented sp_MSforeachdb. Google for that
> Regards
> R.D
>
> "Jose G. de Jesus Jr MCP, MCDBA" wrote:
>
> > create a third party application with dot net
> > put the server name in array of connection string
> > with in a for-next loop
> > call each connection string and then
> > call the execute method
> >
> > --
> > thanks,
> >
> > ------------------------------------
> > Jose de Jesus Jr. Mcp,Mcdba
> > Data Architect
> > Sykes Asia (Manila philippines)
> > MCP #2324787
> >
> >
> > "Jaco" wrote:
> >
> > > Hi
> > >
> > > I need to run a masive script on multiple databases (about 20)
> > > I only want to execute the script once to then loop and run on all databases
> > > one by one. Is there a clean way of doing so?
> > >
> > > Thanks
Author
16 Sep 2005 10:16 AM
Jose G. de Jesus Jr MCP, MCDBA
thats cool
--
thanks,

------------------------------------
Jose de Jesus Jr. Mcp,Mcdba
Data Architect
Sykes Asia (Manila philippines)
MCP #2324787


Show quote
"R.D" wrote:

> Yup
> use undocumented sp_MSforeachdb. Google for that
> Regards
> R.D
>
> "Jose G. de Jesus Jr MCP, MCDBA" wrote:
>
> > create a third party application with dot net
> > put the server name in array of connection string
> > with in a for-next loop
> > call each connection string and then
> > call the execute method
> >
> > --
> > thanks,
> >
> > ------------------------------------
> > Jose de Jesus Jr. Mcp,Mcdba
> > Data Architect
> > Sykes Asia (Manila philippines)
> > MCP #2324787
> >
> >
> > "Jaco" wrote:
> >
> > > Hi
> > >
> > > I need to run a masive script on multiple databases (about 20)
> > > I only want to execute the script once to then loop and run on all databases
> > > one by one. Is there a clean way of doing so?
> > >
> > > Thanks

AddThis Social Bookmark Button