SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Capturing Batch File Query Results

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Capturing Batch File Query Results
Author Message
JT



Joined: 09 Nov 2005
Posts: 1

Post Capturing Batch File Query Results Reply with quote

I want to run a query from a batch file that that tells me a table is accessible.
Then if the result of that query is true, launch another batch file.

I need to sense if a table in a DB is accessible BEFORE I run a batch file
that truncates a different table in preparation for inserting data.

Thank You in Advance.
jtontz@co.riverside.ca.us

Wed Nov 09, 2005 6:48 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7975

Post Re: Capturing Batch File Query Results Reply with quote

Instead of a batch file you can create a JAL script or VBScript job in 24x7 that will check for the "table accessibility" and then run your existing batch if that table is "accessible."

Of course the implementation of this check for accessibility depends on what you mean by that word. If you mean existence of a table you would need to check it in the system catalog (ALL_TABLES, sysobjects, or whatever your db offers) or do a test SELECT from it. If you mean table locking your will need to check system tables containing locking data; if you mean db accessibility you may try a test connect, if you mean existence of certain data you will need to search for it; this list is really endless.

If you want to get a more specific and helpful answer please provide more specific details about your environment and avoid using vague definitions.

: I want to run a query from a batch file that that tells me a table is
: accessible.
: Then if the result of that query is true, launch another batch file.

: I need to sense if a table in a DB is accessible BEFORE I run a batch file
: that truncates a different table in preparation for inserting data.

: Thank You in Advance.
: jtontz@co.riverside.ca.us

Wed Nov 09, 2005 10:51 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.