diff --git a/Sources/SqlDatabase/Configuration/CommandLine.create.net452.txt b/Sources/SqlDatabase/Configuration/CommandLine.create.net452.txt index 8d475f80..5742b84d 100644 --- a/Sources/SqlDatabase/Configuration/CommandLine.create.net452.txt +++ b/Sources/SqlDatabase/Configuration/CommandLine.create.net452.txt @@ -35,5 +35,8 @@ example: create new "NewDatabase" on MSSQL "server" based on scripts from "C:\Ne example: create new "NewDatabase" on PostgreSQL "server" based on scripts from "C:\NewDatabase" with "Variable1=value1" and "Variable2=value2" > SqlDatabase create "-database=Host=localhost;Username=postgres;Database=NewDatabase" -from=C:\NewDatabase -varVariable1=value1 -varVariable2=value2 +example: create new "NewDatabase" on MySQL "server" based on scripts from "C:\NewDatabase" with "Variable1=value1" and "Variable2=value2" +> SqlDatabase create "-database=Server=localhost;Database=NewDatabase;User ID=root;Password=qwerty;" -from=C:\NewDatabase -varVariable1=value1 -varVariable2=value2 + example: use previous example with -whatIf options to show steps without execution > SqlDatabase create "-database=Data Source=server;Initial Catalog=NewDatabase;Integrated Security=True" -from=C:\NewDatabase -varVariable1=value1 -varVariable2=value2 -whatIf \ No newline at end of file diff --git a/Sources/SqlDatabase/Configuration/CommandLine.create.txt b/Sources/SqlDatabase/Configuration/CommandLine.create.txt index 1ffa6d3c..0f73ff86 100644 --- a/Sources/SqlDatabase/Configuration/CommandLine.create.txt +++ b/Sources/SqlDatabase/Configuration/CommandLine.create.txt @@ -38,5 +38,8 @@ example: create new "NewDatabase" on MSSQL "server" based on scripts from "C:\Ne example: create new "NewDatabase" on PostgreSQL "server" based on scripts from "C:\NewDatabase" with "Variable1=value1" and "Variable2=value2" > SqlDatabase create "-database=Host=localhost;Username=postgres;Database=NewDatabase" -from=C:\NewDatabase -varVariable1=value1 -varVariable2=value2 +example: create new "NewDatabase" on MySQL "server" based on scripts from "C:\NewDatabase" with "Variable1=value1" and "Variable2=value2" +> SqlDatabase create "-database=Server=localhost;Database=NewDatabase;User ID=root;Password=qwerty;" -from=C:\NewDatabase -varVariable1=value1 -varVariable2=value2 + example: use previous example with -whatIf options to show steps without execution > SqlDatabase create "-database=Data Source=server;Initial Catalog=NewDatabase;Integrated Security=True" -from=C:\NewDatabase -varVariable1=value1 -varVariable2=value2 -whatIf \ No newline at end of file diff --git a/Sources/SqlDatabase/Configuration/CommandLine.execute.net452.txt b/Sources/SqlDatabase/Configuration/CommandLine.execute.net452.txt index 084cb450..33f0df89 100644 --- a/Sources/SqlDatabase/Configuration/CommandLine.execute.net452.txt +++ b/Sources/SqlDatabase/Configuration/CommandLine.execute.net452.txt @@ -42,5 +42,8 @@ example: execute scripts from "c:\Scripts\script.sql" on "MyDatabase" on MSSQL " example: execute scripts from "c:\Scripts\script.sql" on "MyDatabase" on PostgreSQL "server" with "Variable1=value1" and "Variable2=value2" > SqlDatabase execute "-database=Host=localhost;Username=postgres;Database=MyDatabase" -from=c:\Scripts\script.sql -varVariable1=value1 -varVariable2=value2 +example: execute scripts from "c:\Scripts\script.sql" on "MyDatabase" on MySQL "server" with "Variable1=value1" and "Variable2=value2" +> SqlDatabase execute "-database=Server=localhost;Database=NewDatabase;User ID=root;Password=qwerty;" -from=c:\Scripts\script.sql -varVariable1=value1 -varVariable2=value2 + example: use previous example with -whatIf options to show steps without execution > SqlDatabase execute "-database=Data Source=server;Initial Catalog=MyDatabase;Integrated Security=True" -from=c:\Scripts\script.sql -varVariable1=value1 -varVariable2=value2 -whatIf \ No newline at end of file diff --git a/Sources/SqlDatabase/Configuration/CommandLine.execute.txt b/Sources/SqlDatabase/Configuration/CommandLine.execute.txt index e1449897..29d6e966 100644 --- a/Sources/SqlDatabase/Configuration/CommandLine.execute.txt +++ b/Sources/SqlDatabase/Configuration/CommandLine.execute.txt @@ -45,5 +45,8 @@ example: execute scripts from "c:\Scripts\script.sql" on "MyDatabase" on MSSQL " example: execute scripts from "c:\Scripts\script.sql" on "MyDatabase" on PostgreSQL "server" with "Variable1=value1" and "Variable2=value2" > SqlDatabase execute "-database=Host=localhost;Username=postgres;Database=MyDatabase" -from=c:\Scripts\script.sql -varVariable1=value1 -varVariable2=value2 +example: execute scripts from "c:\Scripts\script.sql" on "MyDatabase" on MySQL "server" with "Variable1=value1" and "Variable2=value2" +> SqlDatabase execute "-database=Server=localhost;Database=NewDatabase;User ID=root;Password=qwerty;" -from=c:\Scripts\script.sql -varVariable1=value1 -varVariable2=value2 + example: use previous example with -whatIf options to show steps without execution > SqlDatabase execute "-database=Data Source=server;Initial Catalog=MyDatabase;Integrated Security=True" -from=c:\Scripts\script.sql -varVariable1=value1 -varVariable2=value2 -whatIf \ No newline at end of file diff --git a/Sources/SqlDatabase/Configuration/CommandLine.export.net452.txt b/Sources/SqlDatabase/Configuration/CommandLine.export.net452.txt index 3e3e960b..f4e423e1 100644 --- a/Sources/SqlDatabase/Configuration/CommandLine.export.net452.txt +++ b/Sources/SqlDatabase/Configuration/CommandLine.export.net452.txt @@ -40,4 +40,7 @@ example: export data from sys.tables view into "c:\tables.sql" from "master" dat > SqlDatabase export "-database=Data Source=server;Initial Catalog=master;Integrated Security=True" "-fromSql=SELECT * FROM sys.tables" -toFile=c:\tables.sql example: export data from information_schema.tables view into "c:\tables.sql" from "postgres" database on PostgreSQL "server" -> SqlDatabase export "-database=Host=localhost;Username=postgres;Database=postgres" "-fromSql=SELECT * FROM information_schema.tables" -toFile=c:\tables.sql \ No newline at end of file +> SqlDatabase export "-database=Host=localhost;Username=postgres;Database=postgres" "-fromSql=SELECT * FROM information_schema.tables" -toFile=c:\tables.sql + +example: export data from information_schema.tables view into "c:\tables.sql" from "sys" database on MySQL "server" +> SqlDatabase export "-database=Server=localhost;Database=sys;User ID=root;Password=qwerty;" "-fromSql=SELECT * FROM information_schema.tables" -toFile=c:\tables.sql \ No newline at end of file diff --git a/Sources/SqlDatabase/Configuration/CommandLine.export.txt b/Sources/SqlDatabase/Configuration/CommandLine.export.txt index 3e3e960b..f4e423e1 100644 --- a/Sources/SqlDatabase/Configuration/CommandLine.export.txt +++ b/Sources/SqlDatabase/Configuration/CommandLine.export.txt @@ -40,4 +40,7 @@ example: export data from sys.tables view into "c:\tables.sql" from "master" dat > SqlDatabase export "-database=Data Source=server;Initial Catalog=master;Integrated Security=True" "-fromSql=SELECT * FROM sys.tables" -toFile=c:\tables.sql example: export data from information_schema.tables view into "c:\tables.sql" from "postgres" database on PostgreSQL "server" -> SqlDatabase export "-database=Host=localhost;Username=postgres;Database=postgres" "-fromSql=SELECT * FROM information_schema.tables" -toFile=c:\tables.sql \ No newline at end of file +> SqlDatabase export "-database=Host=localhost;Username=postgres;Database=postgres" "-fromSql=SELECT * FROM information_schema.tables" -toFile=c:\tables.sql + +example: export data from information_schema.tables view into "c:\tables.sql" from "sys" database on MySQL "server" +> SqlDatabase export "-database=Server=localhost;Database=sys;User ID=root;Password=qwerty;" "-fromSql=SELECT * FROM information_schema.tables" -toFile=c:\tables.sql \ No newline at end of file diff --git a/Sources/SqlDatabase/Configuration/CommandLine.upgrade.net452.txt b/Sources/SqlDatabase/Configuration/CommandLine.upgrade.net452.txt index 5a0ee7fb..bbeb66a7 100644 --- a/Sources/SqlDatabase/Configuration/CommandLine.upgrade.net452.txt +++ b/Sources/SqlDatabase/Configuration/CommandLine.upgrade.net452.txt @@ -36,5 +36,8 @@ example: upgrade "MyDatabase" on MSSQL "server", migration steps from "C:\Migrat example: upgrade "MyDatabase" on PostgreSQL "server", migration steps from "C:\MigrationSteps" with "Variable1=value1" and "Variable2=value2" > SqlDatabase upgrade "-database=Host=localhost;Username=postgres;Database=MyDatabase" -from=C:\MigrationSteps -varVariable1=value1 -varVariable2=value2 +example: upgrade "MyDatabase" on MySQL "server", migration steps from "C:\MigrationSteps" with "Variable1=value1" and "Variable2=value2" +> SqlDatabase upgrade "-database=Server=localhost;Database=NewDatabase;User ID=root;Password=qwerty;" -from=C:\MigrationSteps -varVariable1=value1 -varVariable2=value2 + example: use previous example with -whatIf options to show steps without execution > SqlDatabase upgrade "-database=Data Source=server;Initial Catalog=MyDatabase;Integrated Security=True" -from=C:\MigrationSteps -varVariable1=value1 -varVariable2=value2 -whatIf diff --git a/Sources/SqlDatabase/Configuration/CommandLine.upgrade.txt b/Sources/SqlDatabase/Configuration/CommandLine.upgrade.txt index 62be9c77..f53cd075 100644 --- a/Sources/SqlDatabase/Configuration/CommandLine.upgrade.txt +++ b/Sources/SqlDatabase/Configuration/CommandLine.upgrade.txt @@ -39,6 +39,9 @@ example: upgrade "MyDatabase" on MSSQL "server", migration steps from "C:\Migrat example: upgrade "MyDatabase" on PostgreSQL "server", migration steps from "C:\MigrationSteps" with "Variable1=value1" and "Variable2=value2" > SqlDatabase upgrade "-database=Host=localhost;Username=postgres;Database=MyDatabase" -from=C:\MigrationSteps -varVariable1=value1 -varVariable2=value2 +example: upgrade "MyDatabase" on MySQL "server", migration steps from "C:\MigrationSteps" with "Variable1=value1" and "Variable2=value2" +> SqlDatabase upgrade "-database=Server=localhost;Database=NewDatabase;User ID=root;Password=qwerty;" -from=C:\MigrationSteps -varVariable1=value1 -varVariable2=value2 + example: use previous example with -whatIf options to show steps without execution > SqlDatabase upgrade "-database=Data Source=server;Initial Catalog=MyDatabase;Integrated Security=True" -from=C:\MigrationSteps -varVariable1=value1 -varVariable2=value2 -whatIf