Tables [dbo].[XmlXtraStopDeletedMap]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created10:03:28 AM Friday, December 7, 2018
Last Modified10:03:47 AM Friday, December 7, 2018
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Cluster Primary Key PK_XmlXtraStopDeletedMap: XmlXtraStopDeletedMapIDXmlXtraStopDeletedMapIDint4
No
1 - 1
Foreign Keys FK_XmlXtraStopDeletedMap_Orders: [dbo].[Orders].OrderFIDIndexes IX_XmlXtraStopDeletedMap_XmlSystem_ExternalStopNumber: OrderFID\ExternalStopNumber\XmlSystemFIDOrderFIDint4
No
Foreign Keys FK_XmlXtraStopDeletedMap_XmlSystem: [dbo].[XmlSystem].XmlSystemFIDIndexes IX_XmlXtraStopDeletedMap_XmlSystem_ExternalStopNumber: OrderFID\ExternalStopNumber\XmlSystemFIDXmlSystemFIDint4
No
Indexes IX_XmlXtraStopDeletedMap_XmlSystem_ExternalStopNumber: OrderFID\ExternalStopNumber\XmlSystemFIDExternalStopNumbervarchar(16)16
No
ExternalTripNumbervarchar(16)16
Yes
ExternalMoveNumbervarchar(16)16
Yes
SentToVanlinebit1
No
((0))
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_XmlXtraStopDeletedMap: XmlXtraStopDeletedMapIDPK_XmlXtraStopDeletedMapXmlXtraStopDeletedMapID
Yes
IX_XmlXtraStopDeletedMap_XmlSystem_ExternalStopNumberOrderFID, ExternalStopNumber, XmlSystemFID
Yes
Foreign Keys Foreign Keys
NameDeleteColumns
FK_XmlXtraStopDeletedMap_OrdersCascadeOrderFID->[dbo].[Orders].[PriKey]
FK_XmlXtraStopDeletedMap_XmlSystemXmlSystemFID->[dbo].[XmlSystem].[XmlSystemID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[XmlXtraStopDeletedMap]
(
[XmlXtraStopDeletedMapID] [int] NOT NULL IDENTITY(1, 1),
[OrderFID] [int] NOT NULL,
[XmlSystemFID] [int] NOT NULL,
[ExternalStopNumber] [varchar] (16) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[ExternalTripNumber] [varchar] (16) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[ExternalMoveNumber] [varchar] (16) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[SentToVanline] [bit] NOT NULL CONSTRAINT [DF_XmlXtraStopDeletedMap_SentToVanline] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlXtraStopDeletedMap] ADD CONSTRAINT [PK_XmlXtraStopDeletedMap] PRIMARY KEY CLUSTERED  ([XmlXtraStopDeletedMapID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlXtraStopDeletedMap] ADD CONSTRAINT [IX_XmlXtraStopDeletedMap_XmlSystem_ExternalStopNumber] UNIQUE NONCLUSTERED  ([OrderFID], [ExternalStopNumber], [XmlSystemFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlXtraStopDeletedMap] ADD CONSTRAINT [FK_XmlXtraStopDeletedMap_Orders] FOREIGN KEY ([OrderFID]) REFERENCES [dbo].[Orders] ([PriKey]) ON DELETE CASCADE
GO
ALTER TABLE [dbo].[XmlXtraStopDeletedMap] ADD CONSTRAINT [FK_XmlXtraStopDeletedMap_XmlSystem] FOREIGN KEY ([XmlSystemFID]) REFERENCES [dbo].[XmlSystem] ([XmlSystemID])
GO
GRANT SELECT ON  [dbo].[XmlXtraStopDeletedMap] TO [MssExec]
GRANT INSERT ON  [dbo].[XmlXtraStopDeletedMap] TO [MssExec]
GRANT DELETE ON  [dbo].[XmlXtraStopDeletedMap] TO [MssExec]
GRANT UPDATE ON  [dbo].[XmlXtraStopDeletedMap] TO [MssExec]
GO
Uses