Skip to content

Commit

Permalink
Inserted image in readme file
Browse files Browse the repository at this point in the history
  • Loading branch information
AMagistroni authored Sep 7, 2021
1 parent 8c33286 commit a8933e2
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,21 @@ This project use [ANTLRv4](https://github.com/antlr/antlr4) to parse TSql schema

# How to use:

Extract from SqlManagement the creation schema of the origin database and destination database.
Extract from SqlManagement the database creation schemas of the origin and destination databases.

![First step](Doc/FirstScreen.PNG)

1. Choose the origin schema database.
2. Chose the destination schema database.
3. Load schema.

![Second step](Doc/Secondscreen.PNG)

1. Choose a suffix(_diff is the default) and an output directory
2. Choose a file name. It will contain the update schema.
3. Chose the db objects that you want compare or you want update.
4. Click compare to generate two files with the difference between schemas.
5. Click create update file to create a file with sql statement to modify the destination as origin database.

## Compare
The compare feature creates two files that you can compare with WinMerge or other tool for comparing file.
Expand All @@ -11,12 +25,15 @@ You can choose the output directory where create the diff files and a suffix.

The name of the diff files created are:
* origin + suffix.extensionOfOriginFile
* destination + suffix.extensionOfOriginFile
* destination + suffix.extensionOfDestinationFile

An ErrorCompare.txt file is created with errors when parsing.

## Update schema
Update feature creates an update schema from origin to destination.
You can choose the name of the database and the name of the update schema file.
You can choose the name of update schema file.

An erro file is created with errors when parsing with name:
* UpdateSchemaFileName + _errorsUpdateSchema.extensionOfUpdateSchemaFileName


0 comments on commit a8933e2

Please sign in to comment.