Re: Grant Execute on Proc

From: Dan Guzman (danguzman_at_nospam-earthlink.net)
Date: 11/20/03


Date: Thu, 20 Nov 2003 07:52:05 -0600

One needs to have CREATE TABLE permissions in order to create permanent
tables. However, users without CREATE TABLE rights can still create
temporary tables. Perhaps a temporary table is appropriate here since
your creating and dropping the table in your proc.

-- 
Hope this helps.
Dan Guzman
SQL Server MVP
-----------------------
SQL FAQ links (courtesy  Neil Pike):
http://www.ntfaq.com/Articles/Index.cfm?DepartmentID=800
http://www.sqlserverfaq.com
http://www.mssqlserver.com/faq
-----------------------
"Anand" <anonymous@discussions.microsoft.com> wrote in message
news:0b6a01c3af47$40d1dca0$a301280a@phx.gbl...
> Hello All,
>
> User "A" have  Execute Privilege on all stored
> procedures.
> Inside one of the stored procedures a table gets created
> and dropped.
> When user "A" executes this stored procedure, it says that
> he doesn't
> have rights to create table.
> How to solve this problem?  Can something be done without
> granting the user
> CREATE TABLE privelege.  Actually I don't want user "A" to
> create any tables.
>
> Please Help,
>
> Regards
> Anand


Relevant Pages

  • Re: Grant Execute on Proc
    ... If the table gets created in the proc everytime it runs then you can save ... I support PASS - the definitive, global community for SQL Server professionals - http://www.sqlpass.org "Anand" wrote in message ... > User "A" have Execute Privilege on all stored> procedures. ... > Inside one of the stored procedures a table gets created> and dropped. ...
    (microsoft.public.sqlserver.security)
  • Re: Grant Execute on Proc
    ... Anand writes: ... > Inside one of the stored procedures a table gets created ... This is because the rights to CREATE TABLE are not transferable. ... Books Online for SQL Server SP3 at ...
    (microsoft.public.sqlserver.security)
  • Re: Writing updates from a wide DataTable
    ... restrict IO rights to specific columns or trip over a column that can't be ... Creating your own UPDATE statement on the fly is what ADO classic did--based ... This posting is provided "AS IS" with no warranties, and confers no rights. ... >following the recommendations to use stored procedures to apply updates to ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Rename Extended stored procedures
    ... My advise would be to revoke rights and create stored procedures that wrap ... where XP's allow overloaded parameter type passing ... This posting is provided "AS IS" with no warranties, and confers no rights. ... > I've read on some sql security sites that dropping stored procedures is ...
    (microsoft.public.sqlserver.security)
  • Re: When to use Stored Procedures!
    ... > I am still new to Sql Server & lovin' it. ... you can revoke all rights ... Stored procedures have other benefits as well, ...
    (microsoft.public.sqlserver.server)