title: SQL Server: create database diagram by query
body: <p>I've been wondering if it's possible to create a database diagram by query instead of going through adding it manually in Management Studio.</p>
  
  <p>Has anyone of you done this before?</p>