• Here is another illastration of a solution for your consideration;

    EXECUTE sp_MSforeachtable 'PRINT Object_Name(Object_ID(''?''))'