Re: Windows Power User SQL
- From: Sammy <Sammy@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 28 Mar 2009 07:57:01 -0700
Hi Uri or Erland
When I run from the master database for example testing against user bill
execute as user= 'domain\bill.dobbs'
SELECT SUSER_NAME(), USER_NAME();
results = domain\bill.dobbs' , guest
Bill has not been given any access to the master database, but as guest is
enabled there it seems anyone can run queries on the master database through
the account guest. I tried revoking access to the guest account to master
without any success. Is there any way to prevent users accessing the master
database through the guest account.
thanks
for any help
Sammy
"Uri Dimant" wrote:
Sammy.
SELECT HAS_DBACCESS ( 'database_name' )
In SQL Server 2005, you can use the Has_Perms_By_Name() function
(http://msdn2.microsoft.com/en-us/library/ms189802.aspx).
For example, I would like to list all stored procedures which a role has
execute permission for.
This is an example of usage:
SELECT o.SchemaAndName,
has_perms_by_name(o.SchemaAndName, 'OBJECT', 'EXECUTE')
FROM (SELECT name, SCHEMA_NAME(schema_id) AS [schema],
SCHEMA_NAME(schema_id)+'.'+name AS SchemaAndName
FROM sys.objects
WHERE type = 'P') AS o
"Sammy" <Sammy@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:538F09E5-C03D-4E8B-BBA4-DAC3F29DD6D0@xxxxxxxxxxxxxxxx
Hi,
On one of our Sql 2005 servers someone added a user to a server as a
windows
power user with permission to log onto the server and have given them
permission to just read and write on one database.
They have been able to backup a database and view the list of tables on a
linked server.
How can I find out the whole list of permissions the user has on the sql
server as checking the actual permissions they only have read and write
permissions on one database and are not a member of any server roles.
Very confused any suggestions please let me know
Sammy
- Follow-Ups:
- Re: Windows Power User SQL
- From: Dan Guzman
- Re: Windows Power User SQL
- References:
- Windows Power User SQL
- From: Sammy
- Re: Windows Power User SQL
- From: Uri Dimant
- Windows Power User SQL
- Prev by Date: Cannot open database Properties window
- Next by Date: SQL Browser Service EXE
- Previous by thread: Re: Windows Power User SQL
- Next by thread: Re: Windows Power User SQL
- Index(es):
Relevant Pages
|