shellpower.sqlserver 1.0.9

Install-Package shellpower.sqlserver -Version 1.0.9
dotnet add package shellpower.sqlserver --version 1.0.9
<PackageReference Include="shellpower.sqlserver" Version="1.0.9" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add shellpower.sqlserver --version 1.0.9
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: shellpower.sqlserver, 1.0.9"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install shellpower.sqlserver as a Cake Addin
#addin nuget:?package=shellpower.sqlserver&version=1.0.9

// Install shellpower.sqlserver as a Cake Tool
#tool nuget:?package=shellpower.sqlserver&version=1.0.9
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

shellpower.sqlserver

Provides powershell cmdlets for managing and configuring sql server in a repeatable manner, ideal for continuous integration/deployment scenarios.

Usage

  • Install nuget package

    nuget install shellpower.sqlserver -outputdirectory packages
    
  • Create new file getting-started.ps1 with the following content

    
    # dot source the script
    . packages\bin\sqlserver.ps1 -dbServer "localhost" -dbName "foo"
    
    # Create sql user "bar" and assign it to db "foo"
    Add-DbUser -name "bar" -password "test-passw0rd!"
    
    # Remove sql user "bar" from db "foo" and from sql logins
    Remove-DbUser "bar"
    
  • Run .\getting-started.ps1

Refer to the tests in the source code for more examples.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.9 269 9/24/2019
1.0.9-rc2 230 7/3/2019
1.0.9-rc1 1,408 1/21/2019
1.0.8-alpha 332 12/27/2018
1.0.7-alpha 378 12/19/2018
1.0.6-alpha 351 12/17/2018
1.0.5-alpha 351 12/11/2018
1.0.4-alpha 345 12/8/2018
1.0.1-alpha 345 11/19/2018
1.0.0-alpha 364 11/19/2018

This package includes the powershell cmdlets, which can be referenced by your powershell scripts for performing common sql server configuration operations.