private/steps/Clear-ConfluenceRefresh.ps1
function Clear-ConfluenceRefresh { [CmdletBinding()] param ( # The sql instance to update data in [Parameter(Mandatory,Position=0)] [string] $SqlInstance, # The sql database to update data in [Parameter(Mandatory,Position=1)] [string] $SqlDatabase ) begin { Write-Verbose "Clearing all refresh data from Confluence database" } process { Invoke-SqlCmd -ServerInstance $SqlInstance -Database $SqlDatabase -Query "EXEC dbo.usp_Confluence_Refresh_Clear_All" } end { } } |