I want to show the diagram of tables in my database

יהונתן דאיטי 0 Reputation points
2024-07-16T16:49:36.6366667+00:00

I have window authentication in SSMS, i installed the SSMS as administrator but still i cant open diagram to my tables the server name is localhost, what can i do

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,862 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Olaf Helper 44,816 Reputation points
    2024-07-16T17:02:21.36+00:00

    Do you mean you want to create a database diagram (ERD)?

    There is a known issue, th function fails if not the SysAdmin account "sa" is the database owner; you have to change it.


  2. LucyChenMSFT-4874 4,825 Reputation points
    2024-07-17T02:25:33.7933333+00:00

    Hi @יהונתן דאיטי,

    Thank you for your reaching out and welcome to Microsoft Q&A!

    For the error message:

    Could not obtain information about Windows NT group/user 'CS-ROBOTICS\yonatan.daiti', error code 0x54b. (Microsoft SQL Server, Error: 15404)

    Please refer to the link in error message provided and verify the information below:

    If this error is the result of a lack of a full trust relationship between the SQL Server service account and the domain of the Windows account, one of the following actions can resolve the error:

    • Use an account from the same domain as the Windows user for the SQL Server service.
    • If SQL Server is using a machine account such as Network Service or Local System, the machine must be trusted by the domain containing the Windows User.
    • Use a SQL Server account.

    In addition, we can get the information from this official document:

    Although any user with access to a database can create a diagram, once the diagram has been created, the only users who can see it are the diagram creator and any member of the db_owner role. If the diagram creator is part of a user group and not a member of the db_owner role then they require their own login to view the diagram.

    Feel free to share your issue here if you have any concerns.

    Best regards,

    Lucy Chen


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our Documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    https://docs.microsoft.com/en-us/answers/support/email-notifications


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.