Skip to content
This repository was archived by the owner on May 7, 2024. It is now read-only.

Add explanation for multiple objects #259

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 15 additions & 6 deletions doc/usage_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,18 +72,24 @@ For option parameters, pass in '-h':
Script only features compatible with the specified SQL
Server database edition.
--include-objects [ [ ...]]
Database objects to include in script.
Database objects to include in script.
Each object delimited by space.
--exclude-objects [ [ ...]]
Database objects to exclude from script.
Database objects to exclude from script.
Each object delimited by space.
--include-schemas [ [ ...]]
Database objects of this schema to include in script.
Database objects of this schema to include in script.
Each object delimited by space.
--exclude-schemas [ [ ...]]
Database objects of this schema to exclude from
script.
script.
Each object delimited by space.
--include-types [ [ ...]]
Database objects of this type to include in script.
Database objects of this type to include in script.
Each object delimited by space.
--exclude-types [ [ ...]]
Database objects of this type to exclude from script.
Database objects of this type to exclude from script.
Each object delimited by space.
--ansi-padding Generates ANSI Padding statements.
--append Append script to file.
--check-for-existence
Expand Down Expand Up @@ -188,6 +194,9 @@ Below are example commands that run against the AdventureWorks database. Here is
# generate DDL scripts for the dbo schema and pipe the output to a file
mssql-scripter -S localhost -d AdventureWorks -U sa --include-objects dbo. > ./dboschema.sql

# Using space to include multiple objects
mssql-scripter -S localhost -d AdventureWorks -U sa --include-objects table1 table2 > ./multipleObjects.sql

### Exclude database objects

# generate DDL scripts for objects that do not contain 'Sale' in their name to stdout
Expand Down