Is there a way to chart the schema from a SQL Server database using the stored procedures of that database?
I do not mind if I have to use external software.
You can try playing with CodeSmith Generator . It SchemaExplorer Discovery API API allows you to programmatically access database items for a given database and do something creative with it. However, it will still be logically difficult to redesign the circuit / diagram in this way.
SQLCLR, Scripter Class SMO.
update: , .
information_schema, syscomments . , " " SQL-. , , , .
syscomments
, .
:
, :
Change after clarification
Unable to use script implied aspects (such as missing foreign keys) schemes from code