Tables [dbo].[SakariContactOrderMap]
Properties
PropertyValue
Row Count (~)0
Created9:09:40 AM Friday, November 8, 2024
Last Modified9:09:40 AM Friday, November 8, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_SakariContactOrderMap: SakariContactOrderMapIDSakariContactOrderMapIDint4
No
1 - 1
Cluster Key IX_SakariContactOrderMap_OrderFID_SakariContactFID: SakariContactFID\OrderFIDForeign Keys FK_SakariContactOrderMap_Orders: [dbo].[Orders].OrderFIDOrderFIDint4
No
Cluster Key IX_SakariContactOrderMap_OrderFID_SakariContactFID: SakariContactFID\OrderFIDForeign Keys FK_SakariContactOrderMap_SakariContact: [dbo].[SakariContact].SakariContactFIDSakariContactFIDint4
No
Indexes Indexes
NameColumnsUnique
Primary Key PK_SakariContactOrderMap: SakariContactOrderMapIDPK_SakariContactOrderMapSakariContactOrderMapID
Yes
Cluster Key IX_SakariContactOrderMap_OrderFID_SakariContactFID: SakariContactFID\OrderFIDIX_SakariContactOrderMap_OrderFID_SakariContactFIDSakariContactFID, OrderFID
Yes
Foreign Keys Foreign Keys
NameColumns
FK_SakariContactOrderMap_OrdersOrderFID->[dbo].[Orders].[PriKey]
FK_SakariContactOrderMap_SakariContactSakariContactFID->[dbo].[SakariContact].[SakariContactID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[SakariContactOrderMap]
(
[SakariContactOrderMapID] [int] NOT NULL IDENTITY(1, 1),
[OrderFID] [int] NOT NULL,
[SakariContactFID] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[SakariContactOrderMap] ADD CONSTRAINT [PK_SakariContactOrderMap] PRIMARY KEY NONCLUSTERED  ([SakariContactOrderMapID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[SakariContactOrderMap] ADD CONSTRAINT [IX_SakariContactOrderMap_OrderFID_SakariContactFID] UNIQUE CLUSTERED  ([SakariContactFID], [OrderFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[SakariContactOrderMap] ADD CONSTRAINT [FK_SakariContactOrderMap_Orders] FOREIGN KEY ([OrderFID]) REFERENCES [dbo].[Orders] ([PriKey])
GO
ALTER TABLE [dbo].[SakariContactOrderMap] ADD CONSTRAINT [FK_SakariContactOrderMap_SakariContact] FOREIGN KEY ([SakariContactFID]) REFERENCES [dbo].[SakariContact] ([SakariContactID])
GO
GRANT SELECT ON  [dbo].[SakariContactOrderMap] TO [MssExec]
GRANT INSERT ON  [dbo].[SakariContactOrderMap] TO [MssExec]
GRANT DELETE ON  [dbo].[SakariContactOrderMap] TO [MssExec]
GRANT UPDATE ON  [dbo].[SakariContactOrderMap] TO [MssExec]
GO
Uses
Used By