Question

I have a relatively small database that I would like to generate a diagram for and then create a pdf of that diagram. I have the diagram created in SQL Server (all tables would fit on one page of a pdf document) but cannot figure out how to export it to a document. Is this possible? The only option I've found is to copy it to the clipboard and then paste it into a Word Document but the quality isn't very good.

Was it helpful?

Solution

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.

OTHER TIPS

Using SQL Server Management Studio 2014:

  1. Right click diagram area
  2. On the menu bar select "Database Diagram" >> "Copy diagram to Clipboard"
  3. 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

Simply print it as PDF or as save as PDF.

Step 1: Right click on the diagram area and SELECT ALL

Or

select all tables one by one holding shift

File ---> Print ----> Adobe PDF / Microsoft to PDF ---> Print Button

My favorite tool for this type of thing is CutePDF. You can just print the diagram, but then you can pick the CutePDF writer from the printer dialog, and it'll print it to a PDF (you can choose the file you want it printed to).

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 enter image description here

And go back to generated diagram Right click and select view page break

enter image description here

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

Step 1: Right click on the diagram area and SELECT ALL

Step 2: File->Print -> chose default: Microsoft XPS Document Writer

Step 3: created *.oxps file convert to PDF on http://oxpstopdf.com/

Print to OneNote, then export as PDF.

Akhil's solution worked for me. You can also modify the% of the resolution according to the diagram

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top