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
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 Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | App ID | App ID | Normal | GUID | 16 | App ID | uniqueidentifier |
2 | Table ID | Table ID | Normal | Integer | 4 | Table ID | int |
Key to join to the Data Exch. Mapping table.Show/hide example querySELECT [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] | |||||||
3 | Company Name | Company Name | Normal | Text | 30 | Company Name | nvarchar(60) |
Key to join to the Company table.Show/hide example querySELECT [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] | |||||||
4 | Version Major | Version Major | Normal | Integer | 4 | Version Major | int |
5 | Version Minor | Version Minor | Normal | Integer | 4 | Version Minor | int |
6 | Version Build | Version Build | Normal | Integer | 4 | Version Build | int |
7 | Version Revision | Version Revision | Normal | Integer | 4 | Version Revision | int |
8 | Archive Table Name | Archive Table Name | Normal | Text | 128 | Archive Table Name | nvarchar(256) |
9 | Metadata | Metadata | Normal | BLOB | 8 | Metadata | image |
10 | Table Blob Version | Table Blob Version | Normal | Integer | 4 | Table Blob Version | int |
2000000000 | $systemId | System ID | Normal | GUID | 16 | $systemId | uniqueidentifier |
2000000001 | SystemCreatedAt | Created At | Normal | DateTime | 8 | $systemCreatedAt | datetime |
2000000002 | SystemCreatedBy | Created By | Normal | GUID | 16 | $systemCreatedBy | uniqueidentifier |
Key to join to the User table.Show/hide example querySELECT [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] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |