Unix Technical Forum

execing sql using another connection

This is a discussion on execing sql using another connection within the Sybase forums, part of the Database Server Software category; --> I have a stored prcoedure that checks for connections with a very old lastreqtime and then disconnects them. I ...


Go Back   Unix Technical Forum > Database Server Software > Sybase

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-08-2008, 04:05 PM
Lou
 
Posts: n/a
Default execing sql using another connection

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:51 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com