Table:
[AdventureWorks2016CTP3].[Person].[BusinessEntity]
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 |
Creation options
| Name | Value |
| QUOTED_IDENTIFIER | ON |
| ANSI_NULLS | ON |
| ANSI_PADDING | OFF |
Columns
| Name | Description | Data type | Max length | Nullable | Default | IsGUID | SPARSE | Computed value | |||
| | BusinessEntityID | int | 4 | |||||||
| rowguid | uniqueidentifier | 16 | (newid()) | ![]() |
|||||||
| ModifiedDate | datetime | 8 | (getdate()) |
Indexes
| Index | Description | Primary | Unique | Size KB | ||
| [PK_BusinessEntity_BusinessEntityID] | BusinessEntityID | ![]() |
![]() |
1336 | 0 | |
| [AK_BusinessEntity_rowguid] | rowguid | ![]() |
552 | 0 |
Columnstore indexes
Identity column
| Name | Seed | Increment | Not for replication | |
![]() |
BusinessEntityID | 1 | 1 | ![]() |
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 |
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 |
Objects that [Person].[BusinessEntity] depends on
| Object name | Object type | Dep level |
| [Person] | Schema | 1 |
Extended properties
| Name | Value |
| MS_Description | Source of the ID that connects vendors, customers, and employees with address and contact information. |
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 |
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 |
See also