Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 10-08-2003, 01:16 AM
davidevery davidevery is online now
Registered User
 
Join Date: 06-03-2003
Location: Sydney Australia
Posts: 16
getting standard output from OSQL

I am running an SQL Server command to drop and restore a database using the OSQL capability of Visual Build.
Sometimes this step fails becuase some SQL processes may be preventing the drop, and I need to loop and retry it a few times until it succeeds.

How can I retrieve the standard output of the step when it fails (or succeeds) so that the script knows whether to continue trying or exit the loop ?
Reply With Quote
  #2  
Old 10-08-2003, 10:08 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
The previous step's output is available in the LASTSTEP_OUTPUT system macro.
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 02:08 AM.


Copyright © 1999-2023 Kinook Software, Inc.