Canada
pawan.deep55@gmail.com

SQL access on production in D365FO

SQL access on D365 FO

SQL access on production in D365FO

With the introduction of D365 Finance & operations cloud environment over AX 2012, Microsoft took over the control of the production window server OS environment leading to requesting deployment via LCS as compared to manual deployment before and also SQL Server Management Studio(SSMS) is now not available for SQL manipulation.

Of course one of the intentions behind restricting production access was not able to access SQL commands thereby avoiding data inconsistency. But as a developer, I always wanted to explore the ways in which SQL could be accessed on production indirectly. So I present my way of SQL browser in D365 finance & operations production environment.


We need to create 2 class
1) SQLBrowser which will create a dialog to take SQL input
2) SQLHelper which will process the inputted query

Disclaimer: SQL usage over production environment should be used with caution

To access SqlBrowser class on production
Enter the following URL
www.YourERPUrl.com/?mi=sysclassrunner&cls=SqlBrowser

Above URL will open dialog where you can input SQL queries and get desired results.

I hope this article helped you learn how to access SQL on production environment in D365 Finance & operations AX. Don’t forget to share this article. You may also want to see our article on How to use POSTMAN to access D365FO Odata endpoint. You can follow us on facebook for more tips and tricks.


Author: Pawan Deep SinghI am a D365 Finance & Operations Technical Consultant. I have dedicated this blog to write about all D365FO , ax2012 x++ related tips and tricks I came across in my career. For any query feel free to contact me via the contact section.

 

Comments: 5

  1. Anjaneya Chaturvedi says:

    Worked for me. Thanks a lot for the help.

  2. helmy says:

    Thank you very much. this article is very helpful

  3. Srikanth Konda says:

    Does this work with parameters also like applying where condition?

  4. MS says:

    landed on this page while searching something on google, glad that its from my office senior (from YMSLI)

Add your comment