Production.ProductCategory Table

Information

NameProductCategory
SchemaProduction
Row Count0
Data Size 
Index Size 
Reserved Size 
Unused Size 
Created29.3.2010. 21:58:18
Modified29.3.2010. 21:58:54

Extended Properties

NameTypeProperty NameValue
ProductCategoryTABLEMS_DescriptionHigh-level product categorization.

Columns

PKKeyIdentityNameData TypeAllow NullsCollationReferencesDefaultComputedCompute Expression
   ProductCategoryIDint   
 
 
 
   Namenvarchar(50) SQL_Latin1_General_CP1_CI_AS 
 
 
 
   rowguiduniqueidentifier   
(newid())
 
 
   ModifiedDatedatetime   
(getdate())
 
 

Indexes

NameTypePrimaryUniqueColumns
PK_ProductCategory_ProductCategoryIDClustered  ProductCategoryID
AK_ProductCategory_NameNonClustered  Name
AK_ProductCategory_rowguidNonClustered  rowguid

SQL Script

CREATE TABLE [Production].[ProductCategory] (
    [ProductCategoryID] int NOT NULL IDENTITY,
    [Name] nvarchar(50) NOT NULL,
    [rowguid] uniqueidentifier NOT NULL DEFAULT (newid()),
    [ModifiedDate] datetime NOT NULL DEFAULT (getdate())
);
CREATE UNIQUE INDEX [AK_ProductCategory_Name] on [Production].[ProductCategory]([Name]);
CREATE UNIQUE INDEX [AK_ProductCategory_rowguid] on [Production].[ProductCategory]([rowguid]);