Tables [dbo].[ProductCode]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)22
Created5:34:48 PM Monday, May 4, 2009
Last Modified11:13:44 AM Monday, August 19, 2013
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDescription
Primary Key PK_ProductCode: ProductCodeIDProductCodeIDint4
No
1 - 1The primary key.
Indexes IX_ProductCode_Code: CodeCodevarchar(64)64
No
Type of Product.
Indexes Indexes
NameColumnsUniqueFill Factor
Primary Key PK_ProductCode: ProductCodeIDPK_ProductCodeProductCodeID
Yes
80
IX_ProductCode_CodeCode
Yes
80
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[ProductCode]
(
[ProductCodeID] [int] NOT NULL IDENTITY(1, 1),
[Code] [varchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ProductCode] ADD CONSTRAINT [PK_ProductCode] PRIMARY KEY NONCLUSTERED  ([ProductCodeID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ProductCode] ADD CONSTRAINT [IX_ProductCode_Code] UNIQUE NONCLUSTERED  ([Code]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
GRANT SELECT ON  [dbo].[ProductCode] TO [MssExec]
GRANT INSERT ON  [dbo].[ProductCode] TO [MssExec]
GRANT DELETE ON  [dbo].[ProductCode] TO [MssExec]
GRANT UPDATE ON  [dbo].[ProductCode] TO [MssExec]
GO
EXEC sp_addextendedproperty N'MS_Description', N'Type of Product.', 'SCHEMA', N'dbo', 'TABLE', N'ProductCode', 'COLUMN', N'Code'
GO
EXEC sp_addextendedproperty N'MS_Description', N'The primary key.', 'SCHEMA', N'dbo', 'TABLE', N'ProductCode', 'COLUMN', N'ProductCodeID'
GO
Uses
Used By