Skip to content

Commit

Permalink
typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
potatoqualitee committed Mar 21, 2019
1 parent 04f2a59 commit 6dc6445
Show file tree
Hide file tree
Showing 271 changed files with 624 additions and 624 deletions.
624 changes: 312 additions & 312 deletions allcommands.ps1

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion functions/Add-DbaAgReplica.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ function Add-DbaAgReplica {
try {
$server = Connect-SqlInstance -SqlInstance $instance -SqlCredential $SqlCredential -MinimumVersion 11
} catch {
Stop-Function -Message "Error occured while establishing connection to $instance" -Category ConnectionError -ErrorRecord $_ -Target $instance -Continue
Stop-Function -Message "Error occurred while establishing connection to $instance" -Category ConnectionError -ErrorRecord $_ -Target $instance -Continue
}

if ($Certificate) {
Expand Down
2 changes: 1 addition & 1 deletion functions/Add-DbaDbMirrorMonitor.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function Add-DbaDbMirrorMonitor {
try {
$server = Connect-SqlInstance -SqlInstance $instance -SqlCredential $SqlCredential -MinimumVersion 9
} catch {
Stop-Function -Message "Error occured while establishing connection to $instance" -Category ConnectionError -ErrorRecord $_ -Target $instance -Continue
Stop-Function -Message "Error occurred while establishing connection to $instance" -Category ConnectionError -ErrorRecord $_ -Target $instance -Continue
}

if ($Pscmdlet.ShouldProcess($instance, "add mirror monitoring")) {
Expand Down
2 changes: 1 addition & 1 deletion functions/Clear-DbaLatchStatistics.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function Clear-DbaLatchStatistics {
try {
$server = Connect-SqlInstance -SqlInstance $instance -SqlCredential $SqlCredential -MinimumVersion 9
} catch {
Stop-Function -Message "Error occured while establishing connection to $instance" -Category ConnectionError -ErrorRecord $_ -Target $instance -Continue
Stop-Function -Message "Error occurred while establishing connection to $instance" -Category ConnectionError -ErrorRecord $_ -Target $instance -Continue
}

if ($Pscmdlet.ShouldProcess($instance, "Performing CLEAR of sys.dm_os_latch_stats")) {
Expand Down
2 changes: 1 addition & 1 deletion functions/Clear-DbaPlanCache.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ function Clear-DbaPlanCache {
try {
$server = Connect-SqlInstance -SqlInstance $result.SqlInstance -SqlCredential $SqlCredential
} catch {
Stop-Function -Message "Error occured while establishing connection to $instance" -Category ConnectionError -ErrorRecord $_ -Target $instance -Continue
Stop-Function -Message "Error occurred while establishing connection to $instance" -Category ConnectionError -ErrorRecord $_ -Target $instance -Continue
}

$server.Query("DBCC FREESYSTEMCACHE('SQL Plans')")
Expand Down
2 changes: 1 addition & 1 deletion functions/Clear-DbaWaitStatistics.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function Clear-DbaWaitStatistics {
try {
$server = Connect-SqlInstance -SqlInstance $instance -SqlCredential $SqlCredential -MinimumVersion 9
} catch {
Stop-Function -Message "Error occured while establishing connection to $instance" -Category ConnectionError -ErrorRecord $_ -Target $instance -Continue
Stop-Function -Message "Error occurred while establishing connection to $instance" -Category ConnectionError -ErrorRecord $_ -Target $instance -Continue
}

if ($Pscmdlet.ShouldProcess($instance, "Performing CLEAR of sys.dm_os_wait_stats")) {
Expand Down
4 changes: 2 additions & 2 deletions functions/Copy-DbaAgentAlert.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ function Copy-DbaAgentAlert {
$sourceServer = Connect-SqlInstance -SqlInstance $Source -SqlCredential $SourceSqlCredential
$serverAlerts = $sourceServer.JobServer.Alerts
} catch {
Stop-Function -Message "Error occured while establishing connection to $instance" -Category ConnectionError -ErrorRecord $_ -Target $Source
Stop-Function -Message "Error occurred while establishing connection to $instance" -Category ConnectionError -ErrorRecord $_ -Target $Source
return
}
}
Expand All @@ -102,7 +102,7 @@ function Copy-DbaAgentAlert {
try {
$destServer = Connect-SqlInstance -SqlInstance $destinstance -SqlCredential $DestinationSqlCredential
} catch {
Stop-Function -Message "Error occured while establishing connection to $instance" -Category ConnectionError -ErrorRecord $_ -Target $destinstance -Continue
Stop-Function -Message "Error occurred while establishing connection to $instance" -Category ConnectionError -ErrorRecord $_ -Target $destinstance -Continue
}
$destAlerts = $destServer.JobServer.Alerts

Expand Down
4 changes: 2 additions & 2 deletions functions/Copy-DbaAgentJob.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ function Copy-DbaAgentJob {
try {
$InputObject = Get-DbaAgentJob -SqlInstance $Source -SqlCredential $SourceSqlCredential -Job $Job -ExcludeJob $ExcludeJob
} catch {
Stop-Function -Message "Error occured while establishing connection to $instance" -Category ConnectionError -ErrorRecord $_ -Target $Source
Stop-Function -Message "Error occurred while establishing connection to $instance" -Category ConnectionError -ErrorRecord $_ -Target $Source
return
}
}
Expand All @@ -112,7 +112,7 @@ function Copy-DbaAgentJob {
try {
$destServer = Connect-SqlInstance -SqlInstance $destinstance -SqlCredential $DestinationSqlCredential
} catch {
Stop-Function -Message "Error occured while establishing connection to $instance" -Category ConnectionError -ErrorRecord $_ -Target $destinstance -Continue
Stop-Function -Message "Error occurred while establishing connection to $instance" -Category ConnectionError -ErrorRecord $_ -Target $destinstance -Continue
}
$destJobs = $destServer.JobServer.Jobs

Expand Down
4 changes: 2 additions & 2 deletions functions/Copy-DbaAgentJobCategory.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ function Copy-DbaAgentJobCategory {
try {
$sourceServer = Connect-SqlInstance -SqlInstance $Source -SqlCredential $SourceSqlCredential
} catch {
Stop-Function -Message "Error occured while establishing connection to $instance" -Category ConnectionError -ErrorRecord $_ -Target $Source
Stop-Function -Message "Error occurred while establishing connection to $instance" -Category ConnectionError -ErrorRecord $_ -Target $Source
return
}
}
Expand All @@ -355,7 +355,7 @@ function Copy-DbaAgentJobCategory {
try {
$destServer = Connect-SqlInstance -SqlInstance $destinstance -SqlCredential $DestinationSqlCredential
} catch {
Stop-Function -Message "Error occured while establishing connection to $instance" -Category ConnectionError -ErrorRecord $_ -Target $destinstance -Continue
Stop-Function -Message "Error occurred while establishing connection to $instance" -Category ConnectionError -ErrorRecord $_ -Target $destinstance -Continue
}

if ($CategoryType.count -gt 0) {
Expand Down
4 changes: 2 additions & 2 deletions functions/Copy-DbaAgentOperator.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function Copy-DbaAgentOperator {
try {
$sourceServer = Connect-SqlInstance -SqlInstance $Source -SqlCredential $SourceSqlCredential
} catch {
Stop-Function -Message "Error occured while establishing connection to $instance" -Category ConnectionError -ErrorRecord $_ -Target $Source
Stop-Function -Message "Error occurred while establishing connection to $instance" -Category ConnectionError -ErrorRecord $_ -Target $Source
return
}
$serverOperator = $sourceServer.JobServer.Operators
Expand All @@ -101,7 +101,7 @@ function Copy-DbaAgentOperator {
try {
$destServer = Connect-SqlInstance -SqlInstance $destinstance -SqlCredential $DestinationSqlCredential
} catch {
Stop-Function -Message "Error occured while establishing connection to $instance" -Category ConnectionError -ErrorRecord $_ -Target $destinstance -Continue
Stop-Function -Message "Error occurred while establishing connection to $instance" -Category ConnectionError -ErrorRecord $_ -Target $destinstance -Continue
}

$destOperator = $destServer.JobServer.Operators
Expand Down
4 changes: 2 additions & 2 deletions functions/Copy-DbaAgentProxy.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ function Copy-DbaAgentProxy {
try {
$sourceServer = Connect-SqlInstance -SqlInstance $Source -SqlCredential $SourceSqlCredential -MinimumVersion 9
} catch {
Stop-Function -Message "Error occured while establishing connection to $instance" -Category ConnectionError -ErrorRecord $_ -Target $Source
Stop-Function -Message "Error occurred while establishing connection to $instance" -Category ConnectionError -ErrorRecord $_ -Target $Source
return
}
$serverProxyAccounts = $sourceServer.JobServer.ProxyAccounts
Expand All @@ -105,7 +105,7 @@ function Copy-DbaAgentProxy {
try {
$destServer = Connect-SqlInstance -SqlInstance $destinstance -SqlCredential $DestinationSqlCredential -MinimumVersion 9
} catch {
Stop-Function -Message "Error occured while establishing connection to $instance" -Category ConnectionError -ErrorRecord $_ -Target $destinstance -Continue
Stop-Function -Message "Error occurred while establishing connection to $instance" -Category ConnectionError -ErrorRecord $_ -Target $destinstance -Continue
}

$destProxyAccounts = $destServer.JobServer.ProxyAccounts
Expand Down
4 changes: 2 additions & 2 deletions functions/Copy-DbaAgentSchedule.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function Copy-DbaAgentSchedule {
try {
$sourceServer = Connect-SqlInstance -SqlInstance $Source -SqlCredential $SourceSqlCredential -MinimumVersion 9
} catch {
Stop-Function -Message "Error occured while establishing connection to $instance" -Category ConnectionError -ErrorRecord $_ -Target $Source
Stop-Function -Message "Error occurred while establishing connection to $instance" -Category ConnectionError -ErrorRecord $_ -Target $Source
return
}
$serverSchedules = $sourceServer.JobServer.SharedSchedules
Expand All @@ -88,7 +88,7 @@ function Copy-DbaAgentSchedule {
try {
$destServer = Connect-SqlInstance -SqlInstance $destinstance -SqlCredential $DestinationSqlCredential -MinimumVersion 9
} catch {
Stop-Function -Message "Error occured while establishing connection to $instance" -Category ConnectionError -ErrorRecord $_ -Target $destinstance -Continue
Stop-Function -Message "Error occurred while establishing connection to $instance" -Category ConnectionError -ErrorRecord $_ -Target $destinstance -Continue
}

$destSchedules = $destServer.JobServer.SharedSchedules
Expand Down
4 changes: 2 additions & 2 deletions functions/Copy-DbaAgentServer.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ function Copy-DbaAgentServer {
try {
$sourceServer = Connect-SqlInstance -SqlInstance $Source -SqlCredential $SourceSqlCredential
} catch {
Stop-Function -Message "Error occured while establishing connection to $instance" -Category ConnectionError -ErrorRecord $_ -Target $Source
Stop-Function -Message "Error occurred while establishing connection to $instance" -Category ConnectionError -ErrorRecord $_ -Target $Source
return
}
Invoke-SmoCheck -SqlInstance $sourceServer
Expand All @@ -100,7 +100,7 @@ function Copy-DbaAgentServer {
try {
$destServer = Connect-SqlInstance -SqlInstance $destinstance -SqlCredential $DestinationSqlCredential
} catch {
Stop-Function -Message "Error occured while establishing connection to $instance" -Category ConnectionError -ErrorRecord $_ -Target $destinstance -Continue
Stop-Function -Message "Error occurred while establishing connection to $instance" -Category ConnectionError -ErrorRecord $_ -Target $destinstance -Continue
}
Invoke-SmoCheck -SqlInstance $destServer
# All of these support whatif inside of them
Expand Down
4 changes: 2 additions & 2 deletions functions/Copy-DbaBackupDevice.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function Copy-DbaBackupDevice {
try {
$sourceServer = Connect-SqlInstance -SqlInstance $Source -SqlCredential $SourceSqlCredential
} catch {
Stop-Function -Message "Error occured while establishing connection to $instance" -Category ConnectionError -ErrorRecord $_ -Target $Source
Stop-Function -Message "Error occurred while establishing connection to $instance" -Category ConnectionError -ErrorRecord $_ -Target $Source
return
}
$serverBackupDevices = $sourceServer.BackupDevices
Expand All @@ -99,7 +99,7 @@ function Copy-DbaBackupDevice {
try {
$destServer = Connect-SqlInstance -SqlInstance $destinstance -SqlCredential $DestinationSqlCredential
} catch {
Stop-Function -Message "Error occured while establishing connection to $instance" -Category ConnectionError -ErrorRecord $_ -Target $destinstance -Continue
Stop-Function -Message "Error occurred while establishing connection to $instance" -Category ConnectionError -ErrorRecord $_ -Target $destinstance -Continue
}
$destBackupDevices = $destServer.BackupDevices
$destNetBios = $destinstance.ComputerName
Expand Down
4 changes: 2 additions & 2 deletions functions/Copy-DbaCmsRegServer.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ function Copy-DbaCmsRegServer {
$sourceServer = Connect-SqlInstance -SqlInstance $Source -SqlCredential $SourceSqlCredential -MinimumVersion 10
$fromCmStore = Get-DbaCmsRegServerStore -SqlInstance $sourceServer
} catch {
Stop-Function -Message "Error occured while establishing connection to $instance" -Category ConnectionError -ErrorRecord $_ -Target $Source
Stop-Function -Message "Error occurred while establishing connection to $instance" -Category ConnectionError -ErrorRecord $_ -Target $Source
return
}
}
Expand All @@ -303,7 +303,7 @@ function Copy-DbaCmsRegServer {
try {
$destServer = Connect-SqlInstance -SqlInstance $destinstance -SqlCredential $DestinationSqlCredential -MinimumVersion 10
} catch {
Stop-Function -Message "Error occured while establishing connection to $instance" -Category ConnectionError -ErrorRecord $_ -Target $destinstance -Continue
Stop-Function -Message "Error occurred while establishing connection to $instance" -Category ConnectionError -ErrorRecord $_ -Target $destinstance -Continue
}
$toCmStore = Get-DbaCmsRegServerStore -SqlInstance $destServer

Expand Down
4 changes: 2 additions & 2 deletions functions/Copy-DbaCredential.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ function Copy-DbaCredential {
try {
$sourceServer = Connect-SqlInstance -SqlInstance $Source -SqlCredential $SourceSqlCredential -MinimumVersion 9
} catch {
Stop-Function -Message "Error occured while establishing connection to $instance" -Category ConnectionError -ErrorRecord $_ -Target $instance
Stop-Function -Message "Error occurred while establishing connection to $instance" -Category ConnectionError -ErrorRecord $_ -Target $instance
return
}

Expand All @@ -210,7 +210,7 @@ function Copy-DbaCredential {
try {
$destServer = Connect-SqlInstance -SqlInstance $destinstance -SqlCredential $DestinationSqlCredential -MinimumVersion 9
} catch {
Stop-Function -Message "Error occured while establishing connection to $instance" -Category ConnectionError -ErrorRecord $_ -Target $destinstance -Continue
Stop-Function -Message "Error occurred while establishing connection to $instance" -Category ConnectionError -ErrorRecord $_ -Target $destinstance -Continue
}
Invoke-SmoCheck -SqlInstance $destServer

Expand Down
4 changes: 2 additions & 2 deletions functions/Copy-DbaCustomError.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ function Copy-DbaCustomError {
try {
$sourceServer = Connect-SqlInstance -SqlInstance $Source -SqlCredential $SourceSqlCredential -MinimumVersion 9
} catch {
Stop-Function -Message "Error occured while establishing connection to $instance" -Category ConnectionError -ErrorRecord $_ -Target $Source
Stop-Function -Message "Error occurred while establishing connection to $instance" -Category ConnectionError -ErrorRecord $_ -Target $Source
return
}
$orderedCustomErrors = @($sourceServer.UserDefinedMessages | Where-Object Language -eq "us_english")
Expand All @@ -107,7 +107,7 @@ function Copy-DbaCustomError {
try {
$destServer = Connect-SqlInstance -SqlInstance $destinstance -SqlCredential $DestinationSqlCredential -MinimumVersion 9
} catch {
Stop-Function -Message "Error occured while establishing connection to $instance" -Category ConnectionError -ErrorRecord $_ -Target $destinstance -Continue
Stop-Function -Message "Error occurred while establishing connection to $instance" -Category ConnectionError -ErrorRecord $_ -Target $destinstance -Continue
}
# US has to go first
$destCustomErrors = $destServer.UserDefinedMessages
Expand Down
4 changes: 2 additions & 2 deletions functions/Copy-DbaDataCollector.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ function Copy-DbaDataCollector {
try {
$sourceServer = Connect-SqlInstance -SqlInstance $Source -SqlCredential $SourceSqlCredential -MinimumVersion 10
} catch {
Stop-Function -Message "Error occured while establishing connection to $instance" -Category ConnectionError -ErrorRecord $_ -Target $Source
Stop-Function -Message "Error occurred while establishing connection to $instance" -Category ConnectionError -ErrorRecord $_ -Target $Source
return
}
$sourceSqlConn = $sourceServer.ConnectionContext.SqlConnectionObject
Expand All @@ -118,7 +118,7 @@ function Copy-DbaDataCollector {
try {
$destServer = Connect-SqlInstance -SqlInstance $destinstance -SqlCredential $DestinationSqlCredential -MinimumVersion 10
} catch {
Stop-Function -Message "Error occured while establishing connection to $instance" -Category ConnectionError -ErrorRecord $_ -Target $destinstance -Continue
Stop-Function -Message "Error occurred while establishing connection to $instance" -Category ConnectionError -ErrorRecord $_ -Target $destinstance -Continue
}
if ($NoServerReconfig -eq $false) {
if ($Pscmdlet.ShouldProcess($destinstance, "Server reconfiguration not yet supported. Only Collection Set migration will be migrated at this time.")) {
Expand Down
4 changes: 2 additions & 2 deletions functions/Copy-DbaDatabase.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ function Copy-DbaDatabase {
try {
$sourceServer = Connect-SqlInstance -SqlInstance $Source -SqlCredential $SourceSqlCredential
} catch {
Stop-Function -Message "Error occured while establishing connection to $instance" -Category ConnectionError -ErrorRecord $_ -Target $Source
Stop-Function -Message "Error occurred while establishing connection to $instance" -Category ConnectionError -ErrorRecord $_ -Target $Source
return
}

Expand All @@ -739,7 +739,7 @@ function Copy-DbaDatabase {
try {
$destServer = Connect-SqlInstance -SqlInstance $destinstance -SqlCredential $DestinationSqlCredential
} catch {
Stop-Function -Message "Error occured while establishing connection to $instance" -Category ConnectionError -ErrorRecord $_ -Target $destinstance -Continue
Stop-Function -Message "Error occurred while establishing connection to $instance" -Category ConnectionError -ErrorRecord $_ -Target $destinstance -Continue
}

if ($sourceServer.ComputerName -eq $destServer.ComputerName) {
Expand Down
Loading

0 comments on commit 6dc6445

Please sign in to comment.