If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
How to get server_name or IP address of computer from select statement
Hi,
I would like to write SQL to get info about server name or IP address on DB2 v9 on Windows. Is there any way to get some operating system info from "select" statement.
I have several testing databases and one production one. So it would be nice just to write "select server_name from..." or something like that. I would like to be 100% sure I am testing on test database.
Hi,
SELECT INBOUND_COMM_ADDRESS FROM TABLE( SNAPSHOT_APPL( 'DB_NAME', -1 )) as SNAPSHOT_BP
The above command returns client IP's. I would like to get server IP - where DB is installed.
Any idea?
Thanks,
Grofaty