Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM forum
Suggested answer

Find SQL based reports in CRM 2016

Posted on by 35

Hello experts,

I need your help. I have an on-prem dynamics CRM 2016. I am trying to find out how many SQL based reports in my CRM 2016 so that it can be replaced with fetxhXML report. I don’t see any option in UI to identify SQL reports, however in DB side in bodytext I can see the contents of the RDL file which may help in searching with SQL query tags. Please let me know if any option to find SQL based report in my CRM 2016.  

Thank you in advance!

 

Regards,

Chandan

  • Suggested answer
    RE: Find SQL based reports in CRM 2016

    I found the solution. SQL bases SSRS reports has <DataProvider>SQL</DataProvider> tag in bodytext. I just serached it with below fetchXML using XRMToolBox. 

    <fetch>
    <entity name="report" >
    <attribute name="name" />
    <filter type="and" >
    <condition attribute="ismanaged" operator="eq" value="0" />
    <condition attribute="originalbodytext" operator="like" value="%
    &lt;DataProvider&gt;SQL&lt;/DataProvider&gt;%" />
    </filter>
    </entity>
    </fetch>

  • a33ik Profile Picture
    a33ik 84,321 Most Valuable Professional on at
    RE: Find SQL based reports in CRM 2016

    Hello Chandan,

    I checked the report entity and there is no attribute or something like that tells if the report SQL or FetchXml based. I'm afraid that you will have to download the report and analyze "DataSource" of the report definition in order to identify the report type.

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,532 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,501 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans