• Carlo,

    Your code did not list ANY tables in the SP, but it did list another SP called from within it?

    Are either yours or David's routines dependent upon ownership in the code eg spname vs tablename vs dbo.spname vs dbo.tablename or database.dbo.tablename?

    Best,

    Doug