How to create a PDF database diagram in SQL Server?
For better quality After generating the diagram in sql server management studio
Go to File -> page setup
Set print Scale into 10 or lower. Select paper size into tabloid Set Orientation into Landscape Set printer name microsoft print to pdf After that press ok
And go back to generated diagram Right click and select view page break
Now you can drag and drop each tables inside the page you want.
After that click on File ->print Select Microsoft print to PDF and hit print button.
You will get a PDF of ER diagram
Using SQL Server Management Studio 2014:
- Right click diagram area
- On the menu bar select "Database Diagram" >> "Copy diagram to Clipboard"
- Open MS Word and paste it
To display your diagram in PDF format, follow the below steps:
- Click anywhere in the diagram area
- Right click -> Copy to clipboard
- Paste it in paint window
- Save it as a png image
- Open browser and search for png to pdf converter online tool
- Convert it to pdf
I have not used it myself but SchemaSpy appears to be able to draw an ERD using Graphviz, which can be output into ps2 (among many other formats) and converted to PDF.