NAV App Data Archive

Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/2000000152

Table Type: System

Table Name: NAV App Data Archive
Database Table Name: NAV App Data Archive

Table Number: 2000000152

Due to how Dynamics BC tables and columns are named, square brackets need to be wrapped around the table name and column names. Below are example queries showing how NAV App Data Archive can be queried.

Show/hide an example select of all columns

SELECT
   *
FROM
   [NAV App Data Archive]

Show/hide an example select of all columns by name

SELECT
   [App ID]
   ,[Table ID]
   ,[Company Name]
   ,[Version Major]
   ,[Version Minor]
   ,[Version Build]
   ,[Version Revision]
   ,[Archive Table Name]
   ,[Metadata]
   ,[Table Blob Version]
   ,[$systemId]
   ,[$systemCreatedAt]
   ,[$systemCreatedBy]
   ,[$systemModifiedAt]
   ,[$systemModifiedBy]
FROM
   [NAV App Data Archive]

Show/hide an example select of all columns including those from all joined tables

SELECT
   *
FROM
   [NAV App Data Archive] AS [NAV App Data Archive]
LEFT JOIN
   [CRONUS UK Ltd_$Data Exch_ Mapping$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Data Exch. Mapping]
      ON
         [NAV App Data Archive].[Table ID] = [Data Exch. Mapping].[Table ID]
LEFT JOIN
   [Company] AS [Company]
      ON
         [NAV App Data Archive].[Company Name] = [Company].[Name]
LEFT JOIN
   [User] AS [User]
      ON
         [NAV App Data Archive].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
   [User] AS [User]
      ON
         [NAV App Data Archive].[SystemModifiedBy] = [User].[User Security ID]

Show/hide columns in NAV App Data Archive table

Field No.Field NameField CaptionClassTypeLengthSQL Column NameSQL DataType
1App ID Primary Key SearchApp IDNormalGUID16App IDuniqueidentifier
2Table ID Primary Key SearchTable IDNormalInteger4Table IDint
Key to join to the Data Exch. Mapping table.

Show/hide example query

SELECT
       [NAV App Data Archive].[Table ID]
       ,[Data Exch. Mapping].[Table ID]
FROM
       [NAV App Data Archive] AS [NAV App Data Archive]
LEFT JOIN
       [CRONUS UK Ltd_$Data Exch_ Mapping$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Data Exch. Mapping]
              ON
                     [NAV App Data Archive].[Table ID] = [Data Exch. Mapping].[Table ID]
3Company Name Primary Key SearchCompany NameNormalText30Company Namenvarchar(60)
Key to join to the Company table.

Show/hide example query

SELECT
       [NAV App Data Archive].[Company Name]
       ,[Company].[Name]
FROM
       [NAV App Data Archive] AS [NAV App Data Archive]
LEFT JOIN
       [Company] AS [Company]
              ON
                     [NAV App Data Archive].[Company Name] = [Company].[Name]
4Version Major SearchVersion MajorNormalInteger4Version Majorint
5Version Minor SearchVersion MinorNormalInteger4Version Minorint
6Version Build SearchVersion BuildNormalInteger4Version Buildint
7Version Revision SearchVersion RevisionNormalInteger4Version Revisionint
8Archive Table Name SearchArchive Table NameNormalText128Archive Table Namenvarchar(256)
9Metadata SearchMetadataNormalBLOB8Metadataimage
10Table Blob Version SearchTable Blob VersionNormalInteger4Table Blob Versionint
2000000000$systemId SearchSystem IDNormalGUID16$systemIduniqueidentifier
2000000001SystemCreatedAt SearchCreated AtNormalDateTime8$systemCreatedAtdatetime
2000000002SystemCreatedBy SearchCreated ByNormalGUID16$systemCreatedByuniqueidentifier
Key to join to the User table.

Show/hide example query

SELECT
       [NAV App Data Archive].[$systemCreatedBy]
       ,[User].[User Security ID]
FROM
       [NAV App Data Archive] AS [NAV App Data Archive]
LEFT JOIN
       [User] AS [User]
              ON
                     [NAV App Data Archive].[$systemCreatedBy] = [User].[User Security ID]
2000000003SystemModifiedAt SearchModified AtNormalDateTime8$systemModifiedAtdatetime
2000000004SystemModifiedBy SearchModified ByNormalGUID16$systemModifiedByuniqueidentifier
Key to join to the User table.

Show/hide example query

SELECT
       [NAV App Data Archive].[$systemModifiedBy]
       ,[User].[User Security ID]
FROM
       [NAV App Data Archive] AS [NAV App Data Archive]
LEFT JOIN
       [User] AS [User]
              ON
                     [NAV App Data Archive].[$systemModifiedBy] = [User].[User Security ID]

Leave a Reply

Your email address will not be published. Required fields are marked *