An open API service indexing awesome lists of open source software.

https://github.com/msadeqsirjani/schemadiff

Script and create SQL Server objects quickly
https://github.com/msadeqsirjani/schemadiff

c-sharp database mssql schema version-control

Last synced: 2 months ago
JSON representation

Script and create SQL Server objects quickly

Awesome Lists containing this project

README

          

# Schema Diff - Script and create SQL Server objects quickly

## Schema Diff has three main commands:

### SCRIPT
```bash
SchemaDiff.exe script --server localhost --database db --scriptDir c:\somedir
```

This will generate sql scripts for all objects in the database in a
directory structure that looks something like:
```
c:\somedir\
data
foreign_keys
procedures
tables
views
props.sql
schemas.sql
```

### CREATE
```bash
SchemaDiff.exe create --server localhost --database db --scriptDir c:\somedir
```

This will create a database named db from the sql scripts in c:\somedir.

### COMPARE
```bash
SchemaDiff.exe compare --source "server=dev;database=db;user id=###;password=###" --target "server=qa;database=db;user id=###;password=###" --outFile diff.sql
```

This will compare the databases named `db` between `dev` and `qa` and
create a sql script called `diff.sql` that can be run on `qa` to make it's
schema identical to `dev`.

See ```SchemaDiff.exe help [command]``` for more information and options on each command.

## DOWNLOAD
The latest release can be downloaded [here](https://github.com/msadeqsirjani/SchemaDiff/releases)

## CONTRIBUTING
Pull requests are welcome and appreciated.