Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to have an export from my database diagram to PDF or image types. How can I do this?
I worked with SQL Server 2008 R2.

share|improve this question
An alternative solution - Microsoft Office Visio can reverse enginer a database (depending on the edition). – Greenstone Walker Apr 4 '13 at 5:04
@GreenstoneWalker: thanks friend ;) – Hamid Talebi Apr 4 '13 at 5:17
up vote 21 down vote accepted

There is no direct way to transform the standard SQL Server diagram to a PDF or an image file type. Actually there is no simple way to export the diagram from within the tool.

You can, however, save it externally and send it to someone by:

  • print to a file printer (an .xps file) which is formatted like a pdf and an XPS file viewer exists on any windows machine;
  • open the diagram and right click somewhere in the middle and you'll have there the option to "Copy diagram to clipboard". From here you paste to MSPaint or another image creator and save to wanted format;

Not very straightforward, but can do the job.

share|improve this answer
Thanks.Your answer help me.I want a document from my diagram in A4 or A3 paper. – Hamid Talebi Feb 5 '13 at 10:48
Complementary to this answer: you can print directly as PDF using a free PDF converter (& printing driver), e.g. I use doPDf: – firepol Dec 15 '14 at 12:30

It has a very easy way to have everything on one page! Simply right click on the diagram area, and choose "Copy Diagram to Clipboard"! Then you can paste it in Paint and save it as any picture type you want...

share|improve this answer
Your answer is very good,But I can only accept one solution! :( .up vote it. – Hamid Talebi Jan 11 at 15:09

SchemaCrawler is a free tool that can create database diagrams in PDF format, with help from GraphViz. You can search for tables that you want to include in your

Sualeh Fatehi, SchemaCrawler

share|improve this answer

in SQL management 2012, under Database Design menu... select "Copy Diagram To Clipboard"... paste into any program which will let you print or save to PDF.

share|improve this answer

protected by Paul White May 3 '15 at 9:40

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.