It is a bit of a \"chicken or egg\" kind of query, but can someone dreamup a query that can return the name of the current database instance in which the query executes? Bel
You can use DB_NAME() :
SELECT DB_NAME()