|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: 2 days ago @ 1:10 PM
Points: 28,
Visits: 335
|
|
| Also must be SP2 or higher. That is when OBJECT_SCHEMA_NAME was introduced.
|
|
|
|
|
SSC Veteran
      
Group: General Forum Members
Last Login: Wednesday, May 01, 2013 5:15 AM
Points: 236,
Visits: 235
|
|
Hi Alejandro
What is the purpose of
select id, xtype from master.sys.sysobjects
is sys.objects not sufficient ?
Also would it better to change the join order i.e. if we are after permissions should we be using database_permissions as the base table.This will prevent nulls being returned where database roles have no explicitly defined permissions ? We could just use where Permission is not null I guess.
Lastly how can we get schema names to appear under the object name column ? I am seeing the following permissions ; ALTER CONTROL DELETE EXECUTE INSERT REFERENCES SELECT TAKE OWNERSHIP UPDATE VIEW CHANGE TRACKING VIEW DEFINITION
with no object name. Clearly it applies to a schema but it would be useful to get the schema name.
Cheers Preet
|
|
|
|