SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
DatabaseConnect

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



Joined: 13 Jun 2002
Posts: 18

Post DatabaseConnect Reply with quote

Hello,

Is any way to check the DatabaseConnect return value?
For example,

we had a sybase server problem and

our jobs ran without any errors.

In the case above we like to recieve error code.

Thanks,
Gennadiy.

Thu Oct 24, 2002 11:43 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7963

Post Re: DatabaseConnect Reply with quote

If the connect fail the entire job should fail, unless you use "ignore errors" property.

The most simple solution is to code something like the following

OnErrorGoto NO_CONNECT
DatabaseConnect ...

OnErrorStop
... main job logic here
Exit

NO_CONNECT:
// connection failed
MailSend ... or whatever action is appropriete here

: Hello,

: Is any way to check the DatabaseConnect return value?
: For example,

: we had a sybase server problem and

: our jobs ran without any errors.

: In the case above we like to recieve error code.

: Thanks,
: Gennadiy.

Thu Oct 24, 2002 11:49 am 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.