view icon View: vProductAndDescription

Properties

Property Value
Name vProductAndDescription
ID 1931153925
Schema Production
Owner dbo
Encrypted false
Schema Bound true
With Check Option false
ANSI NULLS true
Uses Quoted Identifier true
Has Opaque Metadata false
Published false
Schema Published false
Replicated false
Has Replication Filter false
Has Unchecked Assembly Data false
Date Correlation View false
Uses Database Collation true
Tracked by CDC false
MS Shipped false
Modify Date 8/8/2010 5:23:45 PM
Create Date 8/8/2010 5:23:45 PM

Extended Properties

Name Value
MS_Description Product names and descriptions. Product descriptions are provided in multiple languages.

View Columns

Column Name Datatype Nullable Is Identity
ProductID int false false
Name Name false false
ProductModel Name false false
CultureID nchar(6) false false
Description nvarchar(400) false false

Indexes

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

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
IX_vProductAndDescription Aug 8 2010 5:23PM 1764 1764 6 0 16 true 1764

Detailed Statistics Density

All Density Average Length Columns
0.1666667 12 CultureID
0.0005668934 16 CultureID, ProductID

Detailed Statistics Histogram

Range High Key Range Rows Estimated Rows Distinct Range Rows Avg Range Rows
ar 0 294 0 1
en 0 294 0 1
fr 0 294 0 1
he 0 294 0 1
th 0 294 0 1
zh-cht 0 294 0 1

Objects that depend on [vProductAndDescription]

Objects on which [vProductAndDescription] depends

SQL

Script
SET ANSI_NULLS ON
SET QUOTED_IDENTIFIER ON
CREATE VIEW [Production].[vProductAndDescription] WITH SCHEMABINDING AS SELECT p.[ProductID] ,p.[Name] ,pm.[Name] AS [ProductModel] ,pmx.[CultureID] ,pd.[Description] FROM [Production].[Product] p INNER JOIN [Production].[ProductModel] pm ON p.[ProductModelID] = pm.[ProductModelID] INNER JOIN [Production].[ProductModelProductDescriptionCulture] pmx ON pm.[ProductModelID] = pmx.[ProductModelID] INNER JOIN [Production].[ProductDescription] pd ON pmx.[ProductDescriptionID] = pd.[ProductDescriptionID];
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Clustered index on the view vProductAndDescription.' , @level0type=N'SCHEMA',@level0name=N'Production', @level1type=N'VIEW',@level1name=N'vProductAndDescription', @level2type=N'INDEX',@level2name=N'IX_vProductAndDescription'
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Product names and descriptions. Product descriptions are provided in multiple languages.' , @level0type=N'SCHEMA',@level0name=N'Production', @level1type=N'VIEW',@level1name=N'vProductAndDescription'

See also

List of Views