Re: user defined Role - HELP
- From: "Tom Moreau" <tom@xxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 11 Jan 2008 06:33:45 -0500
It appeared that he was using dynamic SQL; that's why I thought he needed to
grant DELETE.
--
Tom
----------------------------------------------------
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS
SQL Server MVP
Toronto, ON Canada
https://mvp.support.microsoft.com/profile/Tom.Moreau
"Erland Sommarskog" <esquel@xxxxxxxxxxxxx> wrote in message
news:Xns9A2260C6C2DF4Yazorman@xxxxxxxxxxxx
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
.
- 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
- From: Erland Sommarskog
- Re: user defined Role - HELP
- Prev by Date: Re: user defined Role - HELP
- Next by Date: RE: sql server 2005 account lockout
- Previous by thread: Re: user defined Role - HELP
- Index(es):
Relevant Pages
|
|