Tables [dbo].[MobileCrewTimeSentToXmlInterface]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)0
Created9:37:42 AM Friday, December 7, 2018
Last Modified7:42:49 PM Wednesday, February 28, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_MobileCrewTimeSentToXmlInterface: MobileCrewTimeSentToXmlInterfaceIDMobileCrewTimeSentToXmlInterfaceIDbigint8
No
1 - 1
Foreign Keys FK_MobileCrewTimeSentToXmlInterface_MobileCrewTimeFID: [dbo].[MobileCrewTime].MobileCrewTimeFIDIndexes IX_MobileCrewTimeSentToXmlInterface_MobileCrewTimeFID_XmlInterfaceFID_IsBeginTime: MobileCrewTimeFID\XmlInterfaceFID\IsBeginTimeIndexes IX_MobileCrewTimeSentToXmlInterface_XmlInterfaceFID_MobileCrewTimeFID_IsBeginTime: XmlInterfaceFID\MobileCrewTimeFID\IsBeginTimeMobileCrewTimeFIDbigint8
No
Foreign Keys FK_MobileCrewTimeSentToXmlInterface_XmlInterfaceFID: [dbo].[XmlInterface].XmlInterfaceFIDIndexes IX_MobileCrewTimeSentToXmlInterface_MobileCrewTimeFID_XmlInterfaceFID_IsBeginTime: MobileCrewTimeFID\XmlInterfaceFID\IsBeginTimeIndexes IX_MobileCrewTimeSentToXmlInterface_XmlInterfaceFID_MobileCrewTimeFID_IsBeginTime: XmlInterfaceFID\MobileCrewTimeFID\IsBeginTimeXmlInterfaceFIDint4
No
Indexes IX_MobileCrewTimeSentToXmlInterface_MobileCrewTimeFID_XmlInterfaceFID_IsBeginTime: MobileCrewTimeFID\XmlInterfaceFID\IsBeginTimeIndexes IX_MobileCrewTimeSentToXmlInterface_XmlInterfaceFID_MobileCrewTimeFID_IsBeginTime: XmlInterfaceFID\MobileCrewTimeFID\IsBeginTimeIsBeginTimebit1
No
SentOndatetime8
No
Foreign Keys FK_MobileCrewTimeSentToXmlInterface_SentByFID: [dbo].[Sysuser].SentByFIDSentByFIDint4
No
AccountCodeSentToInterfacevarchar(50)50
Yes
AdjustedPunchTimedatetime8
Yes
Indexes Indexes
NameColumnsUnique
Primary Key PK_MobileCrewTimeSentToXmlInterface: MobileCrewTimeSentToXmlInterfaceIDPK_MobileCrewTimeSentToXmlInterfaceMobileCrewTimeSentToXmlInterfaceID
Yes
IX_MobileCrewTimeSentToXmlInterface_XmlInterfaceFID_MobileCrewTimeFID_IsBeginTimeXmlInterfaceFID, MobileCrewTimeFID, IsBeginTime
Yes
IX_MobileCrewTimeSentToXmlInterface_MobileCrewTimeFID_XmlInterfaceFID_IsBeginTimeMobileCrewTimeFID, XmlInterfaceFID, IsBeginTime
Foreign Keys Foreign Keys
NameColumns
FK_MobileCrewTimeSentToXmlInterface_MobileCrewTimeFIDMobileCrewTimeFID->[dbo].[MobileCrewTime].[MobileCrewTimeID]
FK_MobileCrewTimeSentToXmlInterface_SentByFIDSentByFID->[dbo].[Sysuser].[SysUserID]
FK_MobileCrewTimeSentToXmlInterface_XmlInterfaceFIDXmlInterfaceFID->[dbo].[XmlInterface].[XmlInterfaceID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[MobileCrewTimeSentToXmlInterface]
(
[MobileCrewTimeSentToXmlInterfaceID] [bigint] NOT NULL IDENTITY(1, 1),
[MobileCrewTimeFID] [bigint] NOT NULL,
[XmlInterfaceFID] [int] NOT NULL,
[IsBeginTime] [bit] NOT NULL,
[SentOn] [datetime] NOT NULL,
[SentByFID] [int] NOT NULL,
[AccountCodeSentToInterface] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[AdjustedPunchTime] [datetime] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[MobileCrewTimeSentToXmlInterface] ADD CONSTRAINT [PK_MobileCrewTimeSentToXmlInterface] PRIMARY KEY NONCLUSTERED  ([MobileCrewTimeSentToXmlInterfaceID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[MobileCrewTimeSentToXmlInterface] ADD CONSTRAINT [IX_MobileCrewTimeSentToXmlInterface_XmlInterfaceFID_MobileCrewTimeFID_IsBeginTime] UNIQUE NONCLUSTERED  ([XmlInterfaceFID], [MobileCrewTimeFID], [IsBeginTime]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_MobileCrewTimeSentToXmlInterface_MobileCrewTimeFID_XmlInterfaceFID_IsBeginTime] ON [dbo].[MobileCrewTimeSentToXmlInterface] ([MobileCrewTimeFID], [XmlInterfaceFID], [IsBeginTime]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[MobileCrewTimeSentToXmlInterface] ADD CONSTRAINT [FK_MobileCrewTimeSentToXmlInterface_MobileCrewTimeFID] FOREIGN KEY ([MobileCrewTimeFID]) REFERENCES [dbo].[MobileCrewTime] ([MobileCrewTimeID])
GO
ALTER TABLE [dbo].[MobileCrewTimeSentToXmlInterface] ADD CONSTRAINT [FK_MobileCrewTimeSentToXmlInterface_SentByFID] FOREIGN KEY ([SentByFID]) REFERENCES [dbo].[Sysuser] ([SysUserID])
GO
ALTER TABLE [dbo].[MobileCrewTimeSentToXmlInterface] ADD CONSTRAINT [FK_MobileCrewTimeSentToXmlInterface_XmlInterfaceFID] FOREIGN KEY ([XmlInterfaceFID]) REFERENCES [dbo].[XmlInterface] ([XmlInterfaceID])
GO
GRANT SELECT ON  [dbo].[MobileCrewTimeSentToXmlInterface] TO [MssExec]
GRANT INSERT ON  [dbo].[MobileCrewTimeSentToXmlInterface] TO [MssExec]
GRANT DELETE ON  [dbo].[MobileCrewTimeSentToXmlInterface] TO [MssExec]
GRANT UPDATE ON  [dbo].[MobileCrewTimeSentToXmlInterface] TO [MssExec]
GO
Uses
Used By