AdventureWorks
Production.ProductDescription Table
Description
Product descriptions in several languages.
Properties
Creation Date08/01/2010 08:40
File GroupPRIMARY
Text File Group
System Object
Published for Replication
Rows762
Data Space Used144.00 KB
Index Space Used56.00 KB
Columns
 Column NameDescriptionDatatypeLengthAllow NullsDefaultFormula
Primary Key ProductDescriptionIDPrimary key for ProductDescription records.int4   
 DescriptionDescription of the product.nvarchar400   
 rowguidROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample.uniqueidentifier16 
(newid())
 
 ModifiedDateDate and time the record was last updated.datetime4 
(getdate())
 
Indexes
IndexDescriptionPrimaryUnique
AK_ProductDescription_rowguidUnique nonclustered index. Used to support replication samples. 
PK_ProductDescription_ProductDescriptionIDPrimary key (clustered) constraint
Relationships
RelationshipDescription
FK_ProductModelProductDescriptionCulture_ProductDescription_ProductDescriptionIDForeign key constraint referencing ProductDescription.ProductDescriptionID.
Objects that depend on Production.ProductDescription
 Database ObjectObject TypeDescriptionDep Level
Production.ProductModelProductDescriptionCulture tableProduction.ProductModelProductDescriptionCultureTableCross-reference table mapping product descriptions and the language the description is written in.1
Production.vProductAndDescription viewProduction.vProductAndDescriptionViewProduct names and descriptions. Product descriptions are provided in multiple languages.1
SQL
SET ANSI_NULLS ON
SET QUOTED_IDENTIFIER ON
CREATE TABLE [Production].[ProductDescription](
	[ProductDescriptionID] [int] IDENTITY(1,1) NOT NULL,
	[Description] [nvarchar](400) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
	[rowguid] [uniqueidentifier] ROWGUIDCOL  NOT NULL,
	[ModifiedDate] [datetime] NOT NULL,
 CONSTRAINT [PK_ProductDescription_ProductDescriptionID] PRIMARY KEY CLUSTERED 
(
	[ProductDescriptionID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

ALTER TABLE [Production].[ProductDescription] ADD  CONSTRAINT [DF_ProductDescription_rowguid]  DEFAULT (newid()) FOR [rowguid]
ALTER TABLE [Production].[ProductDescription] ADD  CONSTRAINT [DF_ProductDescription_ModifiedDate]  DEFAULT (getdate()) FOR [ModifiedDate]
See Also

Related Objects

Production Schema
AdventureWorks Database

 

 


© 2012 All Rights Reserved.

Send comments on this topic.