Table: [AdventureWorks2016CTP3].[Production].[ProductModelIllustration]

CollapseAll image

Collapse image Table properties


Name  Value 
 Schema  [Production]
 Owner  [dbo]
 Table is replicated   
 Creation date  23.10.2015
 ID  786101841
 Located on  PRIMARY
 Data size KB  8 KB
 Index size KB  8 KB
 Rows  7
 ChangeTrackingEnabled   
 FileStreamFileGroup   
 FileStreamPartitionScheme   
 LockEscalation  TABLE
 TrackColumnsUpdatedEnabled   
 Table is filetable   
 Filetable directory   
 Filetable collate   
 Filetable primary key  [PK_ProductModelIllustration_ProductModelID_IllustrationID]
 Filetable streamid unique   
 Filetable fullpath unique   
 Filetable is enabled   
 Is memory optimized   
 Durability  SCHEMA_AND_DATA

Collapse image Creation options


Name  Value 
QUOTED_IDENTIFIER ON
ANSI_NULLS ON
ANSI_PADDING OFF

Collapse image Columns


    Name  Description  Data type  Max length  Nullable  Default IsGUID  SPARSE Computed value
Primary key Foreign key ProductModelID     int 4        
Primary key Foreign key IllustrationID     int 4        
    ModifiedDate     datetime 8   (getdate())    
Total: 3 column(s)

Collapse image Indexes


Index  Description  Primary  Unique  Size KB 
[PK_ProductModelIllustration_ProductModelID_IllustrationID] ProductModelID   16 0
Total: 1 Index/indexes

Collapse image Columnstore indexes


No columnstore indexes exist

Collapse image Referenced tables


Table  Primary key or unique constraint  Foreign key 
[Production].[Illustration] PK_Illustration_IllustrationID FK_ProductModelIllustration_Illustration_IllustrationID
[Production].[ProductModel] PK_ProductModel_ProductModelID FK_ProductModelIllustration_ProductModel_ProductModelID
Total: 2 table(s)

Collapse image Objects that [Production].[ProductModelIllustration] depends on


Object name Object type Dep level
[Production] Schema 1
[Production].[Illustration] Table 1
[Production].[ProductModel] Table 1
Total 3 object(s)

Collapse image Extended properties


Name  Value 
MS_Description Cross-reference table mapping product models and illustrations.

Collapse image Table options


Name  Value 
Pintable OFF
Table lock on bulk load OFF
Insert row lock OFF
Text in row 0
Large value types out of row OFF

Collapse image SQL


SET ANSI_NULLS ON
SET QUOTED_IDENTIFIER ON
SET ANSI_PADDING OFF
GO
CREATE TABLE [Production].[ProductModelIllustration] (
        [ProductModelID]     [int] NOT NULL,
        [IllustrationID]     [int] NOT NULL,
        [ModifiedDate]       [datetime] NOT NULL,
        CONSTRAINT [PK_ProductModelIllustration_ProductModelID_IllustrationID]
        PRIMARY KEY
        CLUSTERED
        ([ProductModelID], [IllustrationID])
    ON [PRIMARY]
) ON [PRIMARY]
GO
EXEC sp_addextendedproperty N'MS_Description', N'Primary key (clustered) constraint', 'SCHEMA', N'Production', 'TABLE', N'ProductModelIllustration', 'CONSTRAINT', N'PK_ProductModelIllustration_ProductModelID_IllustrationID'
GO
EXEC sp_addextendedproperty N'MS_Description', N'Clustered index created by a primary key constraint.', 'SCHEMA', N'Production', 'TABLE', N'ProductModelIllustration', 'INDEX', N'PK_ProductModelIllustration_ProductModelID_IllustrationID'
GO
ALTER TABLE [Production].[ProductModelIllustration]
    ADD
    CONSTRAINT [DF_ProductModelIllustration_ModifiedDate]
    DEFAULT (getdate()) FOR [ModifiedDate]
GO
EXEC sp_addextendedproperty N'MS_Description', N'Default constraint value of GETDATE()', 'SCHEMA', N'Production', 'TABLE', N'ProductModelIllustration', 'CONSTRAINT', N'DF_ProductModelIllustration_ModifiedDate'
GO
ALTER TABLE [Production].[ProductModelIllustration]
    WITH CHECK
    ADD CONSTRAINT [FK_ProductModelIllustration_Illustration_IllustrationID]
    FOREIGN KEY ([IllustrationID]) REFERENCES [Production].[Illustration] ([IllustrationID])
ALTER TABLE [Production].[ProductModelIllustration]
    CHECK CONSTRAINT [FK_ProductModelIllustration_Illustration_IllustrationID]

GO
EXEC sp_addextendedproperty N'MS_Description', N'Foreign key constraint referencing Illustration.IllustrationID.', 'SCHEMA', N'Production', 'TABLE', N'ProductModelIllustration', 'CONSTRAINT', N'FK_ProductModelIllustration_Illustration_IllustrationID'
GO
ALTER TABLE [Production].[ProductModelIllustration]
    WITH CHECK
    ADD CONSTRAINT [FK_ProductModelIllustration_ProductModel_ProductModelID]
    FOREIGN KEY ([ProductModelID]) REFERENCES [Production].[ProductModel] ([ProductModelID])
ALTER TABLE [Production].[ProductModelIllustration]
    CHECK CONSTRAINT [FK_ProductModelIllustration_ProductModel_ProductModelID]

GO
EXEC sp_addextendedproperty N'MS_Description', N'Foreign key constraint referencing ProductModel.ProductModelID.', 'SCHEMA', N'Production', 'TABLE', N'ProductModelIllustration', 'CONSTRAINT', N'FK_ProductModelIllustration_ProductModel_ProductModelID'
GO
EXEC sp_addextendedproperty N'MS_Description', N'Primary key. Foreign key to Illustration.IllustrationID.', 'SCHEMA', N'Production', 'TABLE', N'ProductModelIllustration', 'COLUMN', N'IllustrationID'
GO
EXEC sp_addextendedproperty N'MS_Description', N'Date and time the record was last updated.', 'SCHEMA', N'Production', 'TABLE', N'ProductModelIllustration', 'COLUMN', N'ModifiedDate'
GO
EXEC sp_addextendedproperty N'MS_Description', N'Primary key. Foreign key to ProductModel.ProductModelID.', 'SCHEMA', N'Production', 'TABLE', N'ProductModelIllustration', 'COLUMN', N'ProductModelID'
GO
EXEC sp_addextendedproperty N'MS_Description', N'Cross-reference table mapping product models and illustrations.', 'SCHEMA', N'Production', 'TABLE', N'ProductModelIllustration', NULL, NULL
GO

Collapse image See also


List of tables