﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2008 / SQL Server 2008 Administration  / Grant (permission) on database::  ... where can I see these? / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Wed, 22 May 2013 02:03:01 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Grant (permission) on database::  ... where can I see these?</title><link>http://www.sqlservercentral.com/Forums/Topic1394849-1550-1.aspx</link><description>It would be advisable to create User-defined Database Roles, add your Database Users to the Roles, and only grant permissions or Fixed Role Membership to those Roles. The Roles will act as containers where you can always go to figure out what a given person can do in a database. If I ever need to add people to db_datareader (I prefer not too but sometimes it makes sense, usually for non-prod or ad hoc reporting) I still do not add Users directly to db_datareader. I add the User to a User-defined Database Role and add that Database Role to db_datareader. This keeps the user-to-role layout flat, i.e. Users can only belong to User-defined Database Roles (I aim for 1 to 1 User to User-defined Role, i.e. each user can only belong to one Role) which eases my auditing tasks and makes it easier to avoid a lot of the multi-role-membership and inherited membership oddities that can arise.</description><pubDate>Wed, 12 Dec 2012 11:24:46 GMT</pubDate><dc:creator>opc.three</dc:creator></item><item><title>RE: Grant (permission) on database::  ... where can I see these?</title><link>http://www.sqlservercentral.com/Forums/Topic1394849-1550-1.aspx</link><description>Not through the GUI, no. But there are various T-SQL statements for interrogating permissions too, e.g.select * from sys.database_permissions dp inner join sys.database_principals p on p.principal_id = dp.grantee_principal_idwhere class_desc = 'DATABASE'</description><pubDate>Wed, 12 Dec 2012 05:26:46 GMT</pubDate><dc:creator>Gazareth</dc:creator></item><item><title>RE: Grant (permission) on database::  ... where can I see these?</title><link>http://www.sqlservercentral.com/Forums/Topic1394849-1550-1.aspx</link><description>Yeah, this was just a simple example, I actually need to grant select, execute, view definition in this case, and similar more complex permissions in other cases. It's a shame these are not easy to see once they have been applied.</description><pubDate>Tue, 11 Dec 2012 16:31:56 GMT</pubDate><dc:creator>Danah</dc:creator></item><item><title>RE: Grant (permission) on database::  ... where can I see these?</title><link>http://www.sqlservercentral.com/Forums/Topic1394849-1550-1.aspx</link><description>Hi,database user properties &amp;gt; securables tab &amp;gt; Search... &amp;gt; All Object of the types... &amp;gt; Databases &amp;gt; Voila!Although I'd look at using the db_datareader database role instead if possible, it's a little more visible.Cheers</description><pubDate>Tue, 11 Dec 2012 05:03:05 GMT</pubDate><dc:creator>Gazareth</dc:creator></item><item><title>Grant (permission) on database::  ... where can I see these?</title><link>http://www.sqlservercentral.com/Forums/Topic1394849-1550-1.aspx</link><description>If run the following statement:[code]use someDB;grant select on database::someDB to someuser;[/code]Is there anywhere I can see this permission using the object explorer? If I go to the database user properties &amp;gt; securables tab, it doesn't show up (seems like the highest level shown here is schema). If I go to the login properties &amp;gt; securables tab, it also doesn't show up.PS: Are these two operations identical?[code]use someDB;grant select on database::someDB to someuser;[/code][code]use someDB;grant select to someuser;[/code]</description><pubDate>Mon, 10 Dec 2012 19:18:27 GMT</pubDate><dc:creator>Danah</dc:creator></item></channel></rss>