dsccommunity / dsccommunity/SqlServerDsc
`Set-SqlDscDatabaseDefaultFullTextCatalog`: New command proposal
Open
@johlju is already working on this.
Since Oct 28, 2025.
enhancement
in progress
- Dominant language
- PowerShell
- Stars
- 385
- Forks
- 224
- PR merge metrics
- No merged PRs in 30d
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 #2177 (Expose settable SMO Database properties)
- Discovered in PR #2327 (Set-SqlDscDatabase refactoring)
- Comment: https://github.com/dsccommunity/SqlServerDsc/pull/2327#discussion_r2468121050
References
- SMO Documentation: Database.SetDefaultFullTextCatalog Method
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.