Solved

DB level permissions

Posted on 2010-09-16
6
293 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
  • 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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Viewers will learn how the fundamental information of how to create a table.

744 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now