I tried this, and the Create Package step succeeds, but the operation then hangs on Execute SQL Server Agent Job. The status field says Executing and sits there for ages, then eventually I get an error that just says:
The job failed. Check the event log on the destination server for details.
If I open the event log from SSMS I get this error:
errorCode=-1073548784
description=
Executing the query "sys.sp_addrolemember @rolename = N'LearnerRole'..."
failed with the following error: "The role 'LearnerRole' does not exist in the current
database.". Possible failure reasons: Problems with the query "ResultSet" property not
set correctly parameters not set correctly or connection not established correctly.
helpFile= helpContext=0 idofInterfaceWithError={C81DFC5A-3B22-4DA3-BD3B-10BF861A7F9C}
StackTrace:
at Microsoft.SqlServer.Management.Dts.DtsTransferProvider.ExecuteTransfer()
at Microsoft.SqlServer.Management.Smo.Transfer.TransferData()
at Microsoft.SqlServer.Dts.Tasks.TransferObjectsTask.TransferObjectsTask.TransferDatabasesUsingSMOTransfer()
Operator: NT AUTHORITY\SYSTEM
Source Name: CDW_108159-APP1_DELL1530_4
Source ID: {854A153F-9903-4541-A1BA-29F334EFCF3C}
Execution ID: {665C6225-466C-4FAD-AC75-09D656F19CCD}