Firebird SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesFirebird SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 12th, 2003, 06:50 AM
moonlight moonlight is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Goiânia,GO,Brazil
Posts: 17 moonlight User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to moonlight
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.

Reply With Quote
  #2  
Old December 12th, 2003, 07:02 AM
upscene upscene is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 223 upscene User rank is Corporal (100 - 500 Reputation Level)upscene User rank is Corporal (100 - 500 Reputation Level)upscene User rank is Corporal (100 - 500 Reputation Level)upscene User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 7 h 14 m 50 sec
Reputation Power: 8
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

Reply With Quote
  #3  
Old December 12th, 2003, 07:19 AM
moonlight moonlight is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Goiânia,GO,Brazil
Posts: 17 moonlight User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to moonlight
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.

Reply With Quote
  #4  
Old December 12th, 2003, 07:24 AM
upscene upscene is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 223 upscene User rank is Corporal (100 - 500 Reputation Level)upscene User rank is Corporal (100 - 500 Reputation Level)upscene User rank is Corporal (100 - 500 Reputation Level)upscene User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 7 h 14 m 50 sec
Reputation Power: 8
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)

Reply With Quote
  #5  
Old December 12th, 2003, 07:28 AM
moonlight moonlight is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Goiânia,GO,Brazil
Posts: 17 moonlight User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to moonlight
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.

Reply With Quote
  #6  
Old December 12th, 2003, 07:32 AM
upscene upscene is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 223 upscene User rank is Corporal (100 - 500 Reputation Level)upscene User rank is Corporal (100 - 500 Reputation Level)upscene User rank is Corporal (100 - 500 Reputation Level)upscene User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 7 h 14 m 50 sec
Reputation Power: 8
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.

Reply With Quote
  #7  
Old December 12th, 2003, 07:36 AM
moonlight moonlight is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Goiânia,GO,Brazil
Posts: 17 moonlight User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to moonlight
Thank you

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesFirebird SQL Development > Getting connected users information


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT