Reputation: 211
I am trying to copy a database using SSIS Transfer SQL Server Objects Task.
[Transfer SQL Server Objects Task] Error: Execution failed with the following error: "An exception occurred in SMO.".
[Transfer SQL Server Objects Task] Error: Execution failed with the following error: "Value cannot be null.
Parameter name: server".
I hit test connection and prove that I have the right server name and password.
Upvotes: 3
Views: 2572
Reputation: 13
I found out that if I am running the package locally from Visual Studio (VS), then I get the same error. My workaround is:
<my-server-name>
in VS<my-server-name>
is the name of your server, could also be 'localhost
'
For some reason VS does not get the server name, although I inserted it in the SMO connection. But running the package on the server itself, seems to have worked.
Upvotes: 1
Reputation: 31
My guess is bug was introduced with 2017 version of SSDT. To fix you need to down level the project from 2017 to 2016 using these steps:
right click on the name of your project in the "Solution Explorer".
go to the "properties" menu
in the opened window titled "Deployment Property Pages", within the left-hand menu, drill down the "Configuration Properties" to the "General" attribute
you'll see a tab titled "Deployment Target Version" on the right pane on the menu, there - choose "SQL Server 2016"
click "OK" and agree to all later refactoring request and you're done.
Upvotes: 3