Table: [AdventureWorks2016CTP3].[Person].[AddressType]

CollapseAll image

Collapse image Table properties


Name  Value 
 Schema  [Person]
 Owner  [dbo]
 Table is replicated   
 Creation date  23.10.2015
 ID  741577680
 Located on  PRIMARY
 Data size KB  8 KB
 Index size KB  40 KB
 Rows  6
 ChangeTrackingEnabled   
 FileStreamFileGroup   
 FileStreamPartitionScheme   
 LockEscalation  TABLE
 TrackColumnsUpdatedEnabled   
 Table is filetable   
 Filetable directory   
 Filetable collate   
 Filetable primary key  [PK_AddressType_AddressTypeID]
 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 ON

Collapse image Columns


    Name  Description  Data type  Max length  Nullable  Default IsGUID  SPARSE Computed value
Primary key Identity AddressTypeID     int 4        
    Name     [dbo].[Name] 50        
    rowguid     uniqueidentifier 16   (newid())  
    ModifiedDate     datetime 8   (getdate())    
Total: 4 column(s)

Collapse image Indexes


Index  Description  Primary  Unique  Size KB 
[PK_AddressType_AddressTypeID] AddressTypeID   48 0
[AK_AddressType_Name] Name     16 0
[AK_AddressType_rowguid] rowguid     16 0
Total: 3 Index/indexes

Collapse image Columnstore indexes


No columnstore indexes exist

Collapse image Identity column


  Name  Seed  Increment  Not for replication 
 AddressTypeID   1   1   

Collapse image Referencing tables


Table  Foreign key  Primary key or unique constraint 
[Person].[BusinessEntityAddress] FK_BusinessEntityAddress_AddressType_AddressTypeID PK_AddressType_AddressTypeID
Total: 1 table(s)

Collapse image Objects that depend on [Person].[AddressType]


Object name Object type Dep level
[Person].[BusinessEntityAddress] Table 1
[Sales].[vIndividualCustomer] View 1
[Sales].[vStoreWithAddresses] View 1
[Purchasing].[vVendorWithAddresses] View 1
Total 4 object(s)

Collapse image Objects that [Person].[AddressType] depends on


Object name Object type Dep level
[Person] Schema 1
[dbo].[Name] Datatype 1
Total 2 object(s)

Collapse image Extended properties


Name  Value 
MS_Description Types of addresses stored in the Address table.

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 ON
GO
CREATE TABLE [Person].[AddressType] (
        [AddressTypeID]     [int] IDENTITY(1, 1) NOT NULL,
        [Name]              [dbo].[Name] NOT NULL,
        [rowguid]           [uniqueidentifier] NOT NULL ROWGUIDCOL,
        [ModifiedDate]      [datetime] NOT NULL,
        CONSTRAINT [PK_AddressType_AddressTypeID]
        PRIMARY KEY
        CLUSTERED
        ([AddressTypeID])
    ON [PRIMARY]
) ON [PRIMARY]
GO
EXEC sp_addextendedproperty N'MS_Description', N'Primary key (clustered) constraint', 'SCHEMA', N'Person', 'TABLE', N'AddressType', 'CONSTRAINT', N'PK_AddressType_AddressTypeID'
GO
EXEC sp_addextendedproperty N'MS_Description', N'Clustered index created by a primary key constraint.', 'SCHEMA', N'Person', 'TABLE', N'AddressType', 'INDEX', N'PK_AddressType_AddressTypeID'
GO
ALTER TABLE [Person].[AddressType]
    ADD
    CONSTRAINT [DF_AddressType_ModifiedDate]
    DEFAULT (getdate()) FOR [ModifiedDate]
GO
EXEC sp_addextendedproperty N'MS_Description', N'Default constraint value of GETDATE()', 'SCHEMA', N'Person', 'TABLE', N'AddressType', 'CONSTRAINT', N'DF_AddressType_ModifiedDate'
GO
ALTER TABLE [Person].[AddressType]
    ADD
    CONSTRAINT [DF_AddressType_rowguid]
    DEFAULT (newid()) FOR [rowguid]
GO
EXEC sp_addextendedproperty N'MS_Description', N'Default constraint value of NEWID()', 'SCHEMA', N'Person', 'TABLE', N'AddressType', 'CONSTRAINT', N'DF_AddressType_rowguid'
GO
CREATE UNIQUE NONCLUSTERED INDEX [AK_AddressType_Name]
    ON [Person].[AddressType] ([Name])
    ON [PRIMARY]
GO
EXEC sp_addextendedproperty N'MS_Description', N'Unique nonclustered index.', 'SCHEMA', N'Person', 'TABLE', N'AddressType', 'INDEX', N'AK_AddressType_Name'
GO
CREATE UNIQUE NONCLUSTERED INDEX [AK_AddressType_rowguid]
    ON [Person].[AddressType] ([rowguid])
    ON [PRIMARY]
GO
EXEC sp_addextendedproperty N'MS_Description', N'Unique nonclustered index. Used to support replication samples.', 'SCHEMA', N'Person', 'TABLE', N'AddressType', 'INDEX', N'AK_AddressType_rowguid'
GO
EXEC sp_addextendedproperty N'MS_Description', N'Primary key for AddressType records.', 'SCHEMA', N'Person', 'TABLE', N'AddressType', 'COLUMN', N'AddressTypeID'
GO
EXEC sp_addextendedproperty N'MS_Description', N'Date and time the record was last updated.', 'SCHEMA', N'Person', 'TABLE', N'AddressType', 'COLUMN', N'ModifiedDate'
GO
EXEC sp_addextendedproperty N'MS_Description', N'Address type description. For example, Billing, Home, or Shipping.', 'SCHEMA', N'Person', 'TABLE', N'AddressType', 'COLUMN', N'Name'
GO
EXEC sp_addextendedproperty N'MS_Description', N'ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample.', 'SCHEMA', N'Person', 'TABLE', N'AddressType', 'COLUMN', N'rowguid'
GO
EXEC sp_addextendedproperty N'MS_Description', N'Types of addresses stored in the Address table. ', 'SCHEMA', N'Person', 'TABLE', N'AddressType', NULL, NULL
GO

Collapse image See also


List of tables