shellpower.sqlserver
1.0.1-alpha
See the version list below for details.
dotnet add package shellpower.sqlserver --version 1.0.1-alpha
NuGet\Install-Package shellpower.sqlserver -Version 1.0.1-alpha
<PackageReference Include="shellpower.sqlserver" Version="1.0.1-alpha" />
paket add shellpower.sqlserver --version 1.0.1-alpha
#r "nuget: shellpower.sqlserver, 1.0.1-alpha"
// Install shellpower.sqlserver as a Cake Addin #addin nuget:?package=shellpower.sqlserver&version=1.0.1-alpha&prerelease // Install shellpower.sqlserver as a Cake Tool #tool nuget:?package=shellpower.sqlserver&version=1.0.1-alpha&prerelease
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 [reflection.assembly]::LoadWithPartialName("Microsoft.SqlServer.Smo") $server = new-object Microsoft.SqlServer.Management.Smo.Server("localhost") # Create sql login Create-Login $server "test-user" "testpassw0rd!" # Create windows login Create-Login $server "testdomain\testuser"
Run
.\getting-started.ps1
Refer to the tests in the source code for more examples.
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 | 683 | 9/24/2019 |
1.0.9-rc2 | 383 | 7/3/2019 |
1.0.9-rc1 | 1,604 | 1/21/2019 |
1.0.8-alpha | 535 | 12/27/2018 |
1.0.7-alpha | 549 | 12/19/2018 |
1.0.6-alpha | 517 | 12/17/2018 |
1.0.5-alpha | 524 | 12/11/2018 |
1.0.4-alpha | 509 | 12/8/2018 |
1.0.1-alpha | 523 | 11/19/2018 |
1.0.0-alpha | 554 | 11/19/2018 |
This package includes the powershell cmdlets, which can be referenced by your powershell scripts for performing common sql server configuration operations.