SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Database Profiles

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Database Profiles
Author Message
Jason



Joined: 29 May 2001
Posts: 27

Post Database Profiles Reply with quote

I am running a stored procedure in MSSQL 2000 which cycles through multiple databases. Is there a way to schedule this in 24x7? I am using v3.4.20. I am hitting the limitation of the database profile only allowing a single database.

Thanks.

Jason

Wed Aug 18, 2004 3:28 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Re: Database Profiles Reply with quote

You can change databases on the fly using standard MSSQL "USE [db name]" SQL command.

Example:
DatabaseExecute "USE db_name1", rows
DatabaseExecute "my_proc @param1, @param2....", rows
DatabaseExecute "USE db_name2", rows
DatabaseExecute "my_proc @param1, @param2....", rows
DatabaseExecute "USE db_name3", rows
DatabaseExecute "my_proc @param1, @param2....", rows
....
DatabaseExecute "USE db_nameN", rows
DatabaseExecute "my_proc @param1, @param2....", rows

This thing can be surelly done in a loop.

: I am running a stored procedure in MSSQL 2000 which cycles through multiple
: databases. Is there a way to schedule this in 24x7? I am using v3.4.20. I
: am hitting the limitation of the database profile only allowing a single
: database.

: Thanks.

: Jason

Wed Aug 18, 2004 4:36 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.