Where are Table Name and Field Name stored for NAV

  • Where are Table Name and Field Name stored for NAV

    Posted by DSC Communities on June 29, 2018 at 3:03 pm
    • Marco Villarreal

      Member

      June 29, 2018 at 3:03 PM

      Hi Everyone,

      I am trying to write a stored procedure in SQL server that pulls information from the [Change Log Entry] table so we can easily keep track of what changes have been made in NAV. The only problem is that I cannot find a table that includes the [Table Name] and [Field Name] for the corresponding columns [Table No_] and [Field No_] in the [Change Log Entry] table.Ā 

      Where can I find Table Name and Field Name? Is this information in the database?

      I am working with NAV 2016.

      Thank you for your help!

      ——————————
      Marco Villarreal
      Farmers Investment Co
      Sahuarita AZ
      ——————————

    • Lewis Rosenberg

      Member

      June 29, 2018 at 3:18 PM

      ?Table 2000000041 – Field

      You won’t see it in Object Designer but it is available if you try to create a page or report using it.

      ——————————
      Lewis Rosenberg
      IT Manager
      Mars Fishcare
      Chalfont PA

      NAVUG Board of Advisors, Programming
      NAVUG Programming Committee
      NAVUG Membership Committee
      ——————————
      ——————————————-

    • Franz Kalchmair

      Member

      June 30, 2018 at 3:19 PM

      actually the virtual tables within nav wont help you.
      can only be used within nav, in the nav dev. client.

      table names: stored invirtual tablesĀ AllObj, AllObjWithCaption
      fields: stored in virtual table Field
      these virtual tables can then be used in pages, reports, etc.Ā 

      in your case you need access in sql. it’s quite different. so …
      to get the tables names you can use table dbo.Object.

      to get the field names in sql you can use the sql system tables, e.g.

      select COLUMN_NAME from INFORMATION_SCHEMA.COLUMNS
      where TABLE_CATALOG = <databasename>
      and TABLE_NAME = <tablename>
      — and ORDINAL_POSITION = <field no.>

      ——————————
      Franz Kalchmair
      Microsoft MVP
      Senior Consultant
      Austria, Europe
      ——————————
      ——————————————-

    DSC Communities replied 7 years, 2 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

The discussion ‘Where are Table Name and Field Name stored for NAV’ is closed to new replies.

Start of Discussion
0 of 0 replies June 2018
Now

Welcome to our new site!

Here you will find a wealth of information created for peopleĀ  that are on a mission to redefine business models with cloud techinologies, AI, automation, low code / no code applications, data, security & more to compete in the Acceleration Economy!