Difference between revisions of "Purchasing.Vendor (table)"

From dbscript Online Help
Jump to: navigation, search
Line 118: Line 118:
 
| '''Table
 
| '''Table
 
| Purchasing.Vendor
 
| Purchasing.Vendor
|-
+
|- valign="top"
  
 
| '''Description
 
| '''Description
Line 140: Line 140:
 
| not null
 
| not null
 
|  
 
|  
| Primary key for Vendor records.PK_Vendor_VendorID
+
| Primary key for Vendor records.<br />PK_Vendor_VendorID
 
|- valign="top"
 
|- valign="top"
 
| AccountNumber
 
| AccountNumber
Line 146: Line 146:
 
| not null
 
| not null
 
|  
 
|  
| Vendor account (identification) number.AK_Vendor_AccountNumber
+
| Vendor account (identification) number.<br />AK_Vendor_AccountNumber
 
|- valign="top"
 
|- valign="top"
 
| Name
 
| Name
Line 152: Line 152:
 
| not null
 
| not null
 
|  
 
|  
| Company name.
+
| Company name.<br />
 
|- valign="top"
 
|- valign="top"
 
| CreditRating
 
| CreditRating
Line 158: Line 158:
 
| not null
 
| not null
 
|  
 
|  
| 1 = Superior, 2 = Excellent, 3 = Above average, 4 = Average, 5 = Below average
+
| 1 = Superior, 2 = Excellent, 3 = Above average, 4 = Average, 5 = Below average<br />
 
|- valign="top"
 
|- valign="top"
 
| PreferredVendorStatus
 
| PreferredVendorStatus
Line 164: Line 164:
 
| not null
 
| not null
 
| (1)
 
| (1)
| 0 = Do not use if another vendor is available. 1 = Preferred over other vendors supplying the same product.
+
| 0 = Do not use if another vendor is available. 1 = Preferred over other vendors supplying the same product.<br />
 
|- valign="top"
 
|- valign="top"
 
| ActiveFlag
 
| ActiveFlag
Line 170: Line 170:
 
| not null
 
| not null
 
| (1)
 
| (1)
| 0 = Vendor no longer used. 1 = Vendor is actively used.
+
| 0 = Vendor no longer used. 1 = Vendor is actively used.<br />
 
|- valign="top"
 
|- valign="top"
 
| PurchasingWebServiceURL
 
| PurchasingWebServiceURL
Line 176: Line 176:
 
| null
 
| null
 
|  
 
|  
| Vendor URL.
+
| Vendor URL.<br />
 
|- valign="top"
 
|- valign="top"
 
| ModifiedDate
 
| ModifiedDate
Line 182: Line 182:
 
| not null
 
| not null
 
| (GETDATE())
 
| (GETDATE())
| Date and time the record was last updated.
+
| Date and time the record was last updated.<br />
 
|}
 
|}
  

Revision as of 00:11, 27 November 2009

wikibot

Table Purchasing.Vendor


Column Data Type Nullable Default PK Index
VendorID int not null PK_Vendor_VendorID
AccountNumber dbo.AccountNumber not null AK_Vendor_AccountNumber
Name dbo.Name not null
CreditRating tinyint not null
PreferredVendorStatus dbo.Flag not null ((1))
ActiveFlag dbo.Flag not null ((1))
PurchasingWebServiceURL nvarchar(1024) null
ModifiedDate datetime not null (getdate())


Detail Table Column Referencing Column
Purchasing.ProductVendor VendorID VendorID
Purchasing.PurchaseOrderHeader VendorID VendorID
Purchasing.VendorAddress VendorID VendorID
Purchasing.VendorContact VendorID VendorID


Triggers Type
dVendor INSTEAD OF DELETE

automatically generated

Table Purchasing.Vendor
Description Companies from whom Adventure Works Cycles purchases parts or other goods.


Column Data Type Nullable Default Description / PK / Index
VendorID int not null Primary key for Vendor records.
PK_Vendor_VendorID
AccountNumber AccountNumber not null Vendor account (identification) number.
AK_Vendor_AccountNumber
Name Name not null Company name.
CreditRating tinyint not null 1 = Superior, 2 = Excellent, 3 = Above average, 4 = Average, 5 = Below average
PreferredVendorStatus Flag not null (1) 0 = Do not use if another vendor is available. 1 = Preferred over other vendors supplying the same product.
ActiveFlag Flag not null (1) 0 = Vendor no longer used. 1 = Vendor is actively used.
PurchasingWebServiceURL nvarchar(1024) null Vendor URL.
ModifiedDate datetime not null (GETDATE()) Date and time the record was last updated.


Detail Table Column Referencing Column
Purchasing.ProductVendor VendorID VendorID
Purchasing.PurchaseOrderHeader VendorID VendorID
Purchasing.VendorAddress VendorID VendorID
Purchasing.VendorContact VendorID VendorID


Triggers Type
dVendor INSTEAD OF DELETE


Referenced Object Object Type Dependency Type
dbo.AccountNumber Type Data Type
dbo.Flag Type Data Type
dbo.Name Type Data Type
dbo.uspLogError Procedure Execute
dbo.uspPrintError Procedure Execute


Referencing Object Object Type Reference Type
Purchasing.vVendor View Select