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 CRM (Archived)

Query CRM database with SQL syntaxis

(0) ShareShare
ReportReport
Posted on by 8,270

Hi guys,

I'm adding a lot of customization and records to the system and every time I need to check if everything is ok, I have to request for a database backup, mount it locally and then use SQL Server to check all information.

Is there a way I can query the CRM database with the real data? If I can connect to the CRM using visual studio (SSRS) maybe I can query the database?

I can't do it using SDK because there I can query only using fetchXML or LinQ, but I need "grouping" and "having" to do my checklist.... any ideas please?

Regards,

Raul

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    ScottDurow Profile Picture
    21 on at

    Hi Raul,

    Unfortunately there is no way of querying the Dynamics CRM Online database using SQL because of security restrictions. You might look to use SSIS to copy your database to a local database (www.kingswaysoft.com/.../ssis-integration-toolkit-for-microsoft-dynamics-crm) or using Power Query to query the data.

    Hope this helps,

    Scott

  • RaulOcana Profile Picture
    8,270 on at

    Hi Scott,

    How could I copy my CRM database please? It is possible to only get a couple of entities, I don't need the whole database.

    Thanks,

    Raúl

  • Suggested answer
    Rajkumar Rajaraman Profile Picture
    on at

    Hi Raul,

    Refer the following links:

    survivingcrm.com/.../creating-a-copy-of-your-production-crm-database

    stackoverflow.com/.../how-to-copy-the-entire-db-in-crm-dynamics

    Hope this helps.

    Regards,

    R.Rajkumar

    "Please mark my answer as verified if you found it helpful"

  • RaulOcana Profile Picture
    8,270 on at

    Hi Raj,

    I have an Online CRM Server

  • Suggested answer
    ScottDurow Profile Picture
    21 on at

    Hi,

    I would use Kingswaysoft's SSIS Toolkit to extract the data into a local SQL Server.

    www.kingswaysoft.com/.../ssis-integration-toolkit-for-microsoft-dynamics-crm

    Hope this helps

    Scott

  • RaulOcana Profile Picture
    8,270 on at

    That's it, thanks Scott.

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 CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans