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 :
Small and medium business | Business Central, N...
Answered

Are codeunits stored in SQL?

(0) ShareShare
ReportReport
Posted on by

Hi,

We're using NAV 2017 as our ERP system. I have access to the Development Environment, but only with limited license. Of course, the limitations are quite frustrating, especially when you just want to review customizations.

I was able to lookup codeunits via debugger, but I heard it's possible to see them in the SQL database. Weirdly, I do have access to it, however, I can't locate them. If they are stored in SQL, then were I should look?

Thanks!

I have the same question (0)
Liquid error: Exception has been thrown by the target of an invocation. Liquid error: Exception has been thrown by the target of an invocation.
  • Suggested answer
    Suresh Kulla Profile Picture
    50,241 Super User 2025 Season 2 on at

    They are not stored in SQL.  You need to get license to access them or modify them.

  • Community Member Profile Picture
    on at

    Thank you for your answer. Are codeunits stored as a files then?

  • Suggested answer
    gert@lynge.org Profile Picture
    on at

    Yes, all objects are stored in the SQL database, but not in an easily retrievable way. So I don't think you will be able to easily retrieve them from SQL.

  • Suggested answer
    RockwithNav Profile Picture
    8,576 Super User 2025 Season 2 on at

    Eventually you have SQL Database behind so this way or the other everything in SQL but that doesn't  mean you can manipulate those from SQL end.

  • Community Member Profile Picture
    on at

    Thanks. I don't want to edit them, I'm looking for a way to view the codeunits or export them in bulk. I hoped that I could find those records somewhere in the SQL database.

  • Verified answer
    THE Italian Profile Picture
    on at

    This is not possible. Otherwise there will be a leak in Intellectual Property (IP) protection. Codeunit are stored as binary cyphered and compressed objects within the database. 

  • Community Member Profile Picture
    on at

    Thanks for the explanation.

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,316

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 2,449 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,431 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans