Skip to content

Commit

Permalink
Merge pull request #1380 from ChristophHannappel/fix/RegressionAdd-SP…
Browse files Browse the repository at this point in the history
…DscConfigDBLock

[SPFarm]Fix: Regression Bug Databasename with a dash
  • Loading branch information
ykuijs committed Feb 16, 2022
2 parents dcad7b7 + 8c5d1ea commit 173798c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- SPTrustedRootAuthority
- Fixed issue where certificates not in the Personal store could not be used
- Add-SPDscConfigDBLock
- Fixed issue where a Farm configuration Database could not contain a dash '-'

## [5.0.0] - 2021-12-17

Expand Down
2 changes: 1 addition & 1 deletion SharePointDsc/Modules/SharePointDsc.Farm/SPFarm.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ function Add-SPDscConfigDBLock
$command.Connection = $connection

# Added $Database just in case multiple farms are added at once.
$command.CommandText = "CREATE TABLE ##SPDscLock$Database (Locked BIT)"
$command.CommandText = "CREATE TABLE [##SPDscLock$Database] (Locked BIT)"
$null = $command.ExecuteNonQuery()
}
finally
Expand Down

0 comments on commit 173798c

Please sign in to comment.