How to get Permission to See Tables Diagram in MSSQL2014

  • Thread starter Thread starter WWGD
  • Start date Start date
  • Tags Tags
    Diagram
Click For Summary

Discussion Overview

The discussion revolves around accessing table diagrams, specifically Entity-Relationship Diagrams (ERDs), in MSSQL 2014. Participants explore issues related to user permissions and access levels required to view these diagrams within SQL Server Management Studio.

Discussion Character

  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant notes they can query tables but cannot view the ERD, suggesting a potential access level issue.
  • Another participant inquires about the method of importing the database and the version of MSSQL 2014 being used.
  • A participant mentions that the way permissions are created (grant + deny vs. grant + revoke) may affect access to diagrams.
  • It is suggested that if the Diagrams folder is not visible, the user ID may need to be added to the correct role to gain access.
  • Concerns are raised about the challenges of obtaining the necessary role from a database administrator, especially in managed environments.
  • Participants discuss the possibility of using an administrator account to grant oneself the necessary permissions on a local machine.

Areas of Agreement / Disagreement

Participants generally agree that access permissions are likely the issue preventing the viewing of ERDs, but there is no consensus on the specific steps to resolve the problem or the best approach to obtain the necessary permissions.

Contextual Notes

Some limitations include the lack of clarity on the specific permissions required and the potential differences in user roles depending on the database setup. The discussion does not resolve the exact nature of the permissions needed.

Who May Find This Useful

This discussion may be useful for users of MSSQL 2014 who are encountering issues with accessing database diagrams and are seeking insights on permissions and roles within SQL Server Management Studio.

WWGD
Science Advisor
Homework Helper
Messages
7,802
Reaction score
13,105
Hi All,
I am using a prefab database from MSSQL 2014 (I installed it and imported a file from Murach's site containing scripts, I queried the scripts , whose output was the database). I can see all the tables and the table contents, i.e.,
my 'Select * from table_name ' all run without a problem. But I get nothing when I ask to see the table
diagrams, i.e., the ERD (Entity-Relation Diagram), I get nothing. I have read something to the effect that
viewing diagrams (even without the option of changing/rewriting) requires a certain level of access, which
I assume I don't have (although I believe that during the installation process I was automatically assigned the role of dba). Anyone know how to go about viewing the DB's ERD? Is there a way of figuring out my access level in this database setup?
Thanks.
 
Technology news on Phys.org
Did you use the import assistant or simply start the script without an import? Is it the full or express version of MSSQL 2014, 64 or 32 bit?
 
The script was part of some freeware in Murach's website (unaffiliated to MSSQL2014, AFAIK), as a .zip file. I just copied the file contents and ran them as a query. It was a full version of MSSQL2014, 64-bit which I downloaded in a "standard" way, by selecting MSSQL2014 with tools as the file I wanted to download, and then clicking..
 
If you don't even see the Diagrams folder above the Tables folder in Sql Management Studio, you need to get your user id added to the correct role:

https://msdn.microsoft.com/en-us/library/ms186345.aspx

About what a "role" is:

https://msdn.microsoft.com/en-us/library/ms189121.aspx

If you're using a server managed by a database administrator, they will resist giving you that role in many cases, which is quite frustrating. But on your own local machine, you can always give it to yourself using the 'sa' account or other administrator account. Here's where you do that:

setting_roles.jpg
 
Last edited:
  • Like
Likes   Reactions: WWGD

Similar threads

Replies
5
Views
7K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
Replies
2
Views
3K
  • · Replies 7 ·
Replies
7
Views
7K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 18 ·
Replies
18
Views
2K