Tables [dbo].[OrderStatus]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)17
Created4:57:08 PM Thursday, September 7, 2006
Last Modified9:19:17 AM Friday, November 8, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Cluster Primary Key PK_OrderStatus: PriKeyPriKeyint4
No
1 - 1
Indexes IX_OrderStatus_Status: StatusStatusvarchar(25)25
No
Foreign Keys FK_OrderStatus_ShipmentStatus: [dbo].[ShipmentStatus].ShipmentStatusFIDShipmentStatusFIDint4
Yes
ClearMoveDatesbit1
No
((0))
IsCancelledStatusbit1
No
((0))
HideFromMssWebOrderListbit1
No
((0))
Inactivebit1
No
((0))
Indexes Indexes
NameColumnsUniqueFill Factor
Cluster Primary Key PK_OrderStatus: PriKeyPK_OrderStatusPriKey
Yes
80
IX_OrderStatus_StatusStatus
Yes
Foreign Keys Foreign Keys
NameColumns
FK_OrderStatus_ShipmentStatusShipmentStatusFID->[dbo].[ShipmentStatus].[ShipmentStatusID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[OrderStatus]
(
[PriKey] [int] NOT NULL IDENTITY(1, 1),
[Status] [varchar] (25) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[ShipmentStatusFID] [int] NULL,
[ClearMoveDates] [bit] NOT NULL CONSTRAINT [DF_OrderStatus_ClearMoveDates] DEFAULT ((0)),
[IsCancelledStatus] [bit] NOT NULL CONSTRAINT [DF_OrderStatus_IsCancelledStatus] DEFAULT ((0)),
[HideFromMssWebOrderList] [bit] NOT NULL CONSTRAINT [DF_OrderStatus_HideFromMssWebOrderList] DEFAULT ((0)),
[Inactive] [bit] NOT NULL CONSTRAINT [DF_OrderStatus_Inactive] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[OrderStatus] ADD CONSTRAINT [PK_OrderStatus] PRIMARY KEY CLUSTERED  ([PriKey]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[OrderStatus] ADD CONSTRAINT [IX_OrderStatus_Status] UNIQUE NONCLUSTERED  ([Status]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[OrderStatus] ADD CONSTRAINT [FK_OrderStatus_ShipmentStatus] FOREIGN KEY ([ShipmentStatusFID]) REFERENCES [dbo].[ShipmentStatus] ([ShipmentStatusID])
GO
GRANT SELECT ON  [dbo].[OrderStatus] TO [MssExec]
GRANT INSERT ON  [dbo].[OrderStatus] TO [MssExec]
GRANT DELETE ON  [dbo].[OrderStatus] TO [MssExec]
GRANT UPDATE ON  [dbo].[OrderStatus] TO [MssExec]
GO
Uses
Used By