-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SqlSetup: Allows install BC and CONN on SQL Server 2022 #1872
Comments
Good suggestion. Sounds like a good idea with such assert being added. |
I think we should add a command List of available features and what is available in each version: |
On second though, that sound more like a |
- New public command: - `Test-SqlDscIsSupportedFeature` - Evaluates if a feature is supported by a specific Microsoft SQL Server major version. _This command must be extended with_ _a full list of when features were added and removed in each major_ _version to fully work_. - New private commands: - `Get-FileVersionInformation` - Returns the version information for a file. - `Assert-Feature` - Throws an exception if a feature is not supported for a specific Microsoft SQL Server major version. - Update private command: - `Assert-SetupActionProperties` was changed to throw an exception when a feature is not supported (uses `Assert-Feature`). The private function indirectly used by the setup action commands. - SqlSetup - Update to support checking non-supported features using the command `SqlDscIsSupportedFeature` ([issue #1872).
Problem description
I've recently upgraded my SqlServerDSc module to 16.1.0 while adding in support for Sql Server 2022 and had issues getting a successful installation. Upon further investigation I found the issue is related to BC and CONN feature support. Those features have been deprecated in Sql Server 2022 but are allowed in the SqlSetup resource to support previous editions. The bug comes in because the following
I've fixed this by having different feature install list for 2022 and previous versions. Though the resource probably should just prevent you from supplying those features if the version is 2022 to prevent this behavior.
Verbose logs
DSC configuration
Suggested solution
I think the easiest thing would be to just add a check similar to the SSMS check but for any of the Tools features, BC, CONN, SDK that are no longer supported in 2022.
SQL Server edition and version
SQL Server PowerShell modules
Operating system
PowerShell version
SqlServerDsc version
The text was updated successfully, but these errors were encountered: