Tables [dbo].[CRNumbers]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)27
Created4:57:07 PM Thursday, September 7, 2006
Last Modified7:24:42 AM Friday, December 7, 2018
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_CRNumbers: CRNPriKeyCRNPriKeyint4
No
1 - 1
Indexes IX_CRNumbers_Prefix: PrefixPrefixvarchar(5)5
No
NextInSeqint4
No
Foreign Keys FK_CRNumbers_BRANCH: [dbo].[Branch].BranchPriKeyIndexes IX_CRNumbers_BranchPriKey: BranchPriKeyBranchPriKeyint4
No
Indexes Indexes
NameColumnsUniqueFill Factor
Cluster Primary Key PK_CRNumbers: CRNPriKeyPK_CRNumbersCRNPriKey
Yes
80
IX_CRNumbers_BranchPriKeyBranchPriKey
Yes
IX_CRNumbers_PrefixPrefix
Yes
Foreign Keys Foreign Keys
NameColumns
FK_CRNumbers_BRANCHBranchPriKey->[dbo].[Branch].[BranchPriKey]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[CRNumbers]
(
[CRNPriKey] [int] NOT NULL IDENTITY(1, 1),
[Prefix] [varchar] (5) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[NextInSeq] [int] NOT NULL,
[BranchPriKey] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[CRNumbers] ADD CONSTRAINT [PK_CRNumbers] PRIMARY KEY CLUSTERED  ([CRNPriKey]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [IX_CRNumbers_BranchPriKey] ON [dbo].[CRNumbers] ([BranchPriKey]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [IX_CRNumbers_Prefix] ON [dbo].[CRNumbers] ([Prefix]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[CRNumbers] ADD CONSTRAINT [FK_CRNumbers_BRANCH] FOREIGN KEY ([BranchPriKey]) REFERENCES [dbo].[Branch] ([BranchPriKey])
GO
GRANT SELECT ON  [dbo].[CRNumbers] TO [MssExec]
GRANT INSERT ON  [dbo].[CRNumbers] TO [MssExec]
GRANT DELETE ON  [dbo].[CRNumbers] TO [MssExec]
GRANT UPDATE ON  [dbo].[CRNumbers] TO [MssExec]
GO
Uses