• Well done!

    I would recommend to use built-in information views instead of system table sys.sysobjects

    Cheers