• BOL says to not use sp_attach_db - it has been deprecated.

    That said, sp_attach_db and CREATE database... (replacement for sp_attach_db) is not being trapped when using a catch block.

    So no closer to an answer.