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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

current database name 1

Status
Not open for further replies.

vionca

MIS
Nov 19, 2003
60
US
Hi there,

I've been searching through the Books online and have found nothing so far. I was wondering if there was a built in function that would return the name of the database I was currently working in.

I was hoping to do something like
SELECT amtOverDue, databasename
FROM customer_tbl

Anyone have any ideas?

Vionca
 
forgot to mention, normally you pass through the id to this metadata function, but if none is passed it defaults to current database.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top