Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/6702
Table Type: Company
Table Name: Booking Sync
Database Table Name: CRONUS UK Ltd_$Booking Sync$437dbf0e-84ff-417a-965d-ed2bb9650972
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 Booking Sync can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Booking Sync$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[Primary Key]
,[Booking Mailbox Address]
,[Booking Mailbox Name]
,[User ID]
,[Last Customer Sync]
,[Last Service Sync]
,[Enabled]
,[Sync Customers]
,[Customer Filter]
,[Customer Template Code]
,[Sync Services]
,[Item Filter]
,[Item Template Code]
,[Customer Templ_ Code]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Booking Sync$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns including those from all joined tables
SELECT
*
FROM
[CRONUS UK Ltd_$Booking Sync$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Booking Sync]
LEFT JOIN
[CRONUS UK Ltd_$Customer$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer]
ON
[Booking Sync].[Customer Filter] = [Customer].[No_]
LEFT JOIN
[CRONUS UK Ltd_$Item$437dbf0e-84ff-417a-965d-ed2bb9650972$ext] AS [Item]
ON
[Booking Sync].[Item Filter] = [Item].[No_]
LEFT JOIN
[User] AS [User]
ON
[Booking Sync].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Booking Sync].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Booking Sync table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | Primary Key | Primary Key | Normal | Code | 10 | Primary Key | nvarchar(20) |
2 | Booking Mailbox Address | Booking Mailbox Address | Normal | Text | 80 | Booking Mailbox Address | nvarchar(160) |
3 | Booking Mailbox Name | Booking Mailbox Name | Normal | Text | 250 | Booking Mailbox Name | nvarchar(500) |
4 | User ID | User ID | Normal | Code | 50 | User ID | nvarchar(100) |
5 | Last Customer Sync | Last Customer Sync | Normal | DateTime | 8 | Last Customer Sync | datetime |
6 | Last Service Sync | Last Service Sync | Normal | DateTime | 8 | Last Service Sync | datetime |
7 | Enabled | Enabled | Normal | Boolean | 4 | Enabled | tinyint |
8 | Sync Customers | Sync Customers | Normal | Boolean | 4 | Sync Customers | tinyint |
9 | Customer Filter | Customer Filter | Normal | BLOB | 8 | Customer Filter | image |
Key to join to the Customer table.Show/hide example querySELECT [Booking Sync].[Customer Filter] ,[Customer].[No_] FROM [CRONUS UK Ltd_$Booking Sync$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Booking Sync] LEFT JOIN [CRONUS UK Ltd_$Customer$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer] ON [Booking Sync].[Customer Filter] = [Customer].[No_] | |||||||
10 | Customer Template Code | Customer Template Code | Normal | Code | 10 | Customer Template Code | nvarchar(20) |
12 | Sync Services | Sync Services | Normal | Boolean | 4 | Sync Services | tinyint |
13 | Item Filter | Item Filter | Normal | BLOB | 8 | Item Filter | image |
Key to join to the Item table.Show/hide example querySELECT [Booking Sync].[Item Filter] ,[Item].[No_] FROM [CRONUS UK Ltd_$Booking Sync$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Booking Sync] LEFT JOIN [CRONUS UK Ltd_$Item$437dbf0e-84ff-417a-965d-ed2bb9650972$ext] AS [Item] ON [Booking Sync].[Item Filter] = [Item].[No_] | |||||||
14 | Item Template Code | Item Template Code | Normal | Code | 10 | Item Template Code | nvarchar(20) |
15 | Customer Templ. Code | Customer Template Code | Normal | Code | 20 | Customer Templ_ Code | nvarchar(40) |
Key to join to the Customer Templ. table.Show/hide example querySELECT [Booking Sync].[Customer Templ_ Code] ,[Customer Templ.].[Code] FROM [CRONUS UK Ltd_$Booking Sync$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Booking Sync] LEFT JOIN [CRONUS UK Ltd_$Customer Templ_$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer Templ.] ON [Booking Sync].[Customer Templ_ Code] = [Customer Templ.].[Code] | |||||||
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 [Booking Sync].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$Booking Sync$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Booking Sync] LEFT JOIN [User] AS [User] ON [Booking Sync].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |