Tables [dbo].[LocServOrderLocationMap]
Properties
PropertyValue
Row Count (~)0
Created8:53:30 AM Friday, December 7, 2018
Last Modified9:14:56 AM Friday, December 7, 2018
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_LocServOrderLocationMap: LocServOrderLocationMapIDLocServOrderLocationMapIDint4
No
1 - 1
Foreign Keys FK_LocServOrderLocationMap_LocServ: [dbo].[LocServ].LocServFIDIndexes IX_LocServOrderLocationMap_LocServFID_OrderLocationFID: LocServFID\OrderLocationFIDLocServFIDint4
No
Foreign Keys FK_LocServOrderLocationMap_OrderLocation: [dbo].[OrderLocations].OrderLocationFIDIndexes IX_LocServOrderLocationMap_LocServFID_OrderLocationFID: LocServFID\OrderLocationFIDOrderLocationFIDint4
No
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_LocServOrderLocationMap: LocServOrderLocationMapIDPK_LocServOrderLocationMapLocServOrderLocationMapID
Yes
IX_LocServOrderLocationMap_LocServFID_OrderLocationFIDLocServFID, OrderLocationFID
Yes
Foreign Keys Foreign Keys
NameColumns
FK_LocServOrderLocationMap_LocServLocServFID->[dbo].[LocServ].[PriKey]
FK_LocServOrderLocationMap_OrderLocationOrderLocationFID->[dbo].[OrderLocations].[OrderLocationID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[LocServOrderLocationMap]
(
[LocServOrderLocationMapID] [int] NOT NULL IDENTITY(1, 1),
[LocServFID] [int] NOT NULL,
[OrderLocationFID] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[LocServOrderLocationMap] ADD CONSTRAINT [PK_LocServOrderLocationMap] PRIMARY KEY CLUSTERED  ([LocServOrderLocationMapID]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [IX_LocServOrderLocationMap_LocServFID_OrderLocationFID] ON [dbo].[LocServOrderLocationMap] ([LocServFID], [OrderLocationFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[LocServOrderLocationMap] ADD CONSTRAINT [FK_LocServOrderLocationMap_LocServ] FOREIGN KEY ([LocServFID]) REFERENCES [dbo].[LocServ] ([PriKey])
GO
ALTER TABLE [dbo].[LocServOrderLocationMap] ADD CONSTRAINT [FK_LocServOrderLocationMap_OrderLocation] FOREIGN KEY ([OrderLocationFID]) REFERENCES [dbo].[OrderLocations] ([OrderLocationID])
GO
GRANT SELECT ON  [dbo].[LocServOrderLocationMap] TO [MssExec]
GRANT INSERT ON  [dbo].[LocServOrderLocationMap] TO [MssExec]
GRANT DELETE ON  [dbo].[LocServOrderLocationMap] TO [MssExec]
GRANT UPDATE ON  [dbo].[LocServOrderLocationMap] TO [MssExec]
GO
Uses