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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Decrypting Management Reporter Data in SQL

(0) ShareShare
ReportReport
Posted on by 200

I'm looking to pull data from the Management Reporter DataMart for analysis.  As part of this data pull, I presumably need to decrypt the encrypted SQL data in Management Reporter's tables.  Can anyone help me figure out how this can be done using T-SQL?

For example, I'm trying to decrypt data in the CellData column of the ReportLineFinancial table.  I have tried the decryptbycert and decryptbykey functions on the binary version of that column (CAST([CellData] AS varbinary(4000))) and have yet been unsuccessful.  I'm not sure which certificate / key to use to do this.

Thanks for any help you can provide!

*This post is locked for comments

I have the same question (0)
  • mgandley Profile Picture
    200 on at

    So I was able to open the appropriate keys using the following SQL code, however I'm still unable to decrypt the data successfully.

    --Open Connector Service Symmetric Key
    OPEN SYMMETRIC KEY ConnectorServiceSymmetricKey
    DECRYPTION BY CERTIFICATE ConnectorServiceCertificate
    --Open General User Symmetric Key
    OPEN SYMMETRIC KEY GeneralUserSymmetricKey
    DECRYPTION BY CERTIFICATE GeneralUserCertificate
    --Doesn't decrypt the data, returns all null
    SELECT 
    CellData,
    CAST(CellData AS Binary(8000)) AS BinaryCellData,
    CAST(DECRYPTBYKEY(CAST(CellData AS Binary(8000))) AS Varchar(255)) AS Data
    FROM vReportLineFinancial
    --Close open symmetric encryption keys.
    CLOSE SYMMETRIC KEY ConnectorServiceSymmetricKey
    CLOSE SYMMETRIC KEY GeneralUserSymmetricKey

    Still looking for ideas if anyone has any.

  • Suggested answer
    Redbeard Profile Picture
    12,931 on at

    Matt,

    Have you considered deploying Dynamics GP Analysis Cubes as a source for the financial data, rather than Management Reporter?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans