Database reference - AdventureWorks

AdventureWorks -  indexes -  [Production].[ProductProductPhoto].[PK_ProductProductPhoto_ProductID_ProductPhotoID]

Description

Nonclustered index created by a primary key constraint. 

Index properties

namevalue
name[Production].[ProductProductPhoto].[PK_ProductProductPhoto_ProductID_ProductPhotoID] 
descriptionnonclustered, unique, primary key located on PRIMARY
tableProductProductPhoto 
size (kb)32 
clusteredFalse 
uniqueTrue 
fill factor
filegroupPRIMARY 
ignore duplicate keysFalse 
index key typeDriPrimaryKey 
disallowPageLocksFalse 
disallowRowLocksFalse 
full text keyFalse 
on computedFalse 
on tableTrue 
system namedFalse 
no automatic recomputationFalse 
pad indexFalse 
sort in tempdbFalse 
compact large objectsTrue 
disabledFalse 
partitionedFalse 
xml indexFalse 
max degree of parallelism-1 
online index operationFalse 
parent xml index 
secondary xml index typeNone 
partition scheme 

Columns

namesort ordercomputedincluded
ProductID  ascendingFalse  False 
ProductPhotoID  ascendingFalse  False 

Dependency graph

ProductProductPhotoPK_ProductProductPhoto_ProductID_ProductPhotoID

Objects that [Production].[ProductProductPhoto].[PK_ProductProductPhoto_ProductID_ProductPhotoID] depends on

nameobject typelevel

Code

ALTER TABLE [Production].[ProductProductPhoto] ADD  CONSTRAINT [PK_ProductProductPhoto_ProductID_ProductPhotoID] PRIMARY KEY NONCLUSTERED 
(
    [ProductID] ASC,
    [ProductPhotoID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]

Powered by Yoyodyne © 1971