Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   [VBP] General Discussion (https://www.kinook.com/Forum/forumdisplay.php?f=2)
-   -   getting standard output from OSQL (https://www.kinook.com/Forum/showthread.php?t=208)

davidevery 10-08-2003 01:16 AM

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 ?

kinook 10-08-2003 10:08 AM

The previous step's output is available in the LASTSTEP_OUTPUT system macro.


All times are GMT -5. The time now is 03:41 AM.


Copyright © 1999-2023 Kinook Software, Inc.