Senin, 16 September 2013

[MS_AccessPros] Users Executing Stored Procedure With OWNER Access

 

Greetings All,

 

I have the following stored procedure:

 

CREATE PROCEDURE [dbo].[usp_NewScriptPwd]

      -- Add the parameters for the stored procedure here

      @ScrUser varchar(6),

      @EncPwd varchar(8),

      @ModBy      varchar(10),

      @EncKey varchar(16)

 

      WITH EXECUTE AS OWNER,

            RECOMPILE

 

AS

 

BEGIN

 

    -- Insert statements for procedure here

      INSERT INTO dbo.tblScriptConfigNASCO(ScriptingID, ScriptingPassword, ChangeUser, PassKey)

      VALUES(@ScrUser, dbo.fnEncDecRc4(@EncKey, @EncPwd), @ModBy, @EncKey)

 

END

 

Must I still GRANT EXECUTE to the users that will be running code that calls this stored procedure?

 

Darrell

 


The information contained in this communication is highly confidential and is intended solely for the use of the individual(s) to whom this communication is directed. If you are not the intended recipient, you are hereby notified that any viewing, copying, disclosure or distribution of this information is prohibited. Please notify the sender, by electronic mail or telephone, of any unintended receipt and delete the original message without making any copies.

Blue Cross Blue Shield of Michigan and Blue Care Network of Michigan are nonprofit corporations and independent licensees of the Blue Cross and Blue Shield Association.

__._,_.___
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (1)
.

__,_._,___

Tidak ada komentar:

Posting Komentar