Tables [dbo].[ShipmentStatusActionMap]
Properties
PropertyValue
HeapYes
Row Count (~)0
Created1:05:54 PM Monday, January 28, 2013
Last Modified11:13:41 AM Monday, August 19, 2013
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_ShipmentStatusActionMap: ShipmentStatusActionMapIDShipmentStatusActionMapIDint4
No
1 - 1
Foreign Keys FK_ShipmentStatusActionMap_ShipmentStatusFID: [dbo].[ShipmentStatus].ShipmentStatusFIDIndexes IX_ShipmentStatusActionMap_ShipmentStatusFID_ShipmentStatusActionFID: ShipmentStatusFID\ShipmentStatusActionFIDShipmentStatusFIDint4
No
Foreign Keys FK_ShipmentStatusActionMap_ShipmentStatusActionFID: [dbo].[ShipmentStatusAction].ShipmentStatusActionFIDIndexes IX_ShipmentStatusActionMap_ShipmentStatusFID_ShipmentStatusActionFID: ShipmentStatusFID\ShipmentStatusActionFIDShipmentStatusActionFIDint4
No
Indexes Indexes
NameColumnsUnique
Primary Key PK_ShipmentStatusActionMap: ShipmentStatusActionMapIDPK_ShipmentStatusActionMapShipmentStatusActionMapID
Yes
IX_ShipmentStatusActionMap_ShipmentStatusFID_ShipmentStatusActionFIDShipmentStatusFID, ShipmentStatusActionFID
Yes
Foreign Keys Foreign Keys
NameColumns
FK_ShipmentStatusActionMap_ShipmentStatusActionFIDShipmentStatusActionFID->[dbo].[ShipmentStatusAction].[ShipmentStatusActionID]
FK_ShipmentStatusActionMap_ShipmentStatusFIDShipmentStatusFID->[dbo].[ShipmentStatus].[ShipmentStatusID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[ShipmentStatusActionMap]
(
[ShipmentStatusActionMapID] [int] NOT NULL IDENTITY(1, 1),
[ShipmentStatusFID] [int] NOT NULL,
[ShipmentStatusActionFID] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ShipmentStatusActionMap] ADD CONSTRAINT [PK_ShipmentStatusActionMap] PRIMARY KEY NONCLUSTERED  ([ShipmentStatusActionMapID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ShipmentStatusActionMap] ADD CONSTRAINT [IX_ShipmentStatusActionMap_ShipmentStatusFID_ShipmentStatusActionFID] UNIQUE NONCLUSTERED  ([ShipmentStatusFID], [ShipmentStatusActionFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ShipmentStatusActionMap] ADD CONSTRAINT [FK_ShipmentStatusActionMap_ShipmentStatusActionFID] FOREIGN KEY ([ShipmentStatusActionFID]) REFERENCES [dbo].[ShipmentStatusAction] ([ShipmentStatusActionID])
GO
ALTER TABLE [dbo].[ShipmentStatusActionMap] ADD CONSTRAINT [FK_ShipmentStatusActionMap_ShipmentStatusFID] FOREIGN KEY ([ShipmentStatusFID]) REFERENCES [dbo].[ShipmentStatus] ([ShipmentStatusID])
GO
GRANT SELECT ON  [dbo].[ShipmentStatusActionMap] TO [MssExec]
GRANT INSERT ON  [dbo].[ShipmentStatusActionMap] TO [MssExec]
GRANT DELETE ON  [dbo].[ShipmentStatusActionMap] TO [MssExec]
GRANT UPDATE ON  [dbo].[ShipmentStatusActionMap] TO [MssExec]
GO
Uses