shellpower.sqlserver 1.0.7-alpha

This is a prerelease version of shellpower.sqlserver.
There is a newer version of this package available.
See the version list below for details.
dotnet add package shellpower.sqlserver --version 1.0.7-alpha
                    
NuGet\Install-Package shellpower.sqlserver -Version 1.0.7-alpha
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="shellpower.sqlserver" Version="1.0.7-alpha" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="shellpower.sqlserver" Version="1.0.7-alpha" />
                    
Directory.Packages.props
<PackageReference Include="shellpower.sqlserver" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add shellpower.sqlserver --version 1.0.7-alpha
                    
#r "nuget: shellpower.sqlserver, 1.0.7-alpha"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=shellpower.sqlserver&version=1.0.7-alpha&prerelease
                    
Install shellpower.sqlserver as a Cake Addin
#tool nuget:?package=shellpower.sqlserver&version=1.0.7-alpha&prerelease
                    
Install shellpower.sqlserver as a Cake Tool

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.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

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 724 9/24/2019
1.0.9-rc2 422 7/3/2019
1.0.9-rc1 1,644 1/21/2019
1.0.8-alpha 575 12/27/2018
1.0.7-alpha 589 12/19/2018
1.0.6-alpha 557 12/17/2018
1.0.5-alpha 565 12/11/2018
1.0.4-alpha 552 12/8/2018
1.0.1-alpha 570 11/19/2018
1.0.0-alpha 603 11/19/2018

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