web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

How to Move the Dynamics ERP Management Reporter SQL Database

(0) ShareShare
ReportReport
Posted on by

What is the proper procedure for moving the Management Reporter SQL database to a new SQL server?  Because the database in encrypted, it's not as simple as just restoring the DB to the new server.  I have tried everything I can think of, but cannot gets reports to generate on the new server.  I can edit the reports, but they get stuck in the queue when I try to generate them.  The event log on the server does not contain any errors that would indicate why the reports are not being generated.

*This post is locked for comments

I have the same question (0)
  • Ian McQuade Profile Picture
    125 on at

    I am trying to move a Management Reporter from a test environment in to production and essentially have the same question; how do I move and connect the database.

    I restored it but can't install MR and connect

    I can not use the same account that I used in the Test environment.

    I get a message that states: Unable to connect to the database server with the provided connection information

    This seems to indicate it can not connect to the server; not the DB; but I know the credentials are correct

    Any guidance is appreciated

    Cheers

    Ian

  • Community Member Profile Picture
    on at

    Ian,

    I was able to get past the connection error by executing these commands against the restored database:

    OPEN MASTER KEY DECRYPTION BY PASSWORD = 'password'

    ALTER MASTER KEY ADD ENCRYPTION BY SERVICE MASTER KEY

    Replace password with the password that you used when creating your initial environment.

    But even after doing that, the reports will not generate.  I don't know if there is another step that I am missing.  I'd be interested to see if these commands help you get any farther then I did.

  • Community Member Profile Picture
    on at

    Start SQL Server Management Studio and sign in as the sa user.

    Run the script that is shown here on the ManagementReporter database:

    drop symmetric key generalusersymmetrickey

    drop certificate generalusercertificate

    drop master key

    CREATE MASTER KEY ENCRYPTION BY PASSWORD = 'Access!23'

    -- NOTE Where Access!23 is your actual password

    CREATE CERTIFICATE [GeneralUserCertificate]

    WITH SUBJECT = 'Certificate for access symmetric keys - for use by users assigned to the GeneralUser Role.'

    CREATE SYMMETRIC KEY [GeneralUserSymmetricKey]

    WITH ALGORITHM = AES_256

    ENCRYPTION BY CERTIFICATE [GeneralUserCertificate]

    if not exists (select 1 from sys.database_principals where name='GeneralUser')

    begin

    CREATE ROLE [GeneralUser]

    AUTHORIZATION [dbo];

    end

    GRANT CONTROL ON CERTIFICATE::[GeneralUserCertificate] TO [GeneralUser]

    GRANT VIEW DEFINITION on SYMMETRIC KEY::[GeneralUserSymmetricKey] TO [GeneralUser]

    ALTER DATABASE [ManagementReporter] SET ENABLE_BROKER WITH ROLLBACK IMMEDIATE;

    Grant the GeneralUser SQL role, on the restored ManagementReporter database, to the user running your MR services.

    Restart the MRProcessService and stop and then start the Management Reporter Application Pool in IIS.

    Additional restore options

    If you know the Master Key that was used during the installation of MR, you can follow the steps shown here instead of dropping all certificates and keys on the MR database.

    Reset the Master Key password by running the following SQL statements on the ManagementReporter database:  

    OPEN MASTER KEY DECRYPTION BY PASSWORD ='<password>'

    Where <password> is equal to the Master Key That You used when this ManagementReporter database was created. Then run:

    ALTER MASTER KEY REGENERATE WITH ENCRYPTION BY PASSWORD = '<password>';

    CLOSE MASTER KEY

    Where <password> is equal to a new Master Key password of your choice.

    Note There is a “FORCE” option available on this statement if you do not know the Master Key password that is discussed more in the More Information section.

    Enable Service Broker by running the following SQL statement:      

    ALTER DATABASE [ManagementReporter] SET ENABLE_BROKER WITH ROLLBACK IMMEDIATE;

    Restart the MRProcessService and the Management Reporter Application Pool.

  • Community Member Profile Picture
    on at

    By dropping certificates or by using the “FORCE” command, you may lose some information that is relevant to the issue that you are troubleshooting (such as reports that have a status of “Queued”).  The following are some other restore scenarios that you may be able to resolve without dropping or forcing.

    Scenario:You are moving servers and have access to the ManagementReporter database still on the original server.

    Potential fix:You can run the following statement against the original SQL server to reset the Master Key password before making a backup:

    ALTER MASTER KEY REGENERATE WITH ENCRYPTION BY PASSWORD = '<password>'

    Where <password> is equal to a new Master Key password of your choice.

    Note The reason why you can complete just this one step to change the password on the original server is because of the relationship of the Master Key to the server it was originally set on.

    Note See steps at the beginning of this document on how to restore on the new server.

    Scenario: You are moving servers and do not have access to the ManagementReporter database on the original server.

    Potential fix:If you have a backup file of the Master Key that you may be able to restore the key on the new server.

    Scenario:You are moving servers and do not have access to the ManagementReporter database on the original server nor a backup file of the Master Key.

    Potential fix:You can add a “FORCE” option to the “ALTER MASTER KEY" statement in the restore steps at the start of this document. The modified statement would look like this: ALTER MASTER KEY FORCE REGENERATE

    By doing this you will lose data that depends on this key which may include things such as reports that had a “Queued” status when the database was backed up.

  • sandipdjadhav Profile Picture
    18,306 on at

    Benjamin,

    Can you please tell me What is KB ID?

    Thanks

    Sandip

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
mtabor Profile Picture

mtabor 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans