• You can use "SELECT DB_NAME()" to get the name of the database you are currently working at.

    Thanks - that's what I needed to know.