Skip to content

Commit

Permalink
Support multi-instances
Browse files Browse the repository at this point in the history
  • Loading branch information
apichaya-s committed Aug 23, 2018
1 parent a450e82 commit 53b725f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
- Corrected reference to "PsDscRunAsAccount" in documentation
([issue #1199](https://github.com/PowerShell/SqlServerDsc/issues/1199)).
[Nick Reilingh (@NReilingh)](https://github.com/NReilingh)
- Changes to SqlDatabaseOwner
- Support multi-instances which is the instance cannot be omitted
([issue #1197](https://github.com/PowerShell/SqlServerDsc/issues/1197)).

## 11.4.0.0

Expand Down
6 changes: 3 additions & 3 deletions DSCResources/MSFT_SqlDatabaseOwner/MSFT_SqlDatabaseOwner.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function Get-TargetResource
[System.String]
$ServerName = $env:COMPUTERNAME,

[Parameter()]
[Parameter(Mandatory = $true)]
[ValidateNotNullOrEmpty()]
[System.String]
$InstanceName = 'MSSQLSERVER'
Expand Down Expand Up @@ -116,7 +116,7 @@ function Set-TargetResource
[System.String]
$ServerName = $env:COMPUTERNAME,

[Parameter()]
[Parameter(Mandatory = $true)]
[ValidateNotNullOrEmpty()]
[System.String]
$InstanceName = 'MSSQLSERVER'
Expand Down Expand Up @@ -191,7 +191,7 @@ function Test-TargetResource
[System.String]
$ServerName = $env:COMPUTERNAME,

[Parameter()]
[Parameter(Mandatory = $true)]
[ValidateNotNullOrEmpty()]
[System.String]
$InstanceName = 'MSSQLSERVER'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ class MSFT_SqlDatabaseOwner : OMI_BaseResource
[Key, Description("The name of database to be configured.")] String Database;
[Required, Description("The name of the login that will become a owner of the desired sql database.")] String Name;
[Write, Description("The host name of the SQL Server to be configured.")] String ServerName;
[Write, Description("The name of the SQL instance to be configured.")] String InstanceName;
[Key, Description("The name of the SQL instance to be configured.")] String InstanceName;
};

0 comments on commit 53b725f

Please sign in to comment.