The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Databases
> Firebird SQL Development
|
Getting connected users information
Discuss Getting connected users information in the Firebird SQL Development forum on Dev Shed. Getting connected users information Firebird SQL Development forum discussing administration, Firebird SQL syntax, or other Firebird SQL-related topics. Firebird is the evolution of Borland's Interbase product.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

December 12th, 2003, 05:50 AM
|
|
Registered User
|
|
Join Date: Dec 2003
Location: Goiânia,GO,Brazil
Posts: 17
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Getting connected users information
Hello everyone
I've searched but I still haven't found out where I can get information about a connected user in Firebird...
I wanna know things like.. username, connectionid, host, time... this stuff.
Is there any kind of table that keeps this information?
Thank you.
|

December 12th, 2003, 06:02 AM
|
|
Contributing User
|
|
Join Date: Dec 2003
Posts: 249
  
Time spent in forums: 8 h 23 m 12 sec
Reputation Power: 13
|
|
|
Well, I have to disappoint you:
You cannot.
This functionality is expected for Fb 2.0
__________________
Martijn Tonies
Database Workbench: developer IDE for Firebird, MySQL, InterBase, MSSQL Server and Oracle
Upscene Productions
http://www.upscene.com
|

December 12th, 2003, 06:19 AM
|
|
Registered User
|
|
Join Date: Dec 2003
Location: Goiânia,GO,Brazil
Posts: 17
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
Quote: Originally posted by upscene
Well, I have to disappoint you:
You cannot.
This functionality is expected for Fb 2.0 |
Oh Lord. That is NOT good.
Anyways, thanks you very much for answering.
|

December 12th, 2003, 06:24 AM
|
|
Contributing User
|
|
Join Date: Dec 2003
Posts: 249
  
Time spent in forums: 8 h 23 m 12 sec
Reputation Power: 13
|
|
|
Well, there is _some_ info about connected users available, but it only works on a per database basis and is only accessible via the API, I believe. So it's pretty much useless in itself (except if you want to check if there's no-one else besides yourself that's connected)
|

December 12th, 2003, 06:28 AM
|
|
Registered User
|
|
Join Date: Dec 2003
Location: Goiânia,GO,Brazil
Posts: 17
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Actually I was trying to do a trigger.. I use it in Oracle and now I`m trying to adapt it to FB. When a user deletes from a specific table, my trigger will record a lot of stuff.. including host name. So all this mess is to find the host name of a connected user.
|

December 12th, 2003, 06:32 AM
|
|
Contributing User
|
|
Join Date: Dec 2003
Posts: 249
  
Time spent in forums: 8 h 23 m 12 sec
Reputation Power: 13
|
|
|
Well, you can get the user via CURRENT_USER, but for hostname etc, there's no such thing yet. A connectionID (a numerical value) is available in Firebird 1.5: check the release notes for this.
|

December 12th, 2003, 06:36 AM
|
|
Registered User
|
|
Join Date: Dec 2003
Location: Goiânia,GO,Brazil
Posts: 17
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
Thank you 
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|