dbTalk Databases Forums  

sysproc or systable question.

sybase.public.sqlanywhere.general sybase.public.sqlanywhere.general


Discuss sysproc or systable question. in the sybase.public.sqlanywhere.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Torsten Brinkmann
 
Posts: n/a

Default sysproc or systable question. - 04-26-2006 , 04:28 AM






Hello,
does there a exists a sysprocedure which shows all dbprocedures that are in
use?
i need it to avoid that user can start same process at same time via
webinterface.

best regards.



Reply With Quote
  #2  
Old   
Bruce Hay
 
Posts: n/a

Default Re: sysproc or systable question. - 04-26-2006 , 09:09 AM






connection_property('CurrentProcedure') might do what you want. You would
need to call this for each active connection. Something like:
if exists (select * from sa_conn_info()
where
connection_property('CurrentProcedure',number)='<m y procedure>') then
// another connection is using the procedure
end if
This would only work if the procedure does not have nested calls. A more
reliable method of serialization (and also more expensive if frequently
called) would involve updating a table at entry to the procedure.

Whitepapers, TechDocs, bug fixes are all available through the iAnywhere
Developer Community at http://www.ianywhere.com/developer

"Torsten Brinkmann" <t.brinkmann (AT) svs_ungueltig (DOT) de> wrote

Quote:
Hello,
does there a exists a sysprocedure which shows all dbprocedures that are
in
use?
i need it to avoid that user can start same process at same time via
webinterface.

best regards.





Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.