When attempting to restore a bacpac into Sage for Education or Sage 200 Standard Online you may receive the following error:
This can be attributed to Users in the bacpac file still being associated with Roles. To resolve this we have developed a three part script to be ran against the data in SQL server management Studio which removes the Users causing the problem.
ALTER AUTHORIZATION ON ROLE::[db_execute] TO [dbo] exec sp_dropuser 'MMSAdmin'
exec sp_dropuser 'MMSUser'
exec sp_dropuser 'MMSReader' The final step is to remove the following users if present - MMSReader, MMSuser & MMSAdmin. You can do this as follows:
You can now Export the data by right clicking the database, click Tasks, then Export Data-tier- Application.
The exported bacpac file can then be uploaded to Sage Provisioning Portal.