How to Export database diagram for all the table at once

Esam 20 Reputation points
2025-09-27T09:38:46.0866667+00:00

How to export a database diagram of all the tables at once. There are so many tables to deal with one by one. Also, I want to see all of the PK/FK relationships from one window or chart.

And if possible, to have the diagrams compatible with the Mermaid Charts format .mmd

SQL Server Database Engine
0 comments No comments
{count} votes

Answer accepted by question author
  1. Erland Sommarskog 128.7K Reputation points MVP Volunteer Moderator
    2025-09-27T10:36:57.8866667+00:00

    Right-click the database and select New Diagram. In the box that appears you get a list of all the tables. Press the Shift key and move to the end of the box and click the last table. You have now selected all tables, and you will get a diagram with all tables, which you can do what ever you like.

    There is no functionality to save the diagram any specific format like Mermaid.


0 additional answers

Sort by: Most helpful

Your answer

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