If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Sybase > using isql (dos) in Batch

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-22-05, 03:57
taketwo taketwo is offline
Registered User
 
Join Date: Sep 2005
Posts: 1
Question using isql (dos) in Batch

Hi all,

I want to execute procedures in sybase db using isql.
The Isql.exe (sql server) from Microsoft provide an really usefull switch :

Quote:
-b
Specifies that isql exits and returns a DOS ERRORLEVEL value when an error occurs. The value returned to the DOS ERRORLEVEL variable is 1 when the SQL Server error message has a severity of 10 or greater; otherwise, the value returned is 0. MS-DOS batch files can test the value of DOS ERRORLEVEL and handle the error appropriately.
To capture an error/warning in sybase isql I know only the way to grepp for all thinkable errors in the logfile...

Exist any way to handle this like with the Microsoft isql.exe ?
Or know anyone an more practicable way to capture Warnings/error's ?

Best Regards
taketwo
Reply With Quote
  #2 (permalink)  
Old 12-19-11, 09:40
tiggyboo tiggyboo is offline
Registered User
 
Join Date: Oct 2007
Posts: 4
Did you ever run across a solution for this? I've been just doing the massive error checking all along, but thought maybe ASE 15+ might have brought something new to the table...

Regards,
Al
Reply With Quote
  #3 (permalink)  
Old 12-21-11, 08:25
pdreyer pdreyer is offline
Registered User
 
Join Date: May 2005
Location: South Africa
Posts: 1,268
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On