@@ -229,30 +229,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
229229### Changed
230230
231231- ` Set-SqlDscDatabase `
232- - BREAKING CHANGE: Completely refactored to support all 85+ settable SMO Database
232+ - BREAKING CHANGE: Completely refactored to support settable SMO Database
233233 properties as parameters ([ issue #2177 ] ( https://github.com/dsccommunity/SqlServerDsc/issues/2177 ) ).
234- The command now uses a generic property-setting loop instead of hard‑coded handling.
235- Writable examples include:
236- - 46 Boolean properties (e.g., ` AnsiNullDefault ` , ` AutoClose ` , ` AutoShrink ` ,
237- ` RecursiveTriggersEnabled ` , ` QuotedIdentifiersEnabled ` )
238- - 8 Int32 properties (e.g., ` TargetRecoveryTime ` , ` TwoDigitYearCutoff ` , ` MaxDop ` )
239- - 19 String properties (e.g., ` Collation ` , ` DefaultSchema ` )
240- - 11 Enum properties (e.g., ` CompatibilityLevel ` , ` PageVerify ` , ` RecoveryModel ` ,
241- ` UserAccess ` )
242- - Note: This command excludes properties that are only settable at database
243- creation time (e.g., ` CatalogCollation ` , ` ContainmentType ` ), properties
244- requiring specific SMO methods instead of direct assignment (e.g., default
245- filegroup changes via ` SetDefaultFileGroup() ` , snapshot isolation via
246- ` SetSnapshotIsolation() ` , full‑text catalog management, FILESTREAM configuration),
247- and properties managed by dedicated commands (e.g., database ownership via
248- ` Set-SqlDscDatabaseOwner ` ). Property availability may vary by SQL Server version;
249- the command dynamically exposes properties supported by the current SMO version.
250- - Removed all property-specific validation logic - SMO now handles validation
251- - Removed individual property update messages - now uses generic
252- ` Database_UpdatingProperty ` message
253- - Added check to skip updating properties that are already set to the desired value
254- - Properties are only modified if they differ from the current value, reducing
255- unnecessary database operations
256234- ` Remove-SqlDscAgentAlert `
257235 - Now uses ` $PSCmdlet.ThrowTerminatingError() ` instead of exception helper
258236 functions for proper terminating error handling ([ issue #2193 ] ( https://github.com/dsccommunity/SqlServerDsc/issues/2193 ) ).
0 commit comments