Re: Stored procedures + table permissions
- From: "Carlos Sacristan" <nomail@xxxxxxxxxx>
- Date: Thu, 16 Jul 2009 13:12:00 +0200
Take a look at "permissions" section on BOL's topic (http://msdn.microsoft.com/en-us/library/aa260621%28SQL.80%29.aspx):
"TRUNCATE TABLE permissions default to the table owner, members of the sysadmin fixed server role, and the db_owner and db_ddladmin fixed database roles, and are not transferable."
--
-----------------------------
"Caminar sobre el agua y desarrollar software a partir de unas
especificaciones es fácil, si ambas están congeladas."
Edward V. Berard, ingeniero informático
http://blogs.solidq.com/es/elrincondeldba
"Bernhard Mayer" <Idonotexisthere@xxxxxxxxxxx> wrote in message news:OFhVZQgBKHA.1336@xxxxxxxxxxxxxxxxxxxxxxx
Dear fellow SQL'ers!
I have a stored procedure 'DoTurnover' which should do a 'truncate table' on two specific tables; how can I achieve to give this procedure the proper permission?
- The application user will log in with the SQL User 'mda'.
- 'mda' does not have the privileges to alter/modify a table structure.
- 'mda' is associated with the role 'db_functions' which has the right to execute the stored procedure 'DoTurnover'
This sould work with SQL Server 2000 and above; can anyone help me here? A T-SQL script would be very nice ... :-)
TIA
Bernhard
.
- References:
- Stored procedures + table permissions
- From: Bernhard Mayer
- Stored procedures + table permissions
- Prev by Date: Checking Password Complexity in SQL 2008
- Next by Date: Re: Checking Password Complexity in SQL 2008
- Previous by thread: Stored procedures + table permissions
- Next by thread: If Cell(Row, Colum).Format = number
- Index(es):
Relevant Pages
|
Loading