Tables [dbo].[GuaranteedPriceCPU]
Properties
PropertyValue
Row Count (~)0
Created5:34:46 PM Monday, May 4, 2009
Last Modified3:48:40 PM Thursday, December 6, 2018
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_GuaranteedPriceCPU: GuaranteedPriceCPUIDGuaranteedPriceCPUIDint4
No
1 - 1
Foreign Keys FK_GuaranteedPriceCPU_Orders: [dbo].[Orders].OrderFIDIndexes IX_GuaranteedPriceCPU_OrderFID: OrderFIDIndexes IX_GuaranteedPriceCPU_Order_MaterialItemCodeMap: OrderFID\MaterialItemCodeMapFIDOrderFIDint4
No
Ratemoney8
No
Foreign Keys FK_GuaranteedPriceCPU_MaterialItemCodeMap: [dbo].[MaterialItemCodeMap].MaterialItemCodeMapFIDIndexes IX_GuaranteedPriceCPU_MaterialItemCodeMap: MaterialItemCodeMapFIDIndexes IX_GuaranteedPriceCPU_Order_MaterialItemCodeMap: OrderFID\MaterialItemCodeMapFIDMaterialItemCodeMapFIDint4
No
Indexes Indexes
NameColumnsUniqueFill Factor
Cluster Primary Key PK_GuaranteedPriceCPU: GuaranteedPriceCPUIDPK_GuaranteedPriceCPUGuaranteedPriceCPUID
Yes
80
IX_GuaranteedPriceCPU_Order_MaterialItemCodeMapOrderFID, MaterialItemCodeMapFID
Yes
IX_GuaranteedPriceCPU_MaterialItemCodeMapMaterialItemCodeMapFID80
IX_GuaranteedPriceCPU_OrderFIDOrderFID80
Foreign Keys Foreign Keys
NameColumns
FK_GuaranteedPriceCPU_MaterialItemCodeMapMaterialItemCodeMapFID->[dbo].[MaterialItemCodeMap].[MaterialItemCodeMapID]
FK_GuaranteedPriceCPU_OrdersOrderFID->[dbo].[Orders].[PriKey]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[GuaranteedPriceCPU]
(
[GuaranteedPriceCPUID] [int] NOT NULL IDENTITY(1, 1),
[OrderFID] [int] NOT NULL,
[Rate] [money] NOT NULL,
[MaterialItemCodeMapFID] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[GuaranteedPriceCPU] ADD CONSTRAINT [PK_GuaranteedPriceCPU] PRIMARY KEY CLUSTERED  ([GuaranteedPriceCPUID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[GuaranteedPriceCPU] ADD CONSTRAINT [IX_GuaranteedPriceCPU_Order_MaterialItemCodeMap] UNIQUE NONCLUSTERED  ([OrderFID], [MaterialItemCodeMapFID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_GuaranteedPriceCPU_MaterialItemCodeMap] ON [dbo].[GuaranteedPriceCPU] ([MaterialItemCodeMapFID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_GuaranteedPriceCPU_OrderFID] ON [dbo].[GuaranteedPriceCPU] ([OrderFID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[GuaranteedPriceCPU] ADD CONSTRAINT [FK_GuaranteedPriceCPU_MaterialItemCodeMap] FOREIGN KEY ([MaterialItemCodeMapFID]) REFERENCES [dbo].[MaterialItemCodeMap] ([MaterialItemCodeMapID])
GO
ALTER TABLE [dbo].[GuaranteedPriceCPU] ADD CONSTRAINT [FK_GuaranteedPriceCPU_Orders] FOREIGN KEY ([OrderFID]) REFERENCES [dbo].[Orders] ([PriKey])
GO
GRANT SELECT ON  [dbo].[GuaranteedPriceCPU] TO [MssExec]
GRANT INSERT ON  [dbo].[GuaranteedPriceCPU] TO [MssExec]
GRANT DELETE ON  [dbo].[GuaranteedPriceCPU] TO [MssExec]
GRANT UPDATE ON  [dbo].[GuaranteedPriceCPU] TO [MssExec]
GO
Uses