# Table: ProductCategory

## Properties

Property | Value
--- | ---
Name | ProductCategory
ID | 1957582012
Owner | dbo
Schema | Production
Filegroup | PRIMARY
Data Size (KB) | 8 KB
Index Size (KB) | 40 KB
Rows | 4
Unused (KB) | 0 KB
ANSI Null On |
Quoted Identifier |
Lock Escalation | TABLE
Lock On Bulk Load |
Lob Data Space |
Filestream Data Space ID |
Has Unchecked Assembly Data |
Text In Row Limit (bytes) | Option not set
Large Value Types Out Of Row |
FullText Change Tracking On |
Tracked By Cdc |
Published |
Schema Published |
Replicated |
Replication Filter |
Merge Published |
Sync Tran Subscribed |
MS Shipped |
Modify Date | 8/8/2010 5:23:40 PM
Create Date | 8/8/2010 5:21:51 PM

## Extended Properties

Name | Value
--- | ---
MS_Description | High-level product categorization.

## Columns

Column ID | Column Name | Datatype | Nullable | Is Sparse | Is Column Set
--- | --- | --- | --- | --- | ---
1 | ProductCategoryID | int |  |  |
2 | Name | Name |  |  |
3 | rowguid | uniqueidentifier |  |  |
4 | ModifiedDate | datetime |  |  |

## Identity Columns

Column | Seed Value | Increment Value | Last Value | Is Not For Replication | Is Computed | Is Sparse | Is Column Set
--- | --- | --- | --- | --- | --- | --- | ---
ProductCategoryID | 1 | 1 | 4 |  |  |  |

## Primary Key Constraints

Name | Is System Named | Extended Property Name | Extended Property Value
--- | --- | --- | ---
PK_ProductCategory_ProductCategoryID |  | MS_Description | Primary key (clustered) constraint

## Primary Key Columns

Name
ProductCategoryID

## Foreign Keys

No foreign keys defined.

## Column Level Check Constraints

No column constraints defined.

## Table Level Check Constraints

No table constraints defined.

## Default Constraints

Name | Column | Definition | Is System Named | Extended Property Name | Extended Property Value
--- | --- | --- | --- | --- | ---
DF_ProductCategory_rowguid | rowguid | (newid()) |  | MS_Description | Default constraint value of NEWID()()
DF_ProductCategory_ModifiedDate | ModifiedDate | (getdate()) |  | MS_Description | Default constraint value of GETDATE()

## Indexes

Name | Index Type | Primary Key | Unique | Unique Constraint | Ignore Duplicate Key | Disabled
--- | --- | --- | --- | --- | --- | ---
PK_ProductCategory_ProductCategoryID | CLUSTERED |  |  |  |  |
AK_ProductCategory_Name | NONCLUSTERED |  |  |  |  |
AK_ProductCategory_rowguid | NONCLUSTERED |  |  |  |  |

## FullText Indexes

No fulltext indexes defined.

## Referencing Tables

Name | Key Index ID | Is Disabled | Is Not For Replication | Is Not Trusted | Delete Action | Update Action | Is System Named | Referencing Object
--- | --- | --- | --- | --- | --- | --- | --- | ---
FK_ProductSubcategory_ProductCategory_ProductCategoryID | 1 |  |  |  | No action | No action |  | Production.ProductSubcategory

## Object Level Permissions

No object level permissions defined.

## Column Level Permissions

No explicit column permissions granted to this object

## Statistics

### Detailed Statistics General

Name | Updated | Rows | Rows Sampled | Steps | Density | Average Key Length | String Index | Filter Expression | Unfiltered Rows
--- | --- | --- | --- | --- | --- | --- | --- | --- | ---
PK_ProductCategory_ProductCategoryID | Aug 8 2010 5:22PM | 4 | 4 | 3 | 1 | 4 |  |  | 4

### Detailed Statistics Density

All Density | Average Length | Columns
--- | --- | ---
0.25 | 4 | ProductCategoryID

### Detailed Statistics Histogram

Range High Key | Range Rows | Estimated Rows | Distinct Range Rows | Avg Range Rows
--- | --- | --- | --- | ---
1 | 0 | 1 | 0 | 1
3 | 1 | 1 | 1 | 1
4 | 0 | 1 | 0 | 1

### Detailed Statistics General

Name | Updated | Rows | Rows Sampled | Steps | Density | Average Key Length | String Index | Filter Expression | Unfiltered Rows
--- | --- | --- | --- | --- | --- | --- | --- | --- | ---
AK_ProductCategory_Name | Aug 8 2010 5:23PM | 4 | 4 | 4 | 0 | 21 |  |  | 4

