As per sybase documentation for creating global temp tables.
Which says create a global temp table in tempdb. So that it can be shared by among different process.
Session 1: Here I create the global temp table through a proc.
Create procedure testglobaltemp as begin create table tempdb..tstglobal (id int , username varchar(8))
insert into tempdb..tstglobal select 1 , 'user1' end
create procedure accessglobaltemp as begin exec testglobaltemp select * from tempdb.tstglobal end
Everything works here as expected.
Session 2: (on a different instance) I run the same select * from tempdb.tstglobal it gives me the same result which is also expected.
Now I disconnect session 1 as per the documentation as soon I disconnect from session 1 the table should be dropped. But on session 2 i am still seeing data and query is working fine until or unless I dont drop the table explicitly.
Questions: I have 2 SP's say SP1 and SP2. I want to invoke them parallely using a third SP say SPCaller. is this possible in sybase 15.7
Thanks in advance.