Re: Executing dynamic select statement in a SP
From: Sue Hoegemeier (Sue_H@nomail.please)
Date: 12/30/02
- Next message: Dan Guzman: "Re: Executing dynamic select statement in a SP"
- Previous message: Chen: "Executing dynamic select statement in a SP"
- In reply to: Chen: "Executing dynamic select statement in a SP"
- Next in thread: Dan Guzman: "Re: Executing dynamic select statement in a SP"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: Sue Hoegemeier <Sue_H@nomail.please> Date: Mon, 30 Dec 2002 07:24:37 -0700
If the stored procedure uses dynamic SQL then the users will
need permissions on the objects referenced in the SQL
statement. That's just the way it works.
You can find an interesting article on dynamic SQL at:
http://www.algonet.se/~sommar/dynamic_sql.html
-Sue
On Mon, 30 Dec 2002 06:02:22 -0800, "Chen" <cshn@yahoo.com>
wrote:
>Hi all,
>
>I have a SP which has dynamic SQL statements. I have given
>the execute only permission to couple of users on this SP.
>These users do not have any permission on the tables
>referred inside the SP. If I do not use the dynamic SQLs
>everything works just fine but with dynamic SQLs when I
>execute them in the SP I get select permission denied to
>tables. This is urgent. Any help is appriciated.
>
>Thanks in advance
>
>Chen
- Next message: Dan Guzman: "Re: Executing dynamic select statement in a SP"
- Previous message: Chen: "Executing dynamic select statement in a SP"
- In reply to: Chen: "Executing dynamic select statement in a SP"
- Next in thread: Dan Guzman: "Re: Executing dynamic select statement in a SP"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|