Tables [dbo].[AdpExportLog]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created1:53:23 PM Wednesday, April 10, 2024
Last Modified1:55:45 PM Wednesday, April 10, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Cluster Primary Key PK_AdpExportLog: AdpExportLogIdAdpExportLogIdint4
No
1 - 1
TimeStampdatetime8
No
Successbit1
Yes
AdpBadgevarchar(512)512
Yes
Locationvarchar(50)50
Yes
Timeclocknvarchar(64)128
Yes
JsonMessagenvarchar(max)max
Yes
NumberOfPunchesint4
Yes
MobileCrewTimeFIDsvarchar(max)max
Yes
Foreign Keys FK_AdpExportLog_MobileCrewTimeSentStatusFID: [dbo].[MobileCrewTimeSentStatus].MobileCrewTimeSentStatusFIDMobileCrewTimeSentStatusFIDint4
Yes
IsReceivedJsonbit1
No
((0))
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_AdpExportLog: AdpExportLogIdPK_AdpExportLogAdpExportLogId
Yes
Foreign Keys Foreign Keys
NameColumns
FK_AdpExportLog_MobileCrewTimeSentStatusFIDMobileCrewTimeSentStatusFID->[dbo].[MobileCrewTimeSentStatus].[MobileCrewTimeSentStatusID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[AdpExportLog]
(
[AdpExportLogId] [int] NOT NULL IDENTITY(1, 1),
[TimeStamp] [datetime] NOT NULL,
[Success] [bit] NULL,
[AdpBadge] [varchar] (512) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Location] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Timeclock] [nvarchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[JsonMessage] [nvarchar] (max) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[NumberOfPunches] [int] NULL,
[MobileCrewTimeFIDs] [varchar] (max) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[MobileCrewTimeSentStatusFID] [int] NULL,
[IsReceivedJson] [bit] NOT NULL CONSTRAINT [DF_AdpExportLog_IsReceivedJson] DEFAULT ((0))
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [dbo].[AdpExportLog] ADD CONSTRAINT [PK_AdpExportLog] PRIMARY KEY CLUSTERED  ([AdpExportLogId]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[AdpExportLog] ADD CONSTRAINT [FK_AdpExportLog_MobileCrewTimeSentStatusFID] FOREIGN KEY ([MobileCrewTimeSentStatusFID]) REFERENCES [dbo].[MobileCrewTimeSentStatus] ([MobileCrewTimeSentStatusID])
GO
GRANT SELECT ON  [dbo].[AdpExportLog] TO [MssExec]
GRANT INSERT ON  [dbo].[AdpExportLog] TO [MssExec]
GRANT DELETE ON  [dbo].[AdpExportLog] TO [MssExec]
GRANT UPDATE ON  [dbo].[AdpExportLog] TO [MssExec]
GO
Uses
Used By