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...
Unanswered

Business Central Table field default value in the SQL

(0) ShareShare
ReportReport
Posted on by 45

Hi,

I am developing a BC extension and I have added some tables and fields.

I have published the extension correctly and I have seen in the SQL that the values that I add have no "Default Value or Binding" defined in the SQL but Business Central standard fields do have it.

The system works as expected, I have not been able to see how this affects but this is something that is bugging me.

Standard table: Item

pastedimage1603373957157v1.pngpastedimage1603436270190v1.png

My table definition:

pastedimage1603374018257v2.png

Is this normal? Am I doing something wrong? Does this happen in production environments?

Does anybody know why this happens?

Kind regards,

I have the same question (0)
  • Daniel Rimmelzwaan Profile Picture
    3,485 on at

    It depends on the datatype. Your first example is a field of type 'Code'. I'm not sure what the (N") stands for but in BC Code type fields are always uppercase, maybe that's what the default value means.

    Your own example is an integer type field, and I suppose that does not need a value in that property on SQL Server.

    Don't worry about it though, let BC take care of that

  • Sautu Profile Picture
    45 on at

    Thanks Daniel,

    I have checked and added a new image to the post where a standard int field shows a 0 default value for int (it's the same for all the fields I have checked).

    In SQL N means nvarchar datatype and the default value is '' (empty string different from null).

    You are right that BC takes care of that correctly, but it is starnge as I try to define fields as BC does and the result is different.

    Kind regards,

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 2,664

#2
YUN ZHU Profile Picture

YUN ZHU 960 Super User 2025 Season 2

#3
Jainam M. Kothari Profile Picture

Jainam M. Kothari 773 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans