-
Notifications
You must be signed in to change notification settings - Fork 228
Open
Labels
enhancementThe issue is an enhancement request.The issue is an enhancement request.help wantedThe issue is up for grabs for anyone in the community.The issue is up for grabs for anyone in the community.in progressThe issue is being actively worked on by someone.The issue is being actively worked on by someone.
Description
Description
Add a new public command Set-SqlDscDatabaseDefaultFullTextCatalog to configure the default full-text catalog for a SQL Server database using the SMO SetDefaultFullTextCatalog() method.
Details
The DefaultFullTextCatalog property on the SMO Database class requires calling the SetDefaultFullTextCatalog() method rather than direct property assignment. This command should be implemented as a separate cmdlet following the pattern established by other method-based commands.
Proposed Implementation
- Command Name:
Set-SqlDscDatabaseDefaultFullTextCatalog - Parameter Sets:
ServerObject+Name(with optionalRefresh)DatabaseObject(accepting pipeline input)
- Required Parameters:
CatalogName: The name of the full-text catalog to set as default
- Optional Parameters:
Force: Bypass confirmation promptsPassThru: Return the updated database object
- Behavior:
- Support
ShouldProcessfor -WhatIf and -Confirm - Call
$databaseObject.SetDefaultFullTextCatalog($CatalogName)on the SMO Database object - Include proper parameter validation and error handling
- Follow DSC Community PowerShell coding guidelines
- Support
Related Issues and PRs
- Related to issue
Set-SqlDscDatabase: Add parameters to command #2177 (Expose settable SMO Database properties) - Discovered in PR
Set-SqlDscDatabaseProperty: Refactor command #2327 (Set-SqlDscDatabase refactoring) - Comment:
Set-SqlDscDatabaseProperty: Refactor command #2327 (comment)
References
- SMO Documentation: Database.SetDefaultFullTextCatalog Method
Metadata
Metadata
Assignees
Labels
enhancementThe issue is an enhancement request.The issue is an enhancement request.help wantedThe issue is up for grabs for anyone in the community.The issue is up for grabs for anyone in the community.in progressThe issue is being actively worked on by someone.The issue is being actively worked on by someone.