Re: What's the fastest way to assign read/write/execute right to a user?

From: Sue Hoegemeier (Sue_H@nomail.please)
Date: 09/25/02


From: Sue Hoegemeier <Sue_H@nomail.please>
Date: Tue, 24 Sep 2002 19:46:17 -0600


You can write a query to either generate a script of the
grant statements or use a cursor and loop through the
objects using dyanamic sql to grant the permissions.
There is no built in way to do this.
Some of the sites with scripts have examples along these
lines:
Swynk
http://www.swynk.com/sqlscripts/maintenance7.asp
SQL Server Central
http://www.sqlservercentral.com/scripts/

-Sue

On Tue, 24 Sep 2002 13:48:57 -0700, "Bruce"
<brucecheng@mail.com> wrote:

>But db_writer and db_reader don't have permission to run
>stored procedures nor user defined functions. I still need
>to manually assign every each stored procedures and
>functions.
>
>
>>-----Original Message-----
>>Look in SQL roles..
>>db_writer, db_reader
>>
>>Aleem A Mohammed
>>>-----Original Message-----
>>>What's the fastest way to set a user to have read/write
>>>rights to all tables/views and execute rights to all
>>>stored procedures/user defined functions? But I don't
>>want
>>>this user be able to change definitions of
>>>tables/views/stored procedures/user defined functions.
>>Nor
>>>create any new database objects.
>>>.
>>>
>>.
>>



Relevant Pages

  • Re: Cannot Open SQL Server Table in Access.ADP File.
    ... I dont think that SQL Server will take 'veiw dependencies' into effect; ... Generate Script Wizard did not work on my original database, ... After fixing some of my tables and a few stored procedures and views, ...
    (microsoft.public.access.adp.sqlserver)
  • osql - ignoring Go statement
    ... When executing this script using osql against SQL 2000 Sp3 ... The script is correct, can be run without problems in SQL Query Analyzer. ... looks like osql misses the GO between two stored procedures. ...
    (microsoft.public.sqlserver.programming)
  • Re: Strongly Type Datasets
    ... It is SQL 2005. ... I have gone to the login ... It won't create the stored procedures. ... The SQL script it generates is based on a SQL login so the script looks ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Strongly Type Datasets
    ... Any clues where abouts I might find it. ... It won't create the stored procedures. ... SQL script it generates is based on a SQL login so the script looks ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Strongly Type Datasets
    ... properties of the data set? ... It won't create the stored procedures. ... SQL script it generates is based on a SQL login so the script looks ...
    (microsoft.public.dotnet.framework.aspnet)