Import DDL into an ER diagram you can edit
Redrawing an existing database means typing every table and key again. ERDsmith reads the DDL the database already has and builds the model from it, keys and relationships included.
CREATE TABLE [shop].[Room] ( [RoomId] INT NOT NULL, [Name] NVARCHAR (60) NOT NULL, [Seats] SMALLINT NOT NULL, CONSTRAINT [PK_Room] PRIMARY KEY CLUSTERED ([RoomId] ASC) ); CREATE TABLE [shop].[Equipment] ( [EquipmentId] INT NOT NULL, [RoomId] INT NOT NULL, [Name] NVARCHAR (80) NOT NULL, CONSTRAINT [PK_Equipment] PRIMARY KEY CLUSTERED ([EquipmentId] ASC), CONSTRAINT [FK_Equipment_Room_RoomId] FOREIGN KEY ([RoomId]) REFERENCES [shop].[Room] ([RoomId]) );
Room, and Equipment with its foreign key to it.
01 · Source
A script, a folder or a paste
Choose a script file, a folder of table files, or paste the DDL into the editor. The tables come in on the diagram in front.

02 · Preview
See what changes before it changes
Preview reads the script into a copy of the project and lists what it creates, replaces, alters and drops. Nothing changes until Import, and Import is one undo step.

03 · Skipped
What it skips is listed
A statement the model has no place for, a view or a procedure, is banded in the script and listed with its line in the Output. Statements that only set up a session, such as SET or USE, are passed over.

04 · Change scripts
Run a change script on the model
Import runs into the open project as the database would run it: ALTER TABLE, DROP and renames apply to the tables already there, in the script’s order. The Preview lists each table it alters with what changes, a column added or renamed.

By hand or imported
| By hand | In ERDsmith | |
|---|---|---|
| Tables and keys | typed again from the database | read from its CREATE TABLE script |
| Relationships | drawn line by line | drawn from the foreign keys, composite keys included |
| What it can't read | unknown until something is missing | views, procedures and data skipped and listed in the Output |
| A change script | applied to the drawing by hand | ALTER, DROP and renames replayed on the model in order |
| A name the project already has | found when the database refuses it | a table of that name is replaced whole; any other name is shown before Import, which stays off |