Table: [AdventureWorks2016CTP3].[Purchasing].[ShipMethod]

CollapseAll image

Collapse image Table properties


Name  Value 
 Schema  [Purchasing]
 Owner  [dbo]
 Table is replicated   
 Creation date  23.10.2015
 ID  398624463
 Located on  PRIMARY
 Data size KB  8 KB
 Index size KB  40 KB
 Rows  5
 ChangeTrackingEnabled   
 FileStreamFileGroup   
 FileStreamPartitionScheme   
 LockEscalation  TABLE
 TrackColumnsUpdatedEnabled   
 Table is filetable   
 Filetable directory   
 Filetable collate   
 Filetable primary key  [PK_ShipMethod_ShipMethodID]
 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 ShipMethodID     int 4        
    Name     [dbo].[Name] 50        
    ShipBase     money 8   ((0.00))    
    ShipRate     money 8   ((0.00))    
    rowguid     uniqueidentifier 16   (newid())  
    ModifiedDate     datetime 8   (getdate())    
Total: 6 column(s)

Collapse image Indexes


Index  Description  Primary  Unique  Size KB 
[PK_ShipMethod_ShipMethodID] ShipMethodID   48 0
[AK_ShipMethod_Name] Name     16 0
[AK_ShipMethod_rowguid] rowguid     16 0
Total: 3 Index/indexes

Collapse image Columnstore indexes


No columnstore indexes exist

Collapse image Check constraints


Name  Expression 
CK_ShipMethod_ShipBase ([ShipBase]>(0.00))
CK_ShipMethod_ShipRate ([ShipRate]>(0.00))

Collapse image Identity column


  Name  Seed  Increment  Not for replication 
 ShipMethodID   1   1   

Collapse image Referencing tables


Table  Foreign key  Primary key or unique constraint 
[Purchasing].[PurchaseOrderHeader] FK_PurchaseOrderHeader_ShipMethod_ShipMethodID PK_ShipMethod_ShipMethodID
[Sales].[SalesOrderHeader] FK_SalesOrderHeader_ShipMethod_ShipMethodID PK_ShipMethod_ShipMethodID
Total: 2 table(s)

Collapse image Objects that depend on [Purchasing].[ShipMethod]


Object name Object type Dep level
[Purchasing].[PurchaseOrderHeader] Table 1
[Sales].[SalesOrderHeader] Table 1
Total 2 object(s)

Collapse image Objects that [Purchasing].[ShipMethod] depends on


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

Collapse image Extended properties


Name  Value 
MS_Description Shipping company lookup 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 [Purchasing].[ShipMethod] (
        [ShipMethodID]     [int] IDENTITY(1, 1) NOT NULL,
        [Name]             [dbo].[Name] NOT NULL,
        [ShipBase]         [money] NOT NULL,
        [ShipRate]         [money] NOT NULL,
        [rowguid]          [uniqueidentifier] NOT NULL ROWGUIDCOL,
        [ModifiedDate]     [datetime] NOT NULL,
        CONSTRAINT [PK_ShipMethod_ShipMethodID]
        PRIMARY KEY
        CLUSTERED
        ([ShipMethodID])
    ON [PRIMARY]
) ON [PRIMARY]
GO
EXEC sp_addextendedproperty N'MS_Description', N'Primary key (clustered) constraint', 'SCHEMA', N'Purchasing', 'TABLE', N'ShipMethod', 'CONSTRAINT', N'PK_ShipMethod_ShipMethodID'
GO
EXEC sp_addextendedproperty N'MS_Description', N'Clustered index created by a primary key constraint.', 'SCHEMA', N'Purchasing', 'TABLE', N'ShipMethod', 'INDEX', N'PK_ShipMethod_ShipMethodID'
GO
ALTER TABLE [Purchasing].[ShipMethod]
    ADD
    CONSTRAINT [CK_ShipMethod_ShipBase]
    CHECK
    ([ShipBase]>(0.00))
GO
EXEC sp_addextendedproperty N'MS_Description', N'Check constraint [ShipBase] > (0.00)', 'SCHEMA', N'Purchasing', 'TABLE', N'ShipMethod', 'CONSTRAINT', N'CK_ShipMethod_ShipBase'
GO
ALTER TABLE [Purchasing].[ShipMethod]
CHECK CONSTRAINT [CK_ShipMethod_ShipBase]
GO
ALTER TABLE [Purchasing].[ShipMethod]
    ADD
    CONSTRAINT [CK_ShipMethod_ShipRate]
    CHECK
    ([ShipRate]>(0.00))
