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
SUMMARY

To view table diagrams (ERD) in MSSQL 2014, users must have the appropriate permissions assigned to their user role. Even if users can query tables successfully, access to the Diagrams folder in SQL Server Management Studio (SSMS) requires specific privileges. Users should verify their access level and may need to be added to the correct role to gain visibility of the diagrams. For local installations, users can utilize the 'sa' account or another administrator account to grant themselves the necessary permissions.

PREREQUISITES
  • Understanding of MSSQL 2014 and its features
  • Familiarity with SQL Server Management Studio (SSMS)
  • Knowledge of user roles and permissions in SQL Server
  • Basic SQL querying skills
NEXT STEPS
  • Research how to manage user roles in SQL Server
  • Learn about granting and revoking permissions in MSSQL 2014
  • Explore the use of the 'sa' account for administrative tasks
  • Investigate the differences between grant + deny and grant + revoke permission strategies
USEFUL FOR

Database administrators, developers working with MSSQL 2014, and anyone needing to manage or view database diagrams effectively.

WWGD
Science Advisor
Homework Helper
Messages
7,772
Reaction score
13,002
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 WWGD
We have many threads on AI, which are mostly AI/LLM, e.g,. ChatGPT, Claude, etc. It is important to draw a distinction between AI/LLM and AI/ML/DL, where ML - Machine Learning and DL = Deep Learning. AI is a broad technology; the AI/ML/DL is being developed to handle large data sets, and even seemingly disparate datasets to rapidly evaluated the data and determine the quantitative relationships in order to understand what those relationships (about the variaboles) mean. At the Harvard &...

Similar threads

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