Re: user defined Role - HELP
- From: Erland Sommarskog <esquel@xxxxxxxxxxxxx>
- Date: Fri, 11 Jan 2008 00:32:16 -0800
Tom Moreau (tom@xxxxxxxxxxxxxxxxxxxx) writes:
I'm afraid that you will have to go with using DELETE instead of TRUNCATE
TABLE to remove the data. Consequently, the GRANT will be for DELETE.
Tom, for DELETE he does not need to GRANT, the procedure takes care of that.
Don't put it in the SP. Just do the GRANT as follows:
Grant ALTER TABLE on tblReportNums to 'UM Case Mgmt'
No, that's wrong. The correct command would be
GRANT ALTER ON tblReportNums TO [UM Case Mgmt]
Two errors: 1) You don't grant ALTER TABLE on an object. In fact ALTER TABLE
is not any permission at all. 2) The role name should not be in single
quotes as it is an identifier. Since it includes spaces, the name needs to
be quoted, but identifiers are quoted with brackets or double quotes.
--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.
- Follow-Ups:
- Re: user defined Role - HELP
- From: Tom Moreau
- Re: user defined Role - HELP
- References:
- Re: user defined Role - HELP
- From: Tom Moreau
- Re: user defined Role - HELP
- From: Tom Moreau
- Re: user defined Role - HELP
- From: Charlie
- Re: user defined Role - HELP
- From: Erland Sommarskog
- Re: user defined Role - HELP
- From: Tom Moreau
- Re: user defined Role - HELP
- From: Charlie
- Re: user defined Role - HELP
- From: Tom Moreau
- Re: user defined Role - HELP
- Prev by Date: Re: user defined Role - HELP
- Next by Date: Re: user defined Role - HELP
- Previous by thread: Re: user defined Role - HELP
- Next by thread: Re: user defined Role - HELP
- Index(es):
Relevant Pages
|