VAT Reg. No. Srv. Template

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

Table Type: Company

Table Name: VAT Reg. No. Srv. Template
Database Table Name: CRONUS UK Ltd_$VAT Reg_ No_ Srv_ Template$437dbf0e-84ff-417a-965d-ed2bb9650972

Table Number: 226

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 VAT Reg. No. Srv. Template can be queried.

Show/hide an example select of all columns

SELECT
   *
FROM
   [CRONUS UK Ltd_$VAT Reg_ No_ Srv_ Template$437dbf0e-84ff-417a-965d-ed2bb9650972]

Show/hide an example select of all columns by name

SELECT
   [Code]
   ,[Country_Region Code]
   ,[Account Type]
   ,[Account No_]
   ,[Validate Name]
   ,[Validate Street]
   ,[Validate City]
   ,[Validate Post Code]
   ,[Ignore Details]
   ,[$systemId]
   ,[$systemCreatedAt]
   ,[$systemCreatedBy]
   ,[$systemModifiedAt]
   ,[$systemModifiedBy]
FROM
   [CRONUS UK Ltd_$VAT Reg_ No_ Srv_ Template$437dbf0e-84ff-417a-965d-ed2bb9650972]

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

SELECT
   *
FROM
   [CRONUS UK Ltd_$VAT Reg_ No_ Srv_ Template$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Reg. No. Srv. Template]
LEFT JOIN
   [User] AS [User]
      ON
         [VAT Reg. No. Srv. Template].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
   [User] AS [User]
      ON
         [VAT Reg. No. Srv. Template].[SystemModifiedBy] = [User].[User Security ID]

Show/hide columns in VAT Reg. No. Srv. Template table

Field No.Field NameField CaptionClassTypeLengthSQL Column NameSQL DataType
1Code SearchCodeNormalCode20Codenvarchar(40)
10Country/Region Code Primary Key SearchCountry/Region CodeNormalCode10Country_Region Codenvarchar(20)
11Account Type SearchAccount TypeNormalOption4Account Typeint
Available options are:
  • “None”
  • “Customer”
  • “Vendor”
  • “Contact”
12Account No. SearchAccount No.NormalCode20Account No_nvarchar(40)
Key to join to the G/L Account table.

Show/hide example query

SELECT
	       [VAT Reg. No. Srv. Template].[Account No_]
	       ,[G/L Account].[No_]
	FROM
	       [CRONUS UK Ltd_$VAT Reg_ No_ Srv_ Template$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Reg. No. Srv. Template]
	LEFT JOIN
	       [CRONUS UK Ltd_$G_L Account$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [G/L Account]
	              ON
	                     [VAT Reg. No. Srv. Template].[Account No_] = [G/L Account].[No_]
20Validate Name SearchValidate NameNormalBoolean4Validate Nametinyint
21Validate Street SearchValidate StreetNormalBoolean4Validate Streettinyint
22Validate City SearchValidate CityNormalBoolean4Validate Citytinyint
23Validate Post Code SearchValidate ZIP codeNormalBoolean4Validate Post Codetinyint
24Ignore Details SearchIgnore DetailsNormalBoolean4Ignore Detailstinyint
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
	       [VAT Reg. No. Srv. Template].[$systemCreatedBy]
	       ,[User].[User Security ID]
	FROM
	       [CRONUS UK Ltd_$VAT Reg_ No_ Srv_ Template$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Reg. No. Srv. Template]
	LEFT JOIN
	       [User] AS [User]
	              ON
	                     [VAT Reg. No. Srv. Template].[$systemCreatedBy] = [User].[User Security ID]
2000000003SystemModifiedAt SearchModified AtNormalDateTime8$systemModifiedAtdatetime
2000000004SystemModifiedBy SearchModified ByNormalGUID16$systemModifiedByuniqueidentifier

Leave a Reply

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