Tables [dbo].[GuaranteedPrice]
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_GuaranteedPrice: GuaranteedPriceIDGuaranteedPriceIDint4
No
1 - 1
Foreign Keys FK_GuaranteedPrice_Orders: [dbo].[Orders].OrderFIDIndexes IX_GuaranteedPrice_Order_MaterialItemCodeMap: OrderFIDIndexes IX_GuaranteedPrice_OrderFID: OrderFIDOrderFIDint4
No
Chargemoney8
Yes
Creditmoney8
Yes
Indexes Indexes
NameColumnsUniqueFill Factor
Cluster Primary Key PK_GuaranteedPrice: GuaranteedPriceIDPK_GuaranteedPriceGuaranteedPriceID
Yes
80
IX_GuaranteedPrice_Order_MaterialItemCodeMapOrderFID
Yes
IX_GuaranteedPrice_OrderFIDOrderFID80
Foreign Keys Foreign Keys
NameColumns
FK_GuaranteedPrice_OrdersOrderFID->[dbo].[Orders].[PriKey]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[GuaranteedPrice]
(
[GuaranteedPriceID] [int] NOT NULL IDENTITY(1, 1),
[OrderFID] [int] NOT NULL,
[Charge] [money] NULL,
[Credit] [money] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[GuaranteedPrice] ADD CONSTRAINT [PK_GuaranteedPrice] PRIMARY KEY CLUSTERED  ([GuaranteedPriceID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[GuaranteedPrice] ADD CONSTRAINT [IX_GuaranteedPrice_Order_MaterialItemCodeMap] UNIQUE NONCLUSTERED  ([OrderFID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_GuaranteedPrice_OrderFID] ON [dbo].[GuaranteedPrice] ([OrderFID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[GuaranteedPrice] ADD CONSTRAINT [FK_GuaranteedPrice_Orders] FOREIGN KEY ([OrderFID]) REFERENCES [dbo].[Orders] ([PriKey])
GO
GRANT SELECT ON  [dbo].[GuaranteedPrice] TO [MssExec]
GRANT INSERT ON  [dbo].[GuaranteedPrice] TO [MssExec]
GRANT DELETE ON  [dbo].[GuaranteedPrice] TO [MssExec]
GRANT UPDATE ON  [dbo].[GuaranteedPrice] TO [MssExec]
GO
Uses