dbTalk Databases Forums  

sa_conn_info() and multiple databases

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


Discuss sa_conn_info() and multiple databases in the sybase.public.sqlanywhere.general forum.



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

Default sa_conn_info() and multiple databases - 10-19-2007 , 02:15 PM






I noticed that if I have a service running multiple databases sa_conn_info()
will show me the users connected to all the databases (not just the one I am
logged into).

Is there a way to list the connections only in the database that I am
connected to?

I am running 9.0.2.3320

As a side note it seems like a a security issue that I can see who is logged
into a database that I have not signed into. Is that a problem?

Thank you.




Reply With Quote
  #2  
Old   
Paul Horan[TeamSybase]
 
Posts: n/a

Default Re: sa_conn_info() and multiple databases - 10-20-2007 , 08:41 AM






select * from sa_conn_info()
where dbnumber = connection_property( 'dbnumber');

Paul Horan[TeamSybase]

"David DeRam" <ns_xxxdderam (AT) progeny2000ns_xxx (DOT) com> wrote

Quote:
I noticed that if I have a service running multiple databases
sa_conn_info() will show me the users connected to all the databases (not
just the one I am logged into).

Is there a way to list the connections only in the database that I am
connected to?

I am running 9.0.2.3320

As a side note it seems like a a security issue that I can see who is
logged into a database that I have not signed into. Is that a problem?

Thank you.






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.