• Jonathan AC Roberts (6/21/2010)


    ChiragNS (6/21/2010)


    We granted select permissions to mycertificateuser. Do we need to give permissions to all the other users who are going to execute the procedure (i think not.. thats the point of this article).

    You need to grant EXECUTE permission to the stored procedure to all users who need to execute the procedure but you do not need to grant them any access to the tables if you use a certificate.

    User xyz has been given execute permissions to the stored procedure and no select permissions on the underlying tables. When xyz executes this procedure does the exectution context belong to mycertificateuser. How does xyz get access to the underlying tables in the dynamic sql in hte stored procedure.

    The procedure is executed by user 'xyz' but the stored procedure gets its permission to select from the table through the certificate.

    Thank you Jonathan

    "Keep Trying"