Skip to content

Commit 2472ea8

Browse files
Remove Invoke-SmoCheck - no longer needed (#10229)
1 parent d5b122b commit 2472ea8

3 files changed

Lines changed: 0 additions & 32 deletions

File tree

private/functions/Invoke-SmoCheck.ps1

Lines changed: 0 additions & 25 deletions
This file was deleted.

public/Copy-DbaAgentServer.ps1

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ function Copy-DbaAgentServer {
118118
Stop-Function -Message "Failure" -Category ConnectionError -ErrorRecord $_ -Target $Source
119119
return
120120
}
121-
Invoke-SmoCheck -SqlInstance $sourceServer
122121
$sourceAgent = $sourceServer.JobServer
123122

124123
if ($Force) { $ConfirmPreference = 'none' }
@@ -131,7 +130,6 @@ function Copy-DbaAgentServer {
131130
} catch {
132131
Stop-Function -Message "Failure" -Category ConnectionError -ErrorRecord $_ -Target $destinstance -Continue
133132
}
134-
Invoke-SmoCheck -SqlInstance $destServer
135133
# All of these support whatif inside of them
136134
Copy-DbaAgentJobCategory -Source $sourceServer -Destination $destinstance -DestinationSqlCredentia $DestinationSqlCredential -Force:$force
137135

public/Copy-DbaDatabase.ps1

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -764,8 +764,6 @@ function Copy-DbaDatabase {
764764
}
765765
}
766766

767-
Invoke-SmoCheck -SqlInstance $sourceServer
768-
769767
# Fix #6600
770768
$sourceFullComputerName = Resolve-DbaComputerName -ComputerName $sourceServer.ComputerName
771769
Write-Message -Level Verbose -Message "Using $sourceFullComputerName as sourceFullComputerName."
@@ -853,9 +851,6 @@ function Copy-DbaDatabase {
853851
$destFullComputerName = Resolve-DbaComputerName -ComputerName $destserver.ComputerName
854852
Write-Message -Level Verbose -Message "Using $destFullComputerName as destFullComputerName."
855853

856-
Write-Message -Level Verbose -Message "Performing SMO version check."
857-
Invoke-SmoCheck -SqlInstance $destServer
858-
859854
Write-Message -Level Verbose -Message "Checking to ensure the source isn't the same as the destination."
860855
if ($source -eq $destinstance) {
861856
Stop-Function -Message "Source and Destination SQL Servers instances are the same. Quitting." -Continue

0 commit comments

Comments
 (0)