Difference between revisions of "Purchasing.Vendor (table)"
Line 5: | Line 5: | ||
| '''Table | | '''Table | ||
| Purchasing.Vendor | | Purchasing.Vendor | ||
+ | |- valign="top" | ||
+ | | '''Description | ||
+ | | Companies from whom Adventure Works Cycles purchases parts or other goods. | ||
|- | |- | ||
|} | |} | ||
Line 15: | Line 18: | ||
| '''Nullable | | '''Nullable | ||
| '''Default | | '''Default | ||
− | | '''PK | + | | '''Description / PK / Index |
− | |||
− | |- | + | |- valign="top" |
| VendorID | | VendorID | ||
| int | | int | ||
| not null | | not null | ||
| | | | ||
− | | PK_Vendor_VendorID | + | | Primary key for Vendor records.<br />PK_Vendor_VendorID |
− | + | |- valign="top" | |
− | |- | ||
| AccountNumber | | AccountNumber | ||
| dbo.AccountNumber | | dbo.AccountNumber | ||
| not null | | not null | ||
| | | | ||
− | | | + | | Vendor account (identification) number.<br />AK_Vendor_AccountNumber |
− | + | |- valign="top" | |
− | |- | ||
| Name | | Name | ||
| dbo.Name | | dbo.Name | ||
| not null | | not null | ||
| | | | ||
− | | | + | | Company name.<br /> |
− | + | |- valign="top" | |
− | |- | ||
| CreditRating | | CreditRating | ||
| tinyint | | tinyint | ||
| not null | | not null | ||
| | | | ||
− | | | + | | 1 = Superior, 2 = Excellent, 3 = Above average, 4 = Average, 5 = Below average<br /> |
− | + | |- valign="top" | |
− | |- | ||
| PreferredVendorStatus | | PreferredVendorStatus | ||
| dbo.Flag | | dbo.Flag | ||
| not null | | not null | ||
| ((1)) | | ((1)) | ||
− | | | + | | 0 = Do not use if another vendor is available. 1 = Preferred over other vendors supplying the same product.<br /> |
− | + | |- valign="top" | |
− | |- | ||
| ActiveFlag | | ActiveFlag | ||
| dbo.Flag | | dbo.Flag | ||
| not null | | not null | ||
| ((1)) | | ((1)) | ||
− | | | + | | 0 = Vendor no longer used. 1 = Vendor is actively used.<br /> |
− | + | |- valign="top" | |
− | |- | ||
| PurchasingWebServiceURL | | PurchasingWebServiceURL | ||
| nvarchar(1024) | | nvarchar(1024) | ||
| null | | null | ||
| | | | ||
− | | | + | | Vendor URL.<br /> |
− | + | |- valign="top" | |
− | |- | ||
| ModifiedDate | | ModifiedDate | ||
| datetime | | datetime | ||
| not null | | not null | ||
| (getdate()) | | (getdate()) | ||
− | | | + | | Date and time the record was last updated.<br /> |
− | |||
|} | |} | ||
Line 112: | Line 106: | ||
| INSTEAD OF DELETE | | INSTEAD OF DELETE | ||
|} | |} | ||
+ | |||
+ | |||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- style="background:silver" | ||
+ | | '''Dependency Type | ||
+ | | '''Object Type | ||
+ | | '''Referenced Object | ||
+ | |||
+ | | '''Child Type | ||
+ | | '''Child Object | ||
+ | |||
+ | |- | ||
+ | | Data Type | ||
+ | | Type | ||
+ | | [[dbo.AccountNumber_(type)|dbo.AccountNumber]] | ||
+ | |||
+ | | | ||
+ | | | ||
+ | |- | ||
+ | | Data Type | ||
+ | | Type | ||
+ | | [[dbo.Flag_(type)|dbo.Flag]] | ||
+ | |||
+ | | | ||
+ | | | ||
+ | |- | ||
+ | | Data Type | ||
+ | | Type | ||
+ | | [[dbo.Name_(type)|dbo.Name]] | ||
+ | |||
+ | | | ||
+ | | | ||
+ | |- | ||
+ | | Execute | ||
+ | | Procedure | ||
+ | | [[dbo.uspLogError_(procedure)|dbo.uspLogError]] | ||
+ | |||
+ | | Trigger | ||
+ | | dVendor | ||
+ | |- | ||
+ | | Execute | ||
+ | | Procedure | ||
+ | | [[dbo.uspPrintError_(procedure)|dbo.uspPrintError]] | ||
+ | |||
+ | | Trigger | ||
+ | | dVendor | ||
+ | |} | ||
+ | |||
+ | |||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- style="background:silver" | ||
+ | | '''Reference Type | ||
+ | | '''Object Type | ||
+ | | '''Referencing Object | ||
+ | |||
+ | |- | ||
+ | | Select | ||
+ | | View | ||
+ | | [[Purchasing.vVendor_(view)|Purchasing.vVendor]] | ||
+ | |||
+ | |} | ||
+ | |||
+ | |||
+ | |||
== automatically generated == | == automatically generated == | ||
Revision as of 22:55, 28 December 2009
wikibot
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 | dbo.AccountNumber | not null | Vendor account (identification) number. AK_Vendor_AccountNumber | |
Name | dbo.Name | not null | Company name. | |
CreditRating | tinyint | not null | 1 = Superior, 2 = Excellent, 3 = Above average, 4 = Average, 5 = Below average | |
PreferredVendorStatus | dbo.Flag | not null | ((1)) | 0 = Do not use if another vendor is available. 1 = Preferred over other vendors supplying the same product. |
ActiveFlag | dbo.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 |
Dependency Type | Object Type | Referenced Object | Child Type | Child Object |
Data Type | Type | dbo.AccountNumber | ||
Data Type | Type | dbo.Flag | ||
Data Type | Type | dbo.Name | ||
Execute | Procedure | dbo.uspLogError | Trigger | dVendor |
Execute | Procedure | dbo.uspPrintError | Trigger | dVendor |
Reference Type | Object Type | Referencing Object |
Select | View | Purchasing.vVendor |
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 |
Dependency Type | Object Type | Referenced Object | Child Type | Child Object |
Data Type | Type | dbo.AccountNumber | ||
Data Type | Type | dbo.Flag | ||
Data Type | Type | dbo.Name | ||
Schema | Schema | Purchasing | ||
Execute | Procedure | dbo.uspLogError | Trigger | dVendor |
Execute | Procedure | dbo.uspPrintError | Trigger | dVendor |
Reference Type | Object Type | Referencing Object |
Select | View | Purchasing.vVendor |