• See "PERMISSIONS function" topic in BOL.

    And topics linked from there.

    _____________
    Code for TallyGenerator