Re: Get Database Name From SQL

Re: Get Database Name From SQL

 

  





If its distributed db2

db2 "select current server from sysibm.sysdummy1"







"Blair Jensen "
<db2udbdba-ezmlms
hield-x79282313.x To
[Email Address Removed] "LazyDBA Discussion"
a.com> <[Email address protected]
cc
04/28/2005 06:09
PM Subject
Get Database Name From SQL










Does anyone know if there is a way to get the database name that I'm
connected to from SQL?

Thanks,
Blair

==============================================================================

"Attention: This message is intended only for the individual to whom it is
addressed and may contain information that is confidential or privileged.
If you are not the intended recipient, or the employee or person
responsible for delivering it to the intended recipient, you are hereby
notified that any dissemination, distribution, copying or use is strictly
prohibited. If you have received this communication in error, please notify
the sender and destroy or delete this communication immediately."
==============================================================================



---------------------------------------------------------------------
PLEASE CLICK REPLY-ALL TO SEND A REPLY TO EVERYONE
website: http://www.LazyDBA.com
To unsubscribe: http://www.lazydba.com/unsubscribe.html



DB2 & UDB email list listserv db2-l LazyDBA home page