[unixODBC-support] How to return an error code to the shell from isql

Nick Gorham nick at lurcher.org
Mon Oct 7 19:37:36 BST 2013

On 07/10/13 19:07, Coughlin, Errick R wrote:
> How can I get ISQL connecting to SQL Server to return a non 0 error 
> code to the shell?
> Thanks,
> Errick
> ------------------------------------------------------------------------
> This e-mail message, including any attachments, is for the sole use of 
> the intended recipient(s) and may contain information that is 
> confidential and protected by law from unauthorized disclosure. Any 
> unauthorized review, use, disclosure or distribution is prohibited. If 
> you are not the intended recipient, please contact the sender by reply 
> e-mail and destroy all copies of the original message.
> _______________________________________________
> unixODBC-support mailing list
> unixODBC-support at mailman.unixodbc.org
> http://mailman.unixodbc.org/mailman/listinfo/unixodbc-support

I would alter the code to exit on error. At the moment it just reports a 
error to the ouput and continues. Though you may be better looking at 
something like perl if you want to dome mor ethan simple testing with isql.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.unixodbc.org/pipermail/unixodbc-support/attachments/20131007/9ad2cafb/attachment.html>

More information about the unixODBC-support mailing list