-
Notifications
You must be signed in to change notification settings - Fork 225
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SqlSetup: Connect-SQLAnalysis no longer using LoadWithPartialName() (#…
…1692) - SqlSetup - The helper function `Connect-SqlAnalysis` was using `LoadWithPartial()` to load the assembly _Microsoft.AnalysisServices_. On a node where multiple instances with different versions of SQL Server (regardless of features) is installed, this will result in the first assembly found in the GAC will be loaded into the session, not taking versions into account. This can result in an assembly version being loaded that is not compatible with the version of SQL Server it was meant to be used with. A new method of loading the assembly _Microsoft.AnalysisServices_ was introduced under a feature flag; `'AnalysisServicesConnection'`. This new functionality depends on the [SqlServer](https://www.powershellgallery.com/packages/SqlServer) module, and must be present on the node. The [SqlServer](https://www.powershellgallery.com/packages/SqlServer) module can be installed on the node by leveraging the new DSC resource `PSModule` in the [PowerShellGet](https://www.powershellgallery.com/packages/PowerShellGet/2.1.2) module (v2.1.2 and higher). This new method does not work with the SQLPS module due to the SQLPS module does not load the correct assembly, while [SqlServer](https://www.powershellgallery.com/packages/SqlServer) module (v21.1.18080 and above) does. The new functionality is used when the parameter `FeatureFlag` is set to `'AnalysisServicesConnection'`. This functionality will be the default in a future breaking release. - Under a feature flag; `'AnalysisServicesConnection'`. The detection of a successful connection to the SQL Server Analysis Services has also been changed. Now it actually evaluates the property `Connected` of the returned `Microsoft.AnalysisServices.Server` object. The new functionality is used when the parameter `FeatureFlag` is set to `'AnalysisServicesConnection'`. This functionality will be the default in a future breaking release.
- Loading branch information
Showing
11 changed files
with
527 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,5 +29,6 @@ | |
PSDscResources = '2.12.0.0' | ||
StorageDsc = '4.9.0.0' | ||
NetworkingDsc = '7.4.0.0' | ||
PowerShellGet = '2.1.2' | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.