Device

Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/2000000130

Table Type: System

Table Name: Device
Database Table Name: Device

Table Number: 2000000130

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 Device can be queried.

Show/hide an example select of all columns

SELECT
   *
FROM
   [Device]

Show/hide an example select of all columns by name

SELECT
   [MAC Address]
   ,[Name]
   ,[Device Type]
   ,[Enabled]
   ,[$systemId]
   ,[$systemCreatedAt]
   ,[$systemCreatedBy]
   ,[$systemModifiedAt]
   ,[$systemModifiedBy]
FROM
   [Device]

Show/hide an example select of all columns including those from all joined tables

SELECT
   *
FROM
   [Device] AS [Device]
LEFT JOIN
   [User] AS [User]
      ON
         [Device].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
   [User] AS [User]
      ON
         [Device].[SystemModifiedBy] = [User].[User Security ID]

Show/hide columns in Device table

Field No.Field NameField CaptionClassTypeLengthSQL Column NameSQL DataType
1MAC Address Primary Key SearchMAC AddressNormalCode20MAC Addressnvarchar(40)
2Name SearchNameNormalText80Namenvarchar(160)
3Device Type SearchDevice TypeNormalOption4Device Typeint
Available options are:
  • “Full”
  • “Limited”
  • “ISV”
  • “ISV Functional”
4Enabled SearchEnabledNormalBoolean4Enabledtinyint
2000000000$systemId SearchSystem IDNormalGUID16$systemIduniqueidentifier
2000000001SystemCreatedAt SearchCreated AtNormalDateTime8$systemCreatedAtdatetime
2000000002SystemCreatedBy SearchCreated ByNormalGUID16$systemCreatedByuniqueidentifier
Key to join to the User table.

Show/hide example query

SELECT
       [Device].[$systemCreatedBy]
       ,[User].[User Security ID]
FROM
       [Device] AS [Device]
LEFT JOIN
       [User] AS [User]
              ON
                     [Device].[$systemCreatedBy] = [User].[User Security ID]
2000000003SystemModifiedAt SearchModified AtNormalDateTime8$systemModifiedAtdatetime
2000000004SystemModifiedBy SearchModified ByNormalGUID16$systemModifiedByuniqueidentifier
Key to join to the User table.

Show/hide example query

SELECT
       [Device].[$systemModifiedBy]
       ,[User].[User Security ID]
FROM
       [Device] AS [Device]
LEFT JOIN
       [User] AS [User]
              ON
                     [Device].[$systemModifiedBy] = [User].[User Security ID]

Leave a Reply

Your email address will not be published. Required fields are marked *