Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Display Server & Databsource

Status
Not open for further replies.

Montana751

Programmer
Aug 14, 2001
64
US
Crystal XIr2 Oracle database
I have many servers and databases from which reports are run and I would like to have the server name and database information from where the report was generated to display on the report.

Anyone have an ideas how to do this?
 

Use a SQL Expression to call the Oracle Sys_Context function. You would then pass in various parameters to return the information you're looking for. For example:

SYS_CONTEXT ('userenv','server_host')

returns the server name.

SYS_CONTEXT ('userenv',instance_name')

returns the current instance.

There are lots of parameter values that you can use - google sys_context to find a complete listing.



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top