Firebird Question:
Download Questions PDF

Is it possible to determine clients IP address?

Answer:

To get it from SQL, you need to use Firebird 2.0 (own address), or Firebird 2.1 (anyone's):

If you use Firebird 2.0 or higher, use the GET_RDB$Context function with ('SYSTEM', 'CLIENT_ADDRESS') parameters.

If you use Firebird 2.1 or higher, you can get address of any client by selecting from the monitoring tables.

With Firebird 1.x you can try to get the information from TCP/IP stack, using netstat or lsof commands from the command-prompt. Just search for Firebird's port (3050 or gds_db).

Download Firebird Interview Questions And Answers PDF

Previous QuestionNext Question
How to write UDF s in Delphi?Is there a way to automate SQL execution from the command-line, batch job or shell script?