Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 0 additions & 25 deletions private/functions/Invoke-SmoCheck.ps1

This file was deleted.

2 changes: 0 additions & 2 deletions public/Copy-DbaAgentServer.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ function Copy-DbaAgentServer {
Stop-Function -Message "Failure" -Category ConnectionError -ErrorRecord $_ -Target $Source
return
}
Invoke-SmoCheck -SqlInstance $sourceServer
$sourceAgent = $sourceServer.JobServer

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

Expand Down
5 changes: 0 additions & 5 deletions public/Copy-DbaDatabase.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -764,8 +764,6 @@ function Copy-DbaDatabase {
}
}

Invoke-SmoCheck -SqlInstance $sourceServer

# Fix #6600
$sourceFullComputerName = Resolve-DbaComputerName -ComputerName $sourceServer.ComputerName
Write-Message -Level Verbose -Message "Using $sourceFullComputerName as sourceFullComputerName."
Expand Down Expand Up @@ -853,9 +851,6 @@ function Copy-DbaDatabase {
$destFullComputerName = Resolve-DbaComputerName -ComputerName $destserver.ComputerName
Write-Message -Level Verbose -Message "Using $destFullComputerName as destFullComputerName."

Write-Message -Level Verbose -Message "Performing SMO version check."
Invoke-SmoCheck -SqlInstance $destServer

Write-Message -Level Verbose -Message "Checking to ensure the source isn't the same as the destination."
if ($source -eq $destinstance) {
Stop-Function -Message "Source and Destination SQL Servers instances are the same. Quitting." -Continue
Expand Down
Loading