Tables [dbo].[OrderNumbers]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)45
Created4:57:08 PM Thursday, September 7, 2006
Last Modified11:13:40 AM Monday, August 19, 2013
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_OrderNumbers: OrderNumbersIDOrderNumbersIDint4
No
1 - 1
Indexes IX_OrderNumbers_Description: DescriptionDescriptionvarchar(25)25
No
Prefixvarchar(4)4
No
Minimumint4
No
Maximumint4
No
YearLengthsmallint2
No
NextYearsmallint2
No
CurrentYearsmallint2
No
NextNoInSeqint4
No
NextYrNextNoint4
No
Foreign Keys FK_OrderNumbers_Vanline: [dbo].[VanLine].VanlineFIDVanlineFIDint4
Yes
Indexes Indexes
NameColumnsUniqueFill Factor
Primary Key PK_OrderNumbers: OrderNumbersIDPK_OrderNumbersOrderNumbersID
Yes
80
IX_OrderNumbers_DescriptionDescription
Yes
80
Foreign Keys Foreign Keys
NameColumns
FK_OrderNumbers_VanlineVanlineFID->[dbo].[VanLine].[VLPriKey]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[OrderNumbers]
(
[OrderNumbersID] [int] NOT NULL IDENTITY(1, 1),
[Description] [varchar] (25) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Prefix] [varchar] (4) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Minimum] [int] NOT NULL,
[Maximum] [int] NOT NULL,
[YearLength] [smallint] NOT NULL,
[NextYear] [smallint] NOT NULL,
[CurrentYear] [smallint] NOT NULL,
[NextNoInSeq] [int] NOT NULL,
[NextYrNextNo] [int] NOT NULL,
[VanlineFID] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[OrderNumbers] ADD CONSTRAINT [PK_OrderNumbers] PRIMARY KEY NONCLUSTERED  ([OrderNumbersID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[OrderNumbers] ADD CONSTRAINT [IX_OrderNumbers_Description] UNIQUE NONCLUSTERED  ([Description]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[OrderNumbers] ADD CONSTRAINT [FK_OrderNumbers_Vanline] FOREIGN KEY ([VanlineFID]) REFERENCES [dbo].[VanLine] ([VLPriKey])
GO
GRANT SELECT ON  [dbo].[OrderNumbers] TO [MssExec]
GRANT INSERT ON  [dbo].[OrderNumbers] TO [MssExec]
GRANT DELETE ON  [dbo].[OrderNumbers] TO [MssExec]
GRANT UPDATE ON  [dbo].[OrderNumbers] TO [MssExec]
GO
Uses
Used By