SELECT * FROM TABLE(SYSPROC.ENV_GET_INST_INFO()) AS SYSTEMINFO;
You can select just the INST_NAME column if that is all you want.
Other usefull information is are in these UDF's:
SYSPROC.ENV_GET_SYS_INFO
SYSPROC.ENV_GET_PROD_INFO
The above funcitons require V8.2 FP9+
PaulR - 22 Dec 2005 13:19 GMT
Thanks,
Unfortunately, we are only on fp8, for now I am using the definer in
SYSCAT.PACKAGES, but this is not ideal going forward.
So, when we go to 9+ I'll take up your suggestion.
Many thanks.