on 2013 Jan 09 7:59 AM
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;
Request clarification before answering.
I tested (ASA11 and ISQLc) your interesting submission, but the result is almost exactly the same.
I modified the procedure slightly.
if exists (select 1 from sysprocedure where proc_name='CSEnter') then
drop procedure CSEnter
end if;
create procedure CSEnter()
begin
declare i int;
declare @t varchar(32);
set @t = current timestamp;
message current timestamp || ' Enter scroll for ' to client;
set i = 0;
while i < 3 loop
message current timestamp || ' Begin waiting ' to client;
waitfor delay '0:0:10';
message current timestamp || ' End waiting ' to client;
set i = i + 1;
end loop;
message current timestamp || ' Leave scroll for ' to client;
message DATEDIFF(millisecond, current timestamp, @t) || ' Execution time' to client;
end;
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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:)
User | Count |
---|---|
53 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.