Skip to content

Commit 791177c

Browse files
Remove-DbaReplPublication - Add replication library loading to fix Publication type error
Add Add-ReplicationLibrary call to the begin block to ensure Microsoft.SqlServer.Rmo.dll is loaded before the Publication type constraint is parsed. This follows the same pattern used by Remove-DbaReplArticle and other replication commands. Co-authored-by: Chrissy LeMaire <potatoqualitee@users.noreply.github.com>
1 parent 9e87304 commit 791177c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

public/Remove-DbaReplPublication.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ function Remove-DbaReplPublication {
6969
[Switch]$EnableException
7070
)
7171
begin {
72+
Add-ReplicationLibrary
7273
$publications = @( )
7374
}
7475
process {

0 commit comments

Comments
 (0)