Table:
[AdventureWorks2016CTP3].[Production].[UnitMeasure]
Name | Value |
Schema | [Production] |
Owner | [dbo] |
Table is replicated | |
Creation date | 23.10.2015 |
ID | 1054626800 |
Located on | PRIMARY |
Data size KB | 8 KB |
Index size KB | 24 KB |
Rows | 38 |
ChangeTrackingEnabled | |
FileStreamFileGroup | |
FileStreamPartitionScheme | |
LockEscalation | TABLE |
TrackColumnsUpdatedEnabled | |
Table is filetable | |
Filetable directory | |
Filetable collate | |
Filetable primary key | [PK_UnitMeasure_UnitMeasureCode] |
Filetable streamid unique | |
Filetable fullpath unique | |
Filetable is enabled | |
Is memory optimized | |
Durability | SCHEMA_AND_DATA |
Name | Value |
QUOTED_IDENTIFIER | ON |
ANSI_NULLS | ON |
ANSI_PADDING | ON |
Name | Description | Data type | Max length | Nullable | Default | IsGUID | SPARSE | Computed value | ||
![]() | UnitMeasureCode | nchar | 3 | |||||||
Name | [dbo].[Name] | 50 | ||||||||
ModifiedDate | datetime | 8 | (getdate()) |
Index | Description | Primary | Unique | Size KB | ||
[PK_UnitMeasure_UnitMeasureCode] | UnitMeasureCode | ![]() |
![]() |
32 | 0 | |
[AK_UnitMeasure_Name] | Name | ![]() |
16 | 0 |
Table | Foreign key | Primary key or unique constraint |
[Production].[BillOfMaterials] | FK_BillOfMaterials_UnitMeasure_UnitMeasureCode | PK_UnitMeasure_UnitMeasureCode |
[Production].[Product] | FK_Product_UnitMeasure_SizeUnitMeasureCode | PK_UnitMeasure_UnitMeasureCode |
[Production].[Product] | FK_Product_UnitMeasure_WeightUnitMeasureCode | PK_UnitMeasure_UnitMeasureCode |
[Purchasing].[ProductVendor] | FK_ProductVendor_UnitMeasure_UnitMeasureCode | PK_UnitMeasure_UnitMeasureCode |
Object name | Object type | Dep level |
[Production].[BillOfMaterials] | Table | 1 |
[Production].[Product] | Table | 1 |
[Purchasing].[ProductVendor] | Table | 1 |
Object name | Object type | Dep level |
[Production] | Schema | 1 |
[dbo].[Name] | Datatype | 1 |
Name | Value |
MS_Description | Unit of measure lookup table. |
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 |
SET ANSI_NULLS ON SET QUOTED_IDENTIFIER ON SET ANSI_PADDING ON GO CREATE TABLE [Production].[UnitMeasure] ( [UnitMeasureCode] [nchar](3) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL, [Name] [dbo].[Name] NOT NULL, [ModifiedDate] [datetime] NOT NULL, CONSTRAINT [PK_UnitMeasure_UnitMeasureCode] PRIMARY KEY CLUSTERED ([UnitMeasureCode]) ON [PRIMARY] ) ON [PRIMARY] GO EXEC sp_addextendedproperty N'MS_Description', N'Primary key (clustered) constraint', 'SCHEMA', N'Production', 'TABLE', N'UnitMeasure', 'CONSTRAINT', N'PK_UnitMeasure_UnitMeasureCode' GO EXEC sp_addextendedproperty N'MS_Description', N'Clustered index created by a primary key constraint.', 'SCHEMA', N'Production', 'TABLE', N'UnitMeasure', 'INDEX', N'PK_UnitMeasure_UnitMeasureCode' GO ALTER TABLE [Production].[UnitMeasure] ADD CONSTRAINT [DF_UnitMeasure_ModifiedDate] DEFAULT (getdate()) FOR [ModifiedDate] GO EXEC sp_addextendedproperty N'MS_Description', N'Default constraint value of GETDATE()', 'SCHEMA', N'Production', 'TABLE', N'UnitMeasure', 'CONSTRAINT', N'DF_UnitMeasure_ModifiedDate' GO CREATE UNIQUE NONCLUSTERED INDEX [AK_UnitMeasure_Name] ON [Production].[UnitMeasure] ([Name]) ON [PRIMARY] GO EXEC sp_addextendedproperty N'MS_Description', N'Unique nonclustered index.', 'SCHEMA', N'Production', 'TABLE', N'UnitMeasure', 'INDEX', N'AK_UnitMeasure_Name' GO EXEC sp_addextendedproperty N'MS_Description', N'Date and time the record was last updated.', 'SCHEMA', N'Production', 'TABLE', N'UnitMeasure', 'COLUMN', N'ModifiedDate' GO EXEC sp_addextendedproperty N'MS_Description', N'Unit of measure description.', 'SCHEMA', N'Production', 'TABLE', N'UnitMeasure', 'COLUMN', N'Name' GO EXEC sp_addextendedproperty N'MS_Description', N'Primary key.', 'SCHEMA', N'Production', 'TABLE', N'UnitMeasure', 'COLUMN', N'UnitMeasureCode' GO EXEC sp_addextendedproperty N'MS_Description', N'Unit of measure lookup table.', 'SCHEMA', N'Production', 'TABLE', N'UnitMeasure', NULL, NULL GO |