-
-
Notifications
You must be signed in to change notification settings - Fork 863
Copy-DbaLinkedServer issues copying to SQL 2022 and SQL 2025 #10336
Description
Verified issue does not already exist?
No, I did not search
What error did you receive?
WARNING: [14:23:04][Copy-DbaLinkedServer] Failure | The parameter is incorrect
The drivers for Linked Servers has changed between SQL 2019 and SQL 2022 and SQL 2025. I also ran into this same error when trying to copy between SQL 2025 instances. I assume it also happens between SQL 2022 instances as well.
Steps to Reproduce
Copy-DbaLinkedServer -source 'SQL2019,1433' -Destination 'SQL2025,1433'
Please confirm that you are running the most recent version of dbatools
My current version is 2.7.27
Other details or mentions
This command works fine for version of SQL prior to 2022
What PowerShell host was used when producing this error
Windows PowerShell (powershell.exe)
PowerShell Host Version
Name Value
PSVersion 5.1.26100.7705
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.26100.7705
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
SQL Server Edition and Build number
SQL 2025 - 17.0.4025.3
SQL 2022 - 16.0.1000.6
.NET Framework Version
PSChildName Version
v2.0.50727 2.0.50727.4927
v3.0 3.0.30729.4926
Windows Communication Foundation 3.0.4506.4926
Windows Presentation Foundation 3.0.6920.4902
v3.5 3.5.30729.4926
Client 4.8.09032
Full 4.8.09032
Client 4.0.0.0