SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
SQL

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



Joined: 16 Jun 2003
Posts: 41

Post SQL Reply with quote

I know there is scripts that will execute database commands. I am having a little trouble.

This is what I need to do.

1) Connect to a Database and Execute a stored procedure.
2) Once this stored procedure is completed (that is important) have the JAL execute a .VBS script.

Thanks for yoru help. :-)

Tue Dec 14, 2004 1:39 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Re: SQL Reply with quote

There are several ways how this can be done. Here is the most straightforward:
If you don't have a database connection already configured, configure it using Tools/Database profiles menu.
Create a new database job, for the SQL property enter EXECUTE dbo.myproc(...) or CALL myproc(...) or whatever valid syntax for your database is.
In the job "on finish" notification action select "Run program" "Run script". In the first case enter on the next step enter name of your VBS file, in the second case on the next step select VBS as the script language and copy and paste your VBS file, insert Sum Main() as the first line, insert End Sub as the last line.
That's it.

: I know there is scripts that will execute database commands. I am having a
: little trouble.

: This is what I need to do.

: 1) Connect to a Database and Execute a stored procedure.
: 2) Once this stored procedure is completed (that is important) have the JAL
: execute a .VBS script.

: Thanks for yoru help. :-)

Tue Dec 14, 2004 2:03 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.