• Karl,

    "select * from sysobjects will automatically select from the database you're currently logged into.", this helped me a lot.

    Thank you very much.

    Ram