GO
EXEC sp_addextendedproperty N'MS_Description', N'Check constraint [ShipRate] > (0.00)', 'SCHEMA', N'Purchasing', 'TABLE', N'ShipMethod', 'CONSTRAINT', N'CK_ShipMethod_ShipRate'
GO
ALTER TABLE [Purchasing].[ShipMethod]
CHECK CONSTRAINT [CK_ShipMethod_ShipRate]
GO
ALTER TABLE [Purchasing].[ShipMethod]
    ADD
    CONSTRAINT [DF_ShipMethod_ModifiedDate]
    DEFAULT (getdate()) FOR [ModifiedDate]
GO
EXEC sp_addextendedproperty N'MS_Description', N'Default constraint value of GETDATE()', 'SCHEMA', N'Purchasing', 'TABLE', N'ShipMethod', 'CONSTRAINT', N'DF_ShipMethod_ModifiedDate'
GO
ALTER TABLE [Purchasing].[ShipMethod]
    ADD
    CONSTRAINT [DF_ShipMethod_rowguid]
    DEFAULT (newid()) FOR [rowguid]
GO
EXEC sp_addextendedproperty N'MS_Description', N'Default constraint value of NEWID()', 'SCHEMA', N'Purchasing', 'TABLE', N'ShipMethod', 'CONSTRAINT', N'DF_ShipMethod_rowguid'
GO
ALTER TABLE [Purchasing].[ShipMethod]
    ADD
    CONSTRAINT [DF_ShipMethod_ShipBase]
    DEFAULT ((0.00)) FOR [ShipBase]
GO
EXEC sp_addextendedproperty N'MS_Description', N'Default constraint value of 0.0', 'SCHEMA', N'Purchasing', 'TABLE', N'ShipMethod', 'CONSTRAINT', N'DF_ShipMethod_ShipBase'
GO
ALTER TABLE [Purchasing].[ShipMethod]
    ADD
    CONSTRAINT [DF_ShipMethod_ShipRate]
    DEFAULT ((0.00)) FOR [ShipRate]
GO
EXEC sp_addextendedproperty N'MS_Description', N'Default constraint value of 0.0', 'SCHEMA', N'Purchasing', 'TABLE', N'ShipMethod', 'CONSTRAINT', N'DF_ShipMethod_ShipRate'
GO
CREATE UNIQUE NONCLUSTERED INDEX [AK_ShipMethod_Name]
    ON [Purchasing].[ShipMethod] ([Name])
    ON [PRIMARY]
GO
EXEC sp_addextendedproperty N'MS_Description', N'Unique nonclustered index.', 'SCHEMA', N'Purchasing', 'TABLE', N'ShipMethod', 'INDEX', N'AK_ShipMethod_Name'
GO
CREATE UNIQUE NONCLUSTERED INDEX [AK_ShipMethod_rowguid]
    ON [Purchasing].[ShipMethod] ([rowguid])
    ON [PRIMARY]
GO
EXEC sp_addextendedproperty N'MS_Description', N'Unique nonclustered index. Used to support replication samples.', 'SCHEMA', N'Purchasing', 'TABLE', N'ShipMethod', 'INDEX', N'AK_ShipMethod_rowguid'
GO
EXEC sp_addextendedproperty N'MS_Description', N'Date and time the record was last updated.', 'SCHEMA', N'Purchasing', 'TABLE', N'ShipMethod', 'COLUMN', N'ModifiedDate'
GO
EXEC sp_addextendedproperty N'MS_Description', N'Shipping company name.', 'SCHEMA', N'Purchasing', 'TABLE', N'ShipMethod', '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'Purchasing', 'TABLE', N'ShipMethod', 'COLUMN', N'rowguid'
GO
EXEC sp_addextendedproperty N'MS_Description', N'Minimum shipping charge.', 'SCHEMA', N'Purchasing', 'TABLE', N'ShipMethod', 'COLUMN', N'ShipBase'
GO
EXEC sp_addextendedproperty N'MS_Description', N'Primary key for ShipMethod records.', 'SCHEMA', N'Purchasing', 'TABLE', N'ShipMethod', 'COLUMN', N'ShipMethodID'
GO
EXEC sp_addextendedproperty N'MS_Description', N'Shipping charge per pound.', 'SCHEMA', N'Purchasing', 'TABLE', N'ShipMethod', 'COLUMN', N'ShipRate'
GO
EXEC sp_addextendedproperty N'MS_Description', N'Shipping company lookup table.', 'SCHEMA', N'Purchasing', 'TABLE', N'ShipMethod', NULL, NULL
GO

Collapse image See also


List of tables