Solved

DB level permissions

Posted on 2010-09-16
6
333 Views
Last Modified: 2012-05-10
are these 2 talking about the same permissions?

sp_dbfixedrolepermission -- brings back 105 records
SELECT * FROM fn_my_permissions (NULL, 'DATABASE') -- brings back 61 records
0
Comment
Question by:anushahanna
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 24

Accepted Solution

by:
DBAduck - Ben Miller earned 500 total points
ID: 33696030
No they are not the same.  The first one simply tells you what permissions each fixed db role has given to it.

The second is more contextual to you and what you have permissions on for that database.
0
 
LVL 6

Author Comment

by:anushahanna
ID: 33710094
so if a sysadmin runs it, should he/she get 105 rows back for the second query?
0
 
LVL 24

Expert Comment

by:DBAduck - Ben Miller
ID: 33710097
No, because it will just show what he/she has permissions on and does not correspond to the db fixed roles.  So the results will vary.
0
Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

 
LVL 6

Author Comment

by:anushahanna
ID: 33728775
OK.

doesn't a sysadmin 'implicitly' have permission on 'all' that is possible in SQL Server?
0
 
LVL 24

Expert Comment

by:DBAduck - Ben Miller
ID: 33731340
Yes, that is correct.  There is nothing that a sysadmin cannot do on a SQL Server.
0
 
LVL 6

Author Comment

by:anushahanna
ID: 33749901
OK. but sorry, I am not getting it, in that reason, should not the sysadmin have all the 105 permissions mentioned in dbfixedrolepermission sp?

thanks dbaduck
0

Featured Post

Comparison of Amazon Drive, Google Drive, OneDrive

What is Best for Backup: Amazon Drive, Google Drive or MS OneDrive? In this free whitepaper we look at their performance, pricing, and platform availability to help you decide which cloud drive is right for your situation. Download and read the results of our testing for free!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question