Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/2751
Table Type: Company
Table Name: Universal Printer Settings
Database Table Name: CRONUS UK Ltd_$Universal Printer Settings$2654d7e7-9afd-4947-9e02-6bb8f3e0cd04
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 Universal Printer Settings can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Universal Printer Settings$2654d7e7-9afd-4947-9e02-6bb8f3e0cd04]
Show/hide an example select of all columns by name
SELECT
[Name]
,[Print Share ID]
,[Print Share Name]
,[Description]
,[Paper Size]
,[Paper Height]
,[Paper Width]
,[Paper Unit]
,[Landscape]
,[outputBin]
,[Paper Tray]
,[AllowAllUsers]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Universal Printer Settings$2654d7e7-9afd-4947-9e02-6bb8f3e0cd04]
Show/hide an example select of all columns including those from all joined tables
SELECT
*
FROM
[CRONUS UK Ltd_$Universal Printer Settings$2654d7e7-9afd-4947-9e02-6bb8f3e0cd04] AS [Universal Printer Settings]
LEFT JOIN
[User] AS [User]
ON
[Universal Printer Settings].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Universal Printer Settings].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Universal Printer Settings table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | Name | Name | Normal | Code | 250 | Name | nvarchar(500) |
2 | Print Share ID | Print Share ID | Normal | GUID | 16 | Print Share ID | uniqueidentifier |
3 | Print Share Name | Print Share Name | Normal | Text | 2048 | Print Share Name | nvarchar(4096) |
5 | Description | Description | Normal | Text | 250 | Description | nvarchar(500) |
6 | Paper Size | Paper Size | Normal | Option | 4 | Paper Size | int |
Available options are:
| |||||||
8 | Paper Height | Printer Paper Height | Normal | Decimal | 12 | Paper Height | decimal(38,38) |
9 | Paper Width | Printer Paper Width | Normal | Decimal | 12 | Paper Width | decimal(38,38) |
10 | Paper Unit | Printer Paper Units | Normal | Option | 4 | Paper Unit | int |
Available options are:
| |||||||
11 | Landscape | Landscape | Normal | Boolean | 4 | Landscape | tinyint |
12 | outputBin | Output Bin | Normal | Text | 2048 | outputBin | nvarchar(4096) |
13 | Paper Tray | Paper Tray | Normal | Text | 2048 | Paper Tray | nvarchar(4096) |
18 | AllowAllUsers | Allow all users | Normal | Boolean | 4 | AllowAllUsers | 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 [Universal Printer Settings].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$Universal Printer Settings$2654d7e7-9afd-4947-9e02-6bb8f3e0cd04] AS [Universal Printer Settings] LEFT JOIN [User] AS [User] ON [Universal 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 |