table icon Table: ProductDocument

Properties

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

Extended Properties

Name Value
MS_Description Cross-reference table mapping products to related product documents. mobi

Columns

Column ID Column Name Datatype Nullable Is Sparse Is Column Set
1 ProductID int false false false
2 DocumentNode hierarchyid false false false
3 ModifiedDate datetime false false false

Identity Columns

No identity columns defined.

Primary Key Constraints

Name Is System Named Extended Property Name Extended Property Value
PK_ProductDocument_ProductID_DocumentNode false MS_Description Primary key (clustered) constraint

Primary Key Columns

Name
ProductID
DocumentNode

Foreign Keys

Name Referenced Object Update Action Delete Action
FK_ProductDocument_Product_ProductID Production.Product No action No action
FK_ProductDocument_Document_DocumentNode Production.Document No action No action

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_ProductDocument_ModifiedDate ModifiedDate (getdate()) false MS_Description Default constraint value of GETDATE()

Indexes

Name Index Type Primary Key Unique Unique Constraint Ignore Duplicate Key Disabled
PK_ProductDocument_ProductID_DocumentNode CLUSTERED true true false false false

FullText Indexes

No fulltext indexes defined.

Referencing Tables

No referencing tables defined.

Object Level Permissions

No object level permissions defined.

Column Level Permissions

No explicit column permissions granted to this object

Statistics

Detailed Statistics General

NameUpdatedRowsRows SampledStepsDensityAverage Key LengthString IndexFilter ExpressionUnfiltered Rows
PK_ProductDocument_ProductID_DocumentNode Aug 8 2010 5:22PM 32 32 19 1 6 false 32

Detailed Statistics Density

All Density Average Length Columns
0.03225806 4 ProductID
0.03125 6 ProductID, DocumentNode

Detailed Statistics Histogram

Range High Key Range Rows Estimated Rows Distinct Range Rows Avg Range Rows
317 0 1 0 1
319 1 1 1 1
506 0 2 0 1
514 0 1 0 1
516 1 1 1 1
518 1 1 1 1
520 1 1 1 1
522 1 1 1 1
928 0 1 0 1
930 1 1 1 1
932 1 1 1 1
934 1 1 1 1
936 1 1 1 1
938 1 1 1 1
940 1 1 1 1
941 0 1 0 1
977 0 1 0 1
997 0 1 0 1
999 1 1 1 1

Detailed Statistics General

NameUpdatedRowsRows SampledStepsDensityAverage Key LengthString IndexFilter ExpressionUnfiltered Rows
_WA_Sys_00000002_7E37BEF6 Aug 8 2010 5:23PM 32 32 5 1 2 false 32

Detailed Statistics Density

All Density Average Length Columns
0.1666667 2 DocumentNode

Detailed Statistics Histogram

Range High Key Range Rows Estimated Rows Distinct Range Rows Avg Range Rows
/1/1/ 0 4 0 1
/2/1/ 0 10 0 1
/3/2/ 1 1 1 1
/3/3/ 0 7 0 1
/3/4/ 0 9 0 1

Objects that depend on [ProductDocument]

Objects on which [ProductDocument] depends

SQL

Script
SET ANSI_NULLS ON
SET QUOTED_IDENTIFIER ON
CREATE TABLE [Production].[ProductDocument]( [ProductID] [int] NOT NULL, [DocumentNode] [hierarchyid] NOT NULL, [ModifiedDate] [datetime] NOT NULL ) ON [PRIMARY]
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Product identification number. Foreign key to Product.ProductID.' , @level0type=N'SCHEMA',@level0name=N'Production', @level1type=N'TABLE',@level1name=N'ProductDocument', @level2type=N'COLUMN',@level2name=N'ProductID'
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Document identification number. Foreign key to Document.DocumentNode.' , @level0type=N'SCHEMA',@level0name=N'Production', @level1type=N'TABLE',@level1name=N'ProductDocument', @level2type=N'COLUMN',@level2name=N'DocumentNode'
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'ProductDocument', @level2type=N'COLUMN',@level2name=N'ModifiedDate'
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Cross-reference table mapping products to related product documents. mobi' , @level0type=N'SCHEMA',@level0name=N'Production', @level1type=N'TABLE',@level1name=N'ProductDocument'

See also

List of Tables