Purchasing.PurchaseOrderHeader Table

Information

NamePurchaseOrderHeader
SchemaPurchasing
Row Count4000
Data Size336 KB
Index Size144 KB
Reserved Size528 KB
Unused Size48 KB
Created14.10.2005 1:58:35
Modified14.10.2005 1:59:55

Extended Properties

NameTypeProperty NameValue
PurchaseOrderHeaderTABLEMS_DescriptionGeneral purchase order information. See PurchaseOrderDetail.

Columns

PKKeyIdentityNameData TypeAllow NullsCollationReferencesDefaultComputedCompute Expression
   PurchaseOrderIDint   
 
 
 
   RevisionNumbertinyint   
((0))
 
 
   Statustinyint   
((1))
 
 
   EmployeeIDint  HumanResources.Employee.EmployeeID
 
 
 
   VendorIDint  Purchasing.Vendor.VendorID
 
 
 
   ShipMethodIDint  Purchasing.ShipMethod.ShipMethodID
 
 
 
   OrderDatedatetime   
(getdate())
 
 
   ShipDatedatetime   
 
 
 
   SubTotalmoney   
((0.00))
 
 
   TaxAmtmoney   
((0.00))
 
 
   Freightmoney   
((0.00))
 
 
   TotalDuemoney   
 
 
(isnull(([SubTotal]+[TaxAmt])+[Freight],(0)))
   ModifiedDatedatetime   
(getdate())
 
 

Indexes

NameTypePrimaryUniqueColumns
PK_PurchaseOrderHeader_PurchaseOrderIDClustered  PurchaseOrderID
IX_PurchaseOrderHeader_VendorIDNonClustered  VendorID
IX_PurchaseOrderHeader_EmployeeIDNonClustered  EmployeeID

Check Constraints

NameColumnEnabledTrustedExpression
CK_PurchaseOrderHeader_ShipDate   ([ShipDate]>=[OrderDate] OR [ShipDate] IS NULL)
CK_PurchaseOrderHeader_StatusStatus  ([Status]>=(1) AND [Status]<=(4))
CK_PurchaseOrderHeader_SubTotalSubTotal  ([SubTotal]>=(0.00))
CK_PurchaseOrderHeader_TaxAmtTaxAmt  ([TaxAmt]>=(0.00))
CK_PurchaseOrderHeader_FreightFreight  ([Freight]>=(0.00))

Foreign Key Constraints

NameTypeReferenced Table
FK_PurchaseOrderHeader_Employee_EmployeeIDForeign keyHumanResources.Employee
FK_PurchaseOrderHeader_ShipMethod_ShipMethodIDForeign keyPurchasing.ShipMethod
FK_PurchaseOrderHeader_Vendor_VendorIDForeign keyPurchasing.Vendor

Triggers

NameActivates onInstead OfFor ReplicationEnabledCreatedModified
Purchasing.uPurchaseOrderHeaderUPDATE   14.10.2005 1:59:5514.10.2005 1:59:55