Is there any way to check if an isql
query has failed? It seems isql
returns 0 whether queries succeed or not, only returning false if there was a error connecting to the server. How can I determine whether or not my Sybase queries work from the command line?
Asked
Active
Viewed 956 times
1

Danny Beckett
- 20,529
- 24
- 107
- 134

Aaron
- 199
- 1
- 6
2 Answers
0
Just Run this commands
isql -v SERVERNAME Username password
At the prompt run your query
>SELECT COUNT (*) FROM table
+------+
| |
| 100 |
+------+
If you dont get any value back there is some problems
-
Im asking if you can check that a query has failed not if *isql* has failed. – Aaron Feb 10 '13 at 22:31