Reverse-engineering a database is to convert an existing database into a model that can be represented either by an ERD diagram or a schema containing database objects, such as tables, views, stored procedures, etc. along with their associated data. dbForge Schema Compare allows users to reverse-engineer a database using the following methods:
The Create Scripts Folder wizard allows you to import database objects to separate SQL files. A scripts folder is a set of scripts representing a database schema and data.
Pros
1. On the ribbon, select Database > Create Scripts Folder to open the Create Scripts Folder wizard.
2. Select Database as a source type, a server connection, and a database from which the scripts folder will be created.
3. Select Scripts Folder as a destination type and set a path to the empty folder that will contain SQL scripts for objects.
To customize a structure for the scripts folder, click Scripts Folder Structure. In the window that opens, select the types of objects you want to script and click OK.
4. Click Create to create the scripts folder.
The Schema Synchronization Wizard allows you to import database objects to the single or individual .sql files.
Pros
Cons
1. On the toolbar, click New Schema Comparison to open the New Schema Comparison wizard.
2. On the Source and Target page of the wizard, select the source database and server connection and a target scripts folder.
3. Optional: On the Options page, set up schema comparison options.
4. To run schema comparison, click Compare.
5. In the comparison results grid that opens, view the schema comparison results and Synchronize objects to the target database to open the Schema Synchronization Wizard.
6. On the Output page of the wizard, select either of the following:
7. To run the synchronization, click Synchronize.