Purchasing.ShipMethod Table

Information

NameShipMethod
SchemaPurchasing
Row Count0
Data Size 
Index Size 
Reserved Size 
Unused Size 
Created29.3.2010. 21:58:18
Modified29.3.2010. 21:58:55

Extended Properties

NameTypeProperty NameValue
ShipMethodTABLEMS_DescriptionShipping company lookup table.

Columns

PKKeyIdentityNameData TypeAllow NullsCollationReferencesDefaultComputedCompute Expression
   ShipMethodIDint   
 
 
 
   Namenvarchar(50) SQL_Latin1_General_CP1_CI_AS 
 
 
 
   ShipBasemoney   
((0.00))
 
 
   ShipRatemoney   
((0.00))
 
 
   rowguiduniqueidentifier   
(newid())
 
 
   ModifiedDatedatetime   
(getdate())
 
 

Indexes

NameTypePrimaryUniqueColumns
PK_ShipMethod_ShipMethodIDClustered  ShipMethodID
AK_ShipMethod_NameNonClustered  Name
AK_ShipMethod_rowguidNonClustered  rowguid

Check Constraints

NameColumnEnabledTrustedExpression
CK_ShipMethod_ShipBaseShipBase  ([ShipBase]>(0.00))
CK_ShipMethod_ShipRateShipRate  ([ShipRate]>(0.00))

SQL Script

CREATE TABLE [Purchasing].[ShipMethod] (
    [ShipMethodID] int NOT NULL IDENTITY,
    [Name] nvarchar(50) NOT NULL,
    [ShipBase] money NOT NULL DEFAULT ((0.00)),
    [ShipRate] money NOT NULL DEFAULT ((0.00)),
    [rowguid] uniqueidentifier NOT NULL DEFAULT (newid()),
    [ModifiedDate] datetime NOT NULL DEFAULT (getdate())
);
CREATE UNIQUE INDEX [AK_ShipMethod_Name] on [Purchasing].[ShipMethod]([Name]);
CREATE UNIQUE INDEX [AK_ShipMethod_rowguid] on [Purchasing].[ShipMethod]([rowguid]);