Tables [dbo].[State]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)59
Created4:57:08 PM Thursday, September 7, 2006
Last Modified9:45:27 AM Friday, December 7, 2018
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_State: StateIDStateIDint4
No
1 - 1
Indexes IX_State_Code: CodeIndexes IX_State_CodeName: Code\NameCodevarchar(4)4
No
Indexes IX_State_CodeName: Code\NameNamevarchar(40)40
No
Indexes Indexes
NameColumnsUniqueFill Factor
Primary Key PK_State: StateIDPK_StateStateID
Yes
80
IX_State_CodeNameCode, Name
Yes
80
IX_State_CodeCode
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[State]
(
[StateID] [int] NOT NULL IDENTITY(1, 1),
[Code] [varchar] (4) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Name] [varchar] (40) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[State] ADD CONSTRAINT [PK_State] PRIMARY KEY NONCLUSTERED  ([StateID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[State] ADD CONSTRAINT [IX_State_CodeName] UNIQUE NONCLUSTERED  ([Code], [Name]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_State_Code] ON [dbo].[State] ([Code]) ON [PRIMARY]
GO
GRANT SELECT ON  [dbo].[State] TO [MssExec]
GRANT INSERT ON  [dbo].[State] TO [MssExec]
GRANT DELETE ON  [dbo].[State] TO [MssExec]
GRANT UPDATE ON  [dbo].[State] TO [MssExec]
GO
Uses
Used By