question

DataArchitect avatar image
DataArchitect asked

allow access to views graphical query designer sql server

Hi all I have granted an analyst select access to a single schema containing a set of views so the analyst can write reports etc but not have any other access to the db. Whilst they can query the view to their hearts content and even open the GUI query builder, they cannot see the views they have access to inside query builder. Does anyone know if this is a genuine bug or a permissions issue? kind regards
permissionsschemagui
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
KenJ avatar image
KenJ answered
Grant view definition
5 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

DataArchitect avatar image DataArchitect commented ·
on the schema?
0 Likes 0 ·
KenJ avatar image KenJ commented ·
yes, if you want the user to be able to view all definitions within the schema: "VIEW DEFINITION granted at [the schema] scope allows the grantee to see all metadata for all objects that are contained in the specified schema unless the grantee is denied VIEW DEFINITION or CONTROL permissions for an individual entity in the schema" - http://technet.microsoft.com/en-us/library/ms175808(v=SQL.105).aspx GRANT syntax details - http://technet.microsoft.com/en-us/library/ms187940(v=sql.105).aspx
0 Likes 0 ·
DataArchitect avatar image DataArchitect commented ·
Im afraid that hasnt worked, when double clicking on the schema i can see new permission but none of the views allocated to the schema appear in graphical query designer
0 Likes 0 ·
KenJ avatar image KenJ commented ·
I've never used the graphical designer. I just took a peek and am trying to understand what you mean. * Can you see the views when you expand the 'Views' folder inside the database in SSMS? * Can you see the view definition when you right-click the view and select 'Design'? * Within the view designer, can you see the other views on the 'View' tab when you right-click the design surface and select 'Add Table...' * Are you opening the view designer some other way and trying to see the views from within the empty view designer (if so, how do you open the designer without going through the 'View' folder)? * Not view designer specific, can you right-click a view and 'Script View as...' -> 'Create To' -> 'New Query Editor Window'?
0 Likes 0 ·
DataArchitect avatar image DataArchitect commented ·
The user can see the views in ssms. They cannot see the views in the design GUI (ctrl N , crtl shift Q) then click on views tab. This tool is similar to the views designer but is just used for querying. Thank you for your continued support KenJ
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.