Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Forums / Finance forum / Execute a SQL script i...
Finance forum

Execute a SQL script in PROD

(0) ShareShare
ReportReport
Posted on by 1,683

It is possible to execute a sql script in AxDB in Production ?

The installation package has a file what seems to run the script 'ExecuteSqlAXDB'. 

Anybody knows if this file can be used to execute a SQL Script? 

  • Suggested answer
    Anton Venter Profile Picture
    19,593 Super User 2025 Season 1 on at
    Execute a SQL script in PROD
    Hello,
     
    No they don't help with creating SQL scripts, that is not their role. As an alternative (to executing a SQL script in production) you can create and execute your own custom scripts in production, see link below.
     
    Run custom X++ scripts with zero downtime
     
    By the way, next time just create a new post instead of replying to a post from 2018 ;-).
  • CU01052230-0 Profile Picture
    on at
    Execute a SQL script in PROD
    I just started working with D365 F&O. Does contacting Microsoft support help write SQL scripts  for invoices—unpaid/paid, open invoices?
  • Verified answer
    André Arnaud de Calavon Profile Picture
    294,060 Super User 2025 Season 1 on at
    RE: D365 execute a SQL script in PROD

    Hi Adrian,

    If you need to run a script, contact Microsoft Support to have it executed. Don't experiment with unsupported ways of getting it done. We had some issues at a customer where we worked together with Microsoft to have scripts executed.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,060 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,858 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans