Table: [AdventureWorks2016CTP3].[Person].[BusinessEntity]

CollapseAll image

Collapse image Table properties


Name  Value 
 Schema  [Person]
 Owner  [dbo]
 Table is replicated   
 Creation date  23.10.2015
 ID  949578421
 Located on  PRIMARY
 Data size KB  768 KB
 Index size KB  568 KB
 Rows  20777
 ChangeTrackingEnabled   
 FileStreamFileGroup   
 FileStreamPartitionScheme   
 LockEscalation  TABLE
 TrackColumnsUpdatedEnabled   
 Table is filetable   
 Filetable directory   
 Filetable collate   
 Filetable primary key  [PK_BusinessEntity_BusinessEntityID]
 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 Identity BusinessEntityID     int 4        
    rowguid     uniqueidentifier 16   (newid())  
    ModifiedDate     datetime 8   (getdate())    
Total: 3 column(s)

Collapse image Indexes


Index  Description  Primary  Unique  Size KB 
[PK_BusinessEntity_BusinessEntityID] BusinessEntityID   1336 0
[AK_BusinessEntity_rowguid] rowguid     552 0
Total: 2 Index/indexes

Collapse image Columnstore indexes


No columnstore indexes exist

Collapse image Identity column


  Name  Seed  Increment  Not for replication 
 BusinessEntityID   1   1 

Collapse image Referencing tables


Table  Foreign key  Primary key or unique constraint 
[Person].[BusinessEntityAddress] FK_BusinessEntityAddress_BusinessEntity_BusinessEntityID PK_BusinessEntity_BusinessEntityID
[Person].[BusinessEntityContact] FK_BusinessEntityContact_BusinessEntity_BusinessEntityID PK_BusinessEntity_BusinessEntityID
[Person].[Person] FK_Person_BusinessEntity_BusinessEntityID PK_BusinessEntity_BusinessEntityID
[Purchasing].[Vendor] FK_Vendor_BusinessEntity_BusinessEntityID PK_BusinessEntity_BusinessEntityID
[Sales].[Store] FK_Store_BusinessEntity_BusinessEntityID PK_BusinessEntity_BusinessEntityID
Total: 5 table(s)

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


Object name Object type Dep level
[Person].[BusinessEntityAddress] Table 1
[Person].[BusinessEntityContact] Table 1
[Person].[Person] Table 1
[Sales].[Store] Table 1
[Purchasing].[Vendor] Table 1
Total 5 object(s)

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


Object name Object type Dep level
[Person] Schema 1
Total 1 object(s)

Collapse image Extended properties


Name  Value 
MS_Description Source of the ID that connects vendors, customers, and employees with address and contact information.

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 [Person].[BusinessEntity] (
        [BusinessEntityID]     [int] IDENTITY(1, 1) NOT FOR REPLICATION NOT NULL,
        [rowguid]              [uniqueidentifier] NOT NULL ROWGUIDCOL,
        [ModifiedDate]         [datetime] NOT NULL,
        CONSTRAINT [PK_BusinessEntity_BusinessEntityID]
        PRIMARY KEY
        CLUSTERED
        ([BusinessEntityID])
    ON [PRIMARY]
) ON [PRIMARY]
GO
EXEC sp_addextendedproperty N'MS_Description', N'Primary key (clustered) constraint', 'SCHEMA', N'Person', 'TABLE', N'BusinessEntity', 'CONSTRAINT', N'PK_BusinessEntity_BusinessEntityID'
GO
EXEC sp_addextendedproperty N'MS_Description', N'Clustered index created by a primary key constraint.', 'SCHEMA', N'Person', 'TABLE', N'BusinessEntity', 'INDEX', N'PK_BusinessEntity_BusinessEntityID'
GO
ALTER TABLE [Person].[BusinessEntity]
    ADD
    CONSTRAINT [DF_BusinessEntity_ModifiedDate]
    DEFAULT (getdate()) FOR [ModifiedDate]
GO
EXEC sp_addextendedproperty N'MS_Description', N'Default constraint value of GETDATE()', 'SCHEMA', N'Person', 'TABLE', N'BusinessEntity', 'CONSTRAINT', N'DF_BusinessEntity_ModifiedDate'
GO
ALTER TABLE [Person].[BusinessEntity]
    ADD
    CONSTRAINT [DF_BusinessEntity_rowguid]
    DEFAULT (newid()) FOR [rowguid]
GO
EXEC sp_addextendedproperty N'MS_Description', N'Default constraint value of NEWID()', 'SCHEMA', N'Person', 'TABLE', N'BusinessEntity', 'CONSTRAINT', N'DF_BusinessEntity_rowguid'
GO
CREATE UNIQUE NONCLUSTERED INDEX [AK_BusinessEntity_rowguid]
    ON [Person].[BusinessEntity] ([rowguid])
    ON [PRIMARY]
GO
EXEC sp_addextendedproperty N'MS_Description', N'Unique nonclustered index. Used to support replication samples.', 'SCHEMA', N'Person', 'TABLE', N'BusinessEntity', 'INDEX', N'AK_BusinessEntity_rowguid'
GO
EXEC sp_addextendedproperty N'MS_Description', N'Primary key for all customers, vendors, and employees.', 'SCHEMA', N'Person', 'TABLE', N'BusinessEntity', 'COLUMN', N'BusinessEntityID'
GO
EXEC sp_addextendedproperty N'MS_Description', N'Date and time the record was last updated.', 'SCHEMA', N'Person', 'TABLE', N'BusinessEntity', 'COLUMN', N'ModifiedDate'
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'BusinessEntity', 'COLUMN', N'rowguid'
GO
EXEC sp_addextendedproperty N'MS_Description', N'Source of the ID that connects vendors, customers, and employees with address and contact information.', 'SCHEMA', N'Person', 'TABLE', N'BusinessEntity', NULL, NULL
GO

Collapse image See also


List of tables