Table:
[AdventureWorks2016CTP3].[Sales].[OrderTracking]
Table properties
| Name | Value |
| Schema | [Sales] |
| Owner | [dbo] |
| Table is replicated | |
| Creation date | 16.11.2015 |
| ID | 1997250170 |
| Located on | PRIMARY |
| Data size KB | 35352 KB |
| Index size KB | 19056 KB |
| Rows | 188790 |
| ChangeTrackingEnabled | |
| FileStreamFileGroup | |
| FileStreamPartitionScheme | |
| LockEscalation | TABLE |
| TrackColumnsUpdatedEnabled | |
| Table is filetable | |
| Filetable directory | |
| Filetable collate | |
| Filetable primary key | [PK_OrderTracking] |
| 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 | ON |
Columns
| Name | Description | Data type | Max length | Nullable | Default | IsGUID | SPARSE | Computed value | |||
| | OrderTrackingID | int | 4 | |||||||
| SalesOrderID | int | 4 | |||||||||
| CarrierTrackingNumber | nvarchar | 25 | ![]() |
||||||||
| TrackingEventID | int | 4 | |||||||||
| EventDetails | nvarchar | 2000 | |||||||||
| EventDateTime | datetime2 | 8 |
Indexes
| Index | Description | Primary | Unique | Size KB | ||
| [PK_OrderTracking] | OrderTrackingID | ![]() |
![]() |
54408 | 0 | |
| [IX_OrderTracking_CarrierTrackingNumber] | CarrierTrackingNumber | 15408 | 0 | |||
| [IX_OrderTracking_SalesOrderID] | SalesOrderID | 3504 | 0 |
Columnstore indexes
Identity column
| Name | Seed | Increment | Not for replication | |
![]() |
OrderTrackingID | 1 | 1 |
Objects that depend on [Sales].[OrderTracking]
| Object name | Object type | Dep level |
| [dbo].[uspAddOrderTrackingEvent] | Procedure | 1 |
| [dbo].[uspGetOrderTrackingBySalesOrderID] | Procedure | 1 |
| [dbo].[uspGetOrderTrackingByTrackingNumber] | Procedure | 1 |
Objects that [Sales].[OrderTracking] depends on
| Object name | Object type | Dep level |
| [Sales] | Schema | 1 |
Extended properties
| Name | Value |
| MS_Description | Individual tracking events associated with a specific sales order. |
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 ON GO CREATE TABLE [Sales].[OrderTracking] ( [OrderTrackingID] [int] IDENTITY(1, 1) NOT NULL, [SalesOrderID] [int] NOT NULL, [CarrierTrackingNumber] [nvarchar](25) COLLATE SQL_Latin1_General_CP1_CI_AS NULL, [TrackingEventID] [int] NOT NULL, [EventDetails] [nvarchar](2000) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL, [EventDateTime] [datetime2](7) NOT NULL, CONSTRAINT [PK_OrderTracking] PRIMARY KEY CLUSTERED ([OrderTrackingID]) ON [PRIMARY] ) ON [PRIMARY] GO EXEC sp_addextendedproperty N'MS_Description', N'Primary key (clustered) constraint', 'SCHEMA', N'Sales', 'TABLE', N'OrderTracking', 'CONSTRAINT', N'PK_OrderTracking' GO CREATE NONCLUSTERED INDEX [IX_OrderTracking_CarrierTrackingNumber] ON [Sales].[OrderTracking] ([CarrierTrackingNumber]) ON [PRIMARY] GO CREATE NONCLUSTERED INDEX [IX_OrderTracking_SalesOrderID] ON [Sales].[OrderTracking] ([SalesOrderID]) ON [PRIMARY] GO EXEC sp_addextendedproperty N'MS_Description', N'Shipment tracking number supplied by the shipper.', 'SCHEMA', N'Sales', 'TABLE', N'OrderTracking', 'COLUMN', N'CarrierTrackingNumber' GO EXEC sp_addextendedproperty N'MS_Description', N'The date and time that a tracking event has occurred.', 'SCHEMA', N'Sales', 'TABLE', N'OrderTracking', 'COLUMN', N'EventDateTime' GO EXEC sp_addextendedproperty N'MS_Description', N'Details for a delivery tracking event.', 'SCHEMA', N'Sales', 'TABLE', N'OrderTracking', 'COLUMN', N'EventDetails' GO EXEC sp_addextendedproperty N'MS_Description', N'Primary key.', 'SCHEMA', N'Sales', 'TABLE', N'OrderTracking', 'COLUMN', N'OrderTrackingID' GO EXEC sp_addextendedproperty N'MS_Description', N'Sales order identification number. Foreign key to SalesOrderHeader.SalesOrderID.', 'SCHEMA', N'Sales', 'TABLE', N'OrderTracking', 'COLUMN', N'SalesOrderID' GO EXEC sp_addextendedproperty N'MS_Description', N'Tracking delivery event for Order shipped to customer. Foreign key to TrackingEvent.TrackingEventID.', 'SCHEMA', N'Sales', 'TABLE', N'OrderTracking', 'COLUMN', N'TrackingEventID' GO EXEC sp_addextendedproperty N'MS_Description', N'Individual tracking events associated with a specific sales order.', 'SCHEMA', N'Sales', 'TABLE', N'OrderTracking', NULL, NULL GO |
See also