When I call the following procedure from 2 different connections in ISQL, one waits for another for completion before returning to isql. This was tried on ASA 10, 11, 12. Create the following procedure. create procedure CSEnter() begin declare i int; message 'enter scroll for ' to client; set i = 0; while i < 3 loop message 'begin while ' to client; waitfor delay '0:0:10'; message 'end while ' to client; set i = i + 1; end loop; message 'leave scroll for ' to client; end;
asked 09 Jan '13, 07:59 bomark Volker Barth |
I tested (ASA11 and ISQLc) your interesting submission, but the result is almost exactly the same. answered 10 Jan '13, 05:52 Jan24 Would be interesting if you change "to client" to "to log" (possibly only inside the loop) - it may be that the client side just has to be "ready" to accept messages from the server, and that this may interfere here whereas writing to the servers's console log would be done immediately. Just guessing:)
(10 Jan '13, 06:09)
Volker Barth
|
The delay is shown by the "Execution time: 42.209 seconds" in the first ISQL window, but only 30.126 seconds for the second:
I'm guessing it has something to do with the ISQL client program, not the SQL Anywhere server.