Skip to content

Commit

Permalink
change splatting to remove <br> from docs (#9292)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpomfret authored Mar 27, 2024
1 parent b4d4fb0 commit 5ddae43
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 32 deletions.
24 changes: 12 additions & 12 deletions public/Add-DbaReplArticle.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -68,25 +68,25 @@ function Add-DbaReplArticle {
.EXAMPLE
PS C:\> $article = @{
SqlInstance = "mssql1"
Database = "pubs"
Publication = "testPub"
Name = "publishers"
Filter = "city = 'seattle'"
}
>> SqlInstance = "mssql1"
>> Database = "pubs"
>> Publication = "testPub"
>> Name = "publishers"
>> Filter = "city = 'seattle'"
>> }
PS C:\> Add-DbaReplArticle @article -EnableException
Adds the publishers table to the TestPub publication from mssql1.Pubs with a horizontal filter of only rows where city = 'seattle.
.EXAMPLE
PS C:\> $cso = New-DbaReplCreationScriptOptions -Options NonClusteredIndexes, Statistics
PS C:\> $article = @{
SqlInstance = 'mssql1'
Database = 'pubs'
Publication = 'testPub'
Name = 'stores'
CreationScriptOptions = $cso
}
>> SqlInstance = 'mssql1'
>> Database = 'pubs'
>> Publication = 'testPub'
>> Name = 'stores'
>> CreationScriptOptions = $cso
>> }
PS C:\> Add-DbaReplArticle @article -EnableException
Adds the stores table to the testPub publication from mssql1.pubs with the NonClusteredIndexes and Statistics options set
Expand Down
28 changes: 14 additions & 14 deletions public/New-DbaReplCreationScriptOptions.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ function New-DbaReplCreationScriptOptions {
.EXAMPLE
PS C:\> $cso = New-DbaReplCreationScriptOptions -Options NonClusteredIndexes, Statistics
PS C:\> $article = @{
SqlInstance = 'mssql1'
Database = 'pubs'
PublicationName = 'testPub'
Name = 'stores'
CreationScriptOptions = $cso
}
Add-DbaReplArticle @article -EnableException
>> SqlInstance = 'mssql1'
>> Database = 'pubs'
>> PublicationName = 'testPub'
>> Name = 'stores'
>> CreationScriptOptions = $cso
>> }
PS C:\> Add-DbaReplArticle @article -EnableException
Adds the stores table to the testPub publication from mssql1.pubs with the NonClusteredIndexes and Statistics options set
includes default options.
Expand All @@ -50,13 +50,13 @@ function New-DbaReplCreationScriptOptions {
.EXAMPLE
PS C:\> $cso = New-DbaReplCreationScriptOptions -Options ClusteredIndexes, Identity -NoDefaults
PS C:\> $article = @{
SqlInstance = 'mssql1'
Database = 'pubs'
PublicationName = 'testPub'
Name = 'stores'
CreationScriptOptions = $cso
}
Add-DbaReplArticle @article -EnableException
>> SqlInstance = 'mssql1'
>> Database = 'pubs'
>> PublicationName = 'testPub'
>> Name = 'stores'
>> CreationScriptOptions = $cso
>> }
PS C:\> Add-DbaReplArticle @article -EnableException
Adds the stores table to the testPub publication from mssql1.pubs with the ClusteredIndexes and Identity options set, excludes default options.
#>
Expand Down
12 changes: 6 additions & 6 deletions public/Remove-DbaReplSubscription.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,12 @@ function Remove-DbaReplSubscription {
.EXAMPLE
PS C:\> $sub = @{
SqlInstance = 'mssql1'
Database = 'pubs'
PublicationName = 'testPub'
SubscriberSqlInstance = 'mssql2'
SubscriptionDatabase = 'pubs'
}
>> SqlInstance = 'mssql1'
>> Database = 'pubs'
>> PublicationName = 'testPub'
>> SubscriberSqlInstance = 'mssql2'
>> SubscriptionDatabase = 'pubs'
>> }
PS C:\> Remove-DbaReplSubscription @sub
Removes a subscription for the testPub publication on mssql2.pubs.
Expand Down

0 comments on commit 5ddae43

Please sign in to comment.