Skip to content
프로젝트

소개

Script and create SQL Server objects quickly

데이터 및 분석

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
-1
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Schema Zen - Script and create SQL Server objects quickly

Schema Zen has three main commands:

script

dotnet schemazen 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

dotnet schemazen create --server localhost --database db --scriptDir c:\somedir

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

compare

dotnet schemazen compare --source "server=dev;database=db" --target "server=qa;database=db" --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 dotnet schemazen help [command] for more information and options on each command.



Quick Start

If you don't already have a tool manifest in your project

dotnet new tool-manifest

Install SchemaZen

dotnet tool install SchemaZen

Script your database to disk

dotnet schemazen script --server localhost --database db --scriptDir c:\somedir

1.x versions

SchemaZen was changed to a cross platform dotnet tool in version 2.0. Older 1.x releases can be downloaded here

Contributing

Pull requests are welcome and appreciated. See contributing.md for guidelines.

Chat

Join the chat at https://gitter.im/sethreno/schemazen


Here's some stats and an estimate of what it would cost to develop this project. Scc Count Badge Scc Count Badge

If you've found Schema Zen helpful you can buy me a coffee to say thanks. Cheers!

관련 프로젝트 살펴보기

불러오는 중…