Re: user permissions
- From: Erland Sommarskog <esquel@xxxxxxxxxxxxx>
- Date: Tue, 18 Mar 2008 15:54:02 -0700
Ola Hallengren (OlaHallengren@xxxxxxxxxxxxxxxxxxxxxxxxx) writes:
A user should be able to kill connections only for a specific database.
And in the end the user who is causing he mess in database B may have
database A as his current database, and is now running a cross-database
query...
2. We could also create the stored procedure WITH EXECUTE AS OWNER and
mark the database as TRUSTWORTHY. You're right that you have to be very
careful with this. One solution could be to create the stored procedure
in the master database (or a custom admin datatabase) and mark that
database as TRUSTWORTHY.
Or sign the procedure with a certificate, and create a login from this
certificate, and add this login to the processadmin server role. Note
that this login is not actually able to login, it's just a connection
between the certificate and the permission.
There should be no need for making things trustworthy here.
--
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:
- user permissions
- From: Trapulo
- Re: user permissions
- From: Uri Dimant
- Re: user permissions
- From: Trapulo
- Re: user permissions
- From: Charles Wang[MSFT]
- Re: user permissions
- From: Ola Hallengren
- Re: user permissions
- From: Charles Wang[MSFT]
- Re: user permissions
- From: Ola Hallengren
- Re: user permissions
- From: Charles Wang[MSFT]
- Re: user permissions
- From: Charles Wang[MSFT]
- Re: user permissions
- From: Ola Hallengren
- Re: user permissions
- From: Charles Wang[MSFT]
- Re: user permissions
- From: Ola Hallengren
- user permissions
- Prev by Date: Re: Restricting Access priviledge on SQL2000
- Next by Date: Re: EXECUTE AS question
- Previous by thread: Re: user permissions
- Next by thread: Re: user permissions
- Index(es):
Relevant Pages
|