Skip to content

Commit

Permalink
Update Scripting.SQL documentation
Browse files Browse the repository at this point in the history
v0.5 documentation was not up to date.
  • Loading branch information
fgheysels authored Nov 23, 2021
1 parent 966093c commit 66a04f0
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ This module provides the following capabilities:
To have access to the following features, you have to import the module:

```powershell
PS> Install-Module -Name Arcus.Scripting.SQL -RequiredVersion 0.5.0
PS> Install-Module -Name Arcus.Scripting.SQL
```

## Invoke a database migration
Expand Down Expand Up @@ -42,14 +42,14 @@ Make sure that the credentials that you provide can write tables to the database
**Example with defaults**

```powershell
PS> RunDatabaseScript -ServerName "my-server-name" -DatabaseName "my-database-name" -Username "my-sql-username" -Password "my-sql-password"
PS> Invoke-AzSqlDatabaseMigration -ServerName "my-server-name.database.windows.net" -DatabaseName "my-database-name" -Username "my-sql-username" -Password "my-sql-password"
# Looking for SQL scripts in folder: ./sqlScripts
```

**Example with custom values**

```powershell
PS> RunDatabaseScript -ServerName "my-server-name" -DatabaseName "my-database-name" -Username "my-sql-username" -Password "my-sql-password" -ScriptsFolder "$PSScriptRoot/sql-scripts" -ScriptsFileFilter "*.MyScript.sql" -DatabaseSchema "custom"
PS> Invoke-AzSqlDatabaseMigration -ServerName "my-server-name.database.windows.net" -DatabaseName "my-database-name" -Username "my-sql-username" -Password "my-sql-password" -ScriptsFolder "$PSScriptRoot/sql-scripts" -ScriptsFileFilter "*.MyScript.sql" -DatabaseSchema "custom"
# Looking for SQL scripts in folder: ./sql-scripts
```

Expand Down

0 comments on commit 66a04f0

Please sign in to comment.