Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/2650
Table Type: Company
Table Name: Email Printer Settings
Database Table Name: CRONUS UK Ltd_$Email Printer Settings$8c972578-fe72-4aa5-ae51-cc5575fef2ea
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 Email Printer Settings can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Email Printer Settings$8c972578-fe72-4aa5-ae51-cc5575fef2ea]
Show/hide an example select of all columns by name
SELECT
[ID]
,[Description]
,[Email Address]
,[Email Subject]
,[Email Body]
,[Paper Size]
,[Paper Height]
,[Paper Width]
,[Paper Unit]
,[Landscape]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Email Printer Settings$8c972578-fe72-4aa5-ae51-cc5575fef2ea]
Show/hide an example select of all columns including those from all joined tables
SELECT
*
FROM
[CRONUS UK Ltd_$Email Printer Settings$8c972578-fe72-4aa5-ae51-cc5575fef2ea] AS [Email Printer Settings]
LEFT JOIN
[User] AS [User]
ON
[Email Printer Settings].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Email Printer Settings].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Email Printer Settings table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | ID | Printer ID | Normal | Code | 250 | ID | nvarchar(500) |
2 | Description | Printer Description | Normal | Text | 250 | Description | nvarchar(500) |
3 | Email Address | Printer Email Address | Normal | Text | 250 | Email Address | nvarchar(500) |
4 | Email Subject | Email Subject | Normal | Text | 250 | Email Subject | nvarchar(500) |
5 | Email Body | Email Body | Normal | Text | 2048 | Email Body | nvarchar(4096) |
6 | Paper Size | Paper Size | Normal | Option | 4 | Paper Size | int |
Available options are:
| |||||||
7 | Paper Height | Printer Paper Height | Normal | Decimal | 12 | Paper Height | decimal(38,38) |
8 | Paper Width | Printer Paper Width | Normal | Decimal | 12 | Paper Width | decimal(38,38) |
9 | Paper Unit | Printer Paper Units | Normal | Option | 4 | Paper Unit | int |
Available options are:
| |||||||
10 | Landscape | Landscape | Normal | Boolean | 4 | Landscape | tinyint |
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 [Email Printer Settings].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$Email Printer Settings$8c972578-fe72-4aa5-ae51-cc5575fef2ea] AS [Email Printer Settings] LEFT JOIN [User] AS [User] ON [Email Printer Settings].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |