Tables [dbo].[XmlDocInterfaceShipmentMap]
Properties
PropertyValue
Row Count (~)17
Created10:32:30 AM Thursday, July 8, 2010
Last Modified11:13:44 AM Monday, August 19, 2013
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDescription
Cluster Primary Key PK_XmlDocInterfaceShipmentMap: XmlDocInterfaceShipmentMapIDXmlDocInterfaceShipmentMapIDint4
No
1 - 1The primary key.
Foreign Keys FK_XmlDocInterfaceShipmentMap_XmlDocInterfaceMap: [dbo].[XmlDocInterfaceMap].XmlDocInterfaceMapFIDIndexes IX_XmlDocInterfaceShipmentMap_ShipType: XmlDocInterfaceMapFID\ShipmentTypeFIDXmlDocInterfaceMapFIDint4
No
The XmlDocInterfaceMap foreign key.
Foreign Keys FK_XmlDocInterfaceShipmentMap_ShipmentType: [dbo].[ShipmentType].ShipmentTypeFIDIndexes IX_XmlDocInterfaceShipmentMap_ShipType: XmlDocInterfaceMapFID\ShipmentTypeFIDShipmentTypeFIDint4
No
The Shipment Type foreign key.
Indexes Indexes
NameColumnsUniqueFill Factor
Cluster Primary Key PK_XmlDocInterfaceShipmentMap: XmlDocInterfaceShipmentMapIDPK_XmlDocInterfaceShipmentMapXmlDocInterfaceShipmentMapID
Yes
80
IX_XmlDocInterfaceShipmentMap_ShipTypeXmlDocInterfaceMapFID, ShipmentTypeFID
Yes
80
Foreign Keys Foreign Keys
NameDeleteColumns
FK_XmlDocInterfaceShipmentMap_ShipmentTypeCascadeShipmentTypeFID->[dbo].[ShipmentType].[ShipmentTypeID]
FK_XmlDocInterfaceShipmentMap_XmlDocInterfaceMapCascadeXmlDocInterfaceMapFID->[dbo].[XmlDocInterfaceMap].[XmlDocInterfaceMapID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[XmlDocInterfaceShipmentMap]
(
[XmlDocInterfaceShipmentMapID] [int] NOT NULL IDENTITY(1, 1),
[XmlDocInterfaceMapFID] [int] NOT NULL,
[ShipmentTypeFID] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlDocInterfaceShipmentMap] ADD CONSTRAINT [PK_XmlDocInterfaceShipmentMap] PRIMARY KEY CLUSTERED  ([XmlDocInterfaceShipmentMapID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlDocInterfaceShipmentMap] ADD CONSTRAINT [IX_XmlDocInterfaceShipmentMap_ShipType] UNIQUE NONCLUSTERED  ([XmlDocInterfaceMapFID], [ShipmentTypeFID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlDocInterfaceShipmentMap] ADD CONSTRAINT [FK_XmlDocInterfaceShipmentMap_ShipmentType] FOREIGN KEY ([ShipmentTypeFID]) REFERENCES [dbo].[ShipmentType] ([ShipmentTypeID]) ON DELETE CASCADE
GO
ALTER TABLE [dbo].[XmlDocInterfaceShipmentMap] ADD CONSTRAINT [FK_XmlDocInterfaceShipmentMap_XmlDocInterfaceMap] FOREIGN KEY ([XmlDocInterfaceMapFID]) REFERENCES [dbo].[XmlDocInterfaceMap] ([XmlDocInterfaceMapID]) ON DELETE CASCADE
GO
GRANT SELECT ON  [dbo].[XmlDocInterfaceShipmentMap] TO [MssExec]
GRANT INSERT ON  [dbo].[XmlDocInterfaceShipmentMap] TO [MssExec]
GRANT DELETE ON  [dbo].[XmlDocInterfaceShipmentMap] TO [MssExec]
GRANT UPDATE ON  [dbo].[XmlDocInterfaceShipmentMap] TO [MssExec]
GO
EXEC sp_addextendedproperty N'MS_Description', N'The Shipment Type foreign key.', 'SCHEMA', N'dbo', 'TABLE', N'XmlDocInterfaceShipmentMap', 'COLUMN', N'ShipmentTypeFID'
GO
EXEC sp_addextendedproperty N'MS_Description', N'The XmlDocInterfaceMap foreign key.', 'SCHEMA', N'dbo', 'TABLE', N'XmlDocInterfaceShipmentMap', 'COLUMN', N'XmlDocInterfaceMapFID'
GO
EXEC sp_addextendedproperty N'MS_Description', N'The primary key.', 'SCHEMA', N'dbo', 'TABLE', N'XmlDocInterfaceShipmentMap', 'COLUMN', N'XmlDocInterfaceShipmentMapID'
GO
Uses