### Detailed Statistics Density

All Density | Average Length | Columns
--- | --- | ---
0.25 | 17 | Name
0.25 | 21 | Name, ProductCategoryID

### Detailed Statistics Histogram

Range High Key | Range Rows | Estimated Rows | Distinct Range Rows | Avg Range Rows
--- | --- | --- | --- | ---
Accessories | 0 | 1 | 0 | 1
Bikes | 0 | 1 | 0 | 1
Clothing | 0 | 1 | 0 | 1
Components | 0 | 1 | 0 | 1

### Detailed Statistics General

Name | Updated | Rows | Rows Sampled | Steps | Density | Average Key Length | String Index | Filter Expression | Unfiltered Rows
--- | --- | --- | --- | --- | --- | --- | --- | --- | ---
AK_ProductCategory_rowguid | Aug 8 2010 5:23PM | 4 | 4 | 3 | 1 | 20 |  |  | 4

### Detailed Statistics Density

All Density | Average Length | Columns
--- | --- | ---
0.25 | 16 | rowguid
0.25 | 20 | rowguid, ProductCategoryID

### Detailed Statistics Histogram

Range High Key | Range Rows | Estimated Rows | Distinct Range Rows | Avg Range Rows
--- | --- | --- | --- | ---
10a7c342-ca82-48d4-8a38-46a2eb089b74 | 0 | 1 | 0 | 1
cfbda25c-df71-47a7-b81b-64ee161aa37c | 0 | 1 | 0 | 1
2be3be36-d9a2-4eee-b593-ed895d97c2a6 | 1 | 1 | 1 | 1

## Objects that depend on [ProductCategory]

- Production.ProductCategory
  - Production.ProductSubcategory
    - Production.Product
      - dbo.KrystianProductView
      - dbo.ufnGetProductDealerPrice
        - Person.functionSynonym
      - dbo.ufnGetProductListPrice
      - dbo.ufnGetProductStandardCost
      - dbo.uspGetBillOfMaterials
        - HumanResources.ProcedureSynonym
      - dbo.uspGetWhereUsedProductID
      - Production.BillOfMaterials
      - Production.ProductCostHistory
      - Production.ProductDocument
      - Production.ProductInventory
        - dbo.ufnGetStock
      - Production.ProductListPriceHistory
      - Production.ProductProductPhoto
      - Production.ProductReview
      - Production.TransactionHistory
        - Production.WorkOrder
          - Production.iWorkOrder
          - Production.uWorkOrder
          - Production.WorkOrderRouting
        - Purchasing.PurchaseOrderDetail
          - Purchasing.iPurchaseOrderDetail
          - Purchasing.uPurchaseOrderDetail
        - Sales.SalesOrderDetail
          - Sales.iduSalesOrderDetail
          - Sales.ufn_SalesByStore
      - Production.uspGetList
      - Production.vProductAndDescription
      - Purchasing.ProductVendor
      - Sales.ShoppingCartItem
      - Sales.SpecialOfferProduct

## Objects on which [ProductCategory] depends

- Production.ProductCategory
  - dbo.Name

## SQL

Script
SET ANSI_NULLS ON SET QUOTED_IDENTIFIER ON CREATE TABLE [Production].[ProductCategory]( [ProductCategoryID] [int] IDENTITY(1,1) NOT NULL, [Name] [dbo].[Name] NOT NULL, [rowguid] [uniqueidentifier] ROWGUIDCOL NOT NULL, [ModifiedDate] [datetime] NOT NULL ) ON [PRIMARY] EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Primary key for ProductCategory records.' , @level0type=N'SCHEMA',@level0name=N'Production', @level1type=N'TABLE',@level1name=N'ProductCategory', @level2type=N'COLUMN',@level2name=N'ProductCategoryID' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Category description.' , @level0type=N'SCHEMA',@level0name=N'Production', @level1type=N'TABLE',@level1name=N'ProductCategory', @level2type=N'COLUMN',@level2name=N'Name' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample.' , @level0type=N'SCHEMA',@level0name=N'Production', @level1type=N'TABLE',@level1name=N'ProductCategory', @level2type=N'COLUMN',@level2name=N'rowguid' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Date and time the record was last updated.' , @level0type=N'SCHEMA',@level0name=N'Production', @level1type=N'TABLE',@level1name=N'ProductCategory', @level2type=N'COLUMN',@level2name=N'ModifiedDate' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'High-level product categorization.' , @level0type=N'SCHEMA',@level0name=N'Production', @level1type=N'TABLE',@level1name=N'ProductCategory'

#### See also

List of Tables