Tables [dbo].[ProductType]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)9
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_ProductType: ProductTypeIDProductTypeIDint4
No
1 - 1The primary key.
Indexes IX_ProductType_Type: TypeTypevarchar(64)64
No
Type of Product.
Indexes Indexes
NameColumnsUniqueFill Factor
Primary Key PK_ProductType: ProductTypeIDPK_ProductTypeProductTypeID
Yes
80
IX_ProductType_TypeType
Yes
80
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[ProductType]
(
[ProductTypeID] [int] NOT NULL IDENTITY(1, 1),
[Type] [varchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ProductType] ADD CONSTRAINT [PK_ProductType] PRIMARY KEY NONCLUSTERED  ([ProductTypeID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ProductType] ADD CONSTRAINT [IX_ProductType_Type] UNIQUE NONCLUSTERED  ([Type]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
GRANT SELECT ON  [dbo].[ProductType] TO [MssExec]
GRANT INSERT ON  [dbo].[ProductType] TO [MssExec]
GRANT DELETE ON  [dbo].[ProductType] TO [MssExec]
GRANT UPDATE ON  [dbo].[ProductType] TO [MssExec]
GO
EXEC sp_addextendedproperty N'MS_Description', N'The primary key.', 'SCHEMA', N'dbo', 'TABLE', N'ProductType', 'COLUMN', N'ProductTypeID'
GO
EXEC sp_addextendedproperty N'MS_Description', N'Type of Product.', 'SCHEMA', N'dbo', 'TABLE', N'ProductType', 'COLUMN', N'Type'
GO
Uses
Used By