dbTalk Databases Forums  

execing sql using another connection

comp.databases.sybase comp.databases.sybase


Discuss execing sql using another connection in the comp.databases.sybase forum.



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

Default execing sql using another connection - 11-11-2003 , 08:09 AM






I have a stored prcoedure that checks for connections with a very old
lastreqtime and then disconnects them. I wanted to add a bit more
intelligence in that it will check to see if the connection is still
valid. I thought I would do this by having the connection execute a
basic sql command against the DB (select 1 from dummy) and then
checking the DB return code. However, I can't seem to find a way of
executing a sql statement on a specific connection (using conn ID).
Is this possible?
Using ASA7 on Win2K
Thanks,
Lou

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.