web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Different names of fields

(0) ShareShare
ReportReport
Posted on by 1,447

Hi,

In AX, the there is a standard field CreditCardAddressVerificationVoid from the CustTable.

Why does it have the name CREDITCARDADDRESSVERIFICATI292 in SQL?

I have the same question (0)
  • Suggested answer
    Martin Dráb Profile Picture
    236,958 Most Valuable Professional on at
    RE: Different names of fields

    That object names in database don't match object names in AOT isn't uncommon. Some AX field names are reserved words in SQL, some are shortened (which is your case) and so on.

  • DJRM Profile Picture
    1,447 on at
    RE: Different names of fields

    Is there a way to get the SQL-equivalent name of a table field in AOT? I tried using SysDictField and even treenode appraoach but no luck.

    I need to know the SQL name because I am querying a DB using ODBC in X++ and if I do select CreditCardAddressVerificationVoid from CustTable, ODBC throws an "invalid column name" exception.

  • Mandeep.S Profile Picture
    277 on at
    RE: Different names of fields

    You could write a function to query the AOT using .fieldObject(dictionary table) and then extract info from this object like field name, basetype and label.

  • Suggested answer
    ergun sahin Profile Picture
    8,824 Moderator on at
    RE: Different names of fields

    info( new DictField(tableNum(CustTable),FieldNum(CustTable,CreditCardAddressVerificationVoid)).name(DbBackend::Sql));

    I was hoping to get it this way but I tested it and it was not like you show us. What is in SqlDictionary?
    I will look at this subject again during the day.

  • Mandeep.S Profile Picture
    277 on at
    RE: Different names of fields

    You can look it up here...

    community.dynamics.com/.../finding-table-and-field-information-in-microsoft-dynamics-ax-2012

  • Suggested answer
    ergun sahin Profile Picture
    8,824 Moderator on at
    RE: Different names of fields

    I looked when I had time. I also have this name in sqlDictonary. I do not have the opportunity to look directly from SQL, but I think your field name is different from mine at SQL.

    By the way, you can also look at the field Names from SqlDictionary.

    AOT/System Documentation/Tables/SqlDictionary/Right Click/Addins/Table browser/SqlName field

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 724 Super User 2025 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 580 Most Valuable Professional

#3
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 554

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans