I use mssql_select_db() quite often in my scripts, but I could cut down on that a lot if I knew what db was currently selected.
Is there anyway to return what db is currently active on a connection?