Tables [dbo].[OperationalPlan]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created7:16:49 AM Friday, December 7, 2018
Last Modified9:33:40 AM Friday, December 7, 2018
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_OperationalPlan: OperationalPlanIDIndexes IX_OperationalPlan_OrderFID_PlanName: OperationalPlanID\OrderFID\PlanNameOperationalPlanIDint4
No
1 - 1
Foreign Keys FK_OperationalPlan_Orders: [dbo].[Orders].OrderFIDIndexes IX_OperationalPlan_OrderFID_PlanName: OperationalPlanID\OrderFID\PlanNameOrderFIDint4
No
Indexes IX_OperationalPlan_OrderFID_PlanName: OperationalPlanID\OrderFID\PlanNamePlanNamenvarchar(64)128
No
Notenvarchar(1024)2048
Yes
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_OperationalPlan: OperationalPlanIDPK_OperationalPlanOperationalPlanID
Yes
IX_OperationalPlan_OrderFID_PlanNameOperationalPlanID, OrderFID, PlanName
Yes
Foreign Keys Foreign Keys
NameColumns
FK_OperationalPlan_OrdersOrderFID->[dbo].[Orders].[PriKey]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[OperationalPlan]
(
[OperationalPlanID] [int] NOT NULL IDENTITY(1, 1),
[OrderFID] [int] NOT NULL,
[PlanName] [nvarchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Note] [nvarchar] (1024) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[OperationalPlan] ADD CONSTRAINT [PK_OperationalPlan] PRIMARY KEY CLUSTERED  ([OperationalPlanID]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [IX_OperationalPlan_OrderFID_PlanName] ON [dbo].[OperationalPlan] ([OrderFID], [PlanName]) INCLUDE ([OperationalPlanID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[OperationalPlan] ADD CONSTRAINT [FK_OperationalPlan_Orders] FOREIGN KEY ([OrderFID]) REFERENCES [dbo].[Orders] ([PriKey])
GO
GRANT SELECT ON  [dbo].[OperationalPlan] TO [MssExec]
GRANT INSERT ON  [dbo].[OperationalPlan] TO [MssExec]
GRANT DELETE ON  [dbo].[OperationalPlan] TO [MssExec]
GRANT UPDATE ON  [dbo].[OperationalPlan] TO [MssExec]
GO
Uses
Used By