Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/4765
Table Type: Company
Table Name: Service Module Setup
Database Table Name: CRONUS UK Ltd_$Service Module Setup$5a0b41e9-7a42-4123-d521-2265186cfb31
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 Service Module Setup can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Service Module Setup$5a0b41e9-7a42-4123-d521-2265186cfb31]
Show/hide an example select of all columns by name
SELECT
[Primary Key]
,[Customer No_]
,[Item 1 No_]
,[Service Item 1 No_]
,[Service Item 2 No_]
,[Resource 1 No_]
,[Resource 2 No_]
,[Service Location]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Service Module Setup$5a0b41e9-7a42-4123-d521-2265186cfb31]
Show/hide an example select of all columns including those from all joined tables
SELECT
*
FROM
[CRONUS UK Ltd_$Service Module Setup$5a0b41e9-7a42-4123-d521-2265186cfb31] AS [Service Module Setup]
LEFT JOIN
[User] AS [User]
ON
[Service Module Setup].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Service Module Setup].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Service Module Setup table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | Primary Key | Primary Key | Normal | Code | 20 | Primary Key | nvarchar(40) |
2 | Customer No. | Customer No. | Normal | Code | 20 | Customer No_ | nvarchar(40) |
Key to join to the Customer table.Show/hide example querySELECT [Service Module Setup].[Customer No_] ,[Customer].[No_] FROM [CRONUS UK Ltd_$Service Module Setup$5a0b41e9-7a42-4123-d521-2265186cfb31] AS [Service Module Setup] LEFT JOIN [CRONUS UK Ltd_$Customer$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer] ON [Service Module Setup].[Customer No_] = [Customer].[No_] | |||||||
3 | Item 1 No. | Item 1 No. | Normal | Code | 20 | Item 1 No_ | nvarchar(40) |
Key to join to the Item table.Show/hide example querySELECT [Service Module Setup].[Item 1 No_] ,[Item].[No_] FROM [CRONUS UK Ltd_$Service Module Setup$5a0b41e9-7a42-4123-d521-2265186cfb31] AS [Service Module Setup] LEFT JOIN [CRONUS UK Ltd_$Item$437dbf0e-84ff-417a-965d-ed2bb9650972$ext] AS [Item] ON [Service Module Setup].[Item 1 No_] = [Item].[No_] | |||||||
4 | Service Item 1 No. | Service Item 1 No. | Normal | Code | 20 | Service Item 1 No_ | nvarchar(40) |
5 | Service Item 2 No. | Service Item 2 No. | Normal | Code | 20 | Service Item 2 No_ | nvarchar(40) |
6 | Resource 1 No. | Resource 1 No. | Normal | Code | 20 | Resource 1 No_ | nvarchar(40) |
Key to join to the Resource table.Show/hide example querySELECT [Service Module Setup].[Resource 1 No_] ,[Resource].[No_] FROM [CRONUS UK Ltd_$Service Module Setup$5a0b41e9-7a42-4123-d521-2265186cfb31] AS [Service Module Setup] LEFT JOIN [CRONUS UK Ltd_$Resource$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Resource] ON [Service Module Setup].[Resource 1 No_] = [Resource].[No_] | |||||||
7 | Resource 2 No. | Resource 2 No. | Normal | Code | 20 | Resource 2 No_ | nvarchar(40) |
Key to join to the Resource table.Show/hide example querySELECT [Service Module Setup].[Resource 2 No_] ,[Resource].[No_] FROM [CRONUS UK Ltd_$Service Module Setup$5a0b41e9-7a42-4123-d521-2265186cfb31] AS [Service Module Setup] LEFT JOIN [CRONUS UK Ltd_$Resource$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Resource] ON [Service Module Setup].[Resource 2 No_] = [Resource].[No_] | |||||||
8 | Service Location | Service Location | Normal | Code | 10 | Service Location | nvarchar(20) |
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 [Service Module Setup].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$Service Module Setup$5a0b41e9-7a42-4123-d521-2265186cfb31] AS [Service Module Setup] LEFT JOIN [User] AS [User] ON [Service Module Setup].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |