Session Event

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

Table Type: System

Table Name: Session Event
Database Table Name: Session Event

Table Number: 2000000111

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

Show/hide an example select of all columns

SELECT
   *
FROM
   [Session Event]

Show/hide an example select of all columns by name

SELECT
   [User SID]
   ,[Server Instance ID]
   ,[Session ID]
   ,[Event Type]
   ,[Event Datetime]
   ,[Client Type]
   ,[Database Name]
   ,[Client Computer Name]
   ,[User ID]
   ,[Comment]
   ,[Session Unique ID]
   ,[$systemId]
   ,[$systemCreatedAt]
   ,[$systemCreatedBy]
   ,[$systemModifiedAt]
   ,[$systemModifiedBy]
FROM
   [Session Event]

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

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

Show/hide columns in Session Event table

Field No.Field NameField CaptionClassTypeLengthSQL Column NameSQL DataType
1User SID SearchUser SIDNormalGUID16User SIDuniqueidentifier
Key to join to the User table.

Show/hide example query

SELECT
	       [Session Event].[User SID]
	       ,[User].[User Security ID]
	FROM
	       [Session Event] AS [Session Event]
	LEFT JOIN
	       [User] AS [User]
	              ON
	                     [Session Event].[User SID] = [User].[User Security ID]
2Server Instance ID Primary Key SearchServer Instance IDNormalInteger4Server Instance IDint
Key to join to the Server Instance table.

Show/hide example query

SELECT
	       [Session Event].[Server Instance ID]
	       ,[Server Instance].[Server Instance ID]
	FROM
	       [Session Event] AS [Session Event]
	LEFT JOIN
	       [] AS [Server Instance]
	              ON
	                     [Session Event].[Server Instance ID] = [Server Instance].[Server Instance ID]
3Session ID Primary Key SearchSession IDNormalInteger4Session IDint
4Event Type Primary Key SearchEvent TypeNormalOption4Event Typeint
Available options are:
  • “Logon”
  • “Logoff”
  • “Start”
  • “Stop”
  • “Close”
5Event Datetime Primary Key SearchEvent DatetimeNormalDateTime8Event Datetimedatetime
6Client Type Primary Key SearchClient TypeNormalOption4Client Typeint
Available options are:
  • “Windows Client”
  • “SharePoint Client”
  • “Web Service”
  • “Client Service”
  • “NAS”
  • “Background”
  • “Management Client”
  • “Web Client”
  • “Unknown”
  • “Tablet”
  • “Phone”
  • “Desktop”
7Database Name SearchDatabase NameNormalText250Database Namenvarchar(500)
8Client Computer Name SearchClient Computer NameNormalText250Client Computer Namenvarchar(500)
9User ID SearchUser IDNormalText132User IDnvarchar(264)
10Comment SearchCommentNormalText132Commentnvarchar(264)
11Session Unique ID SearchSession Unique IDNormalGUID16Session Unique IDuniqueidentifier
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
	       [Session Event].[$systemCreatedBy]
	       ,[User].[User Security ID]
	FROM
	       [Session Event] AS [Session Event]
	LEFT JOIN
	       [User] AS [User]
	              ON
	                     [Session Event].[$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 *