Difference between revisions of "Purchasing.Vendor (table)"
Line 112: | Line 112: | ||
| INSTEAD OF DELETE | | INSTEAD OF DELETE | ||
|} | |} | ||
− | |||
== automatically generated == | == automatically generated == | ||
Line 134: | Line 133: | ||
| '''Nullable | | '''Nullable | ||
| '''Default | | '''Default | ||
− | | '''Description | + | | '''Description / PK / Index |
− | |||
− | |- | + | |- valign="top" |
| VendorID | | VendorID | ||
| int | | int | ||
| not null | | not null | ||
| | | | ||
− | | Primary key for Vendor records. | + | | Primary key for Vendor records.PK_Vendor_VendorID |
− | + | |- valign="top" | |
− | |- | ||
| AccountNumber | | AccountNumber | ||
| AccountNumber | | AccountNumber | ||
| not null | | not null | ||
| | | | ||
− | | Vendor account (identification) number. | + | | Vendor account (identification) number.AK_Vendor_AccountNumber |
− | + | |- valign="top" | |
− | |- | ||
| Name | | Name | ||
| Name | | Name | ||
Line 157: | Line 153: | ||
| | | | ||
| Company name. | | Company name. | ||
− | + | |- valign="top" | |
− | |- | ||
| CreditRating | | CreditRating | ||
| tinyint | | tinyint | ||
Line 164: | Line 159: | ||
| | | | ||
| 1 = Superior, 2 = Excellent, 3 = Above average, 4 = Average, 5 = Below average | | 1 = Superior, 2 = Excellent, 3 = Above average, 4 = Average, 5 = Below average | ||
− | + | |- valign="top" | |
− | |- | ||
| PreferredVendorStatus | | PreferredVendorStatus | ||
| Flag | | Flag | ||
Line 171: | Line 165: | ||
| (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. | ||
− | + | |- valign="top" | |
− | |- | ||
| ActiveFlag | | ActiveFlag | ||
| Flag | | Flag | ||
Line 178: | Line 171: | ||
| (1) | | (1) | ||
| 0 = Vendor no longer used. 1 = Vendor is actively used. | | 0 = Vendor no longer used. 1 = Vendor is actively used. | ||
− | + | |- valign="top" | |
− | |- | ||
| PurchasingWebServiceURL | | PurchasingWebServiceURL | ||
| nvarchar(1024) | | nvarchar(1024) | ||
Line 185: | Line 177: | ||
| | | | ||
| Vendor URL. | | Vendor URL. | ||
− | + | |- valign="top" | |
− | |- | ||
| ModifiedDate | | ModifiedDate | ||
| datetime | | datetime | ||
Line 192: | Line 183: | ||
| (GETDATE()) | | (GETDATE()) | ||
| Date and time the record was last updated. | | Date and time the record was last updated. | ||
− | |||
|} | |} | ||
Line 230: | Line 220: | ||
| dVendor | | dVendor | ||
| INSTEAD OF DELETE | | INSTEAD OF DELETE | ||
+ | |} | ||
+ | |||
+ | |||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- style="background:silver" | ||
+ | | '''Referenced Object | ||
+ | | '''Object Type | ||
+ | | '''Dependency Type | ||
+ | |||
+ | |- | ||
+ | | [[dbo.AccountNumber_(type)|dbo.AccountNumber]] | ||
+ | | Type | ||
+ | | Data Type | ||
+ | |- | ||
+ | | [[dbo.Flag_(type)|dbo.Flag]] | ||
+ | | Type | ||
+ | | Data Type | ||
+ | |- | ||
+ | | [[dbo.Name_(type)|dbo.Name]] | ||
+ | | Type | ||
+ | | Data Type | ||
+ | |- | ||
+ | | [[dbo.uspLogError_(procedure)|dbo.uspLogError]] | ||
+ | | Procedure | ||
+ | | Execute | ||
+ | |- | ||
+ | | [[dbo.uspPrintError_(procedure)|dbo.uspPrintError]] | ||
+ | | Procedure | ||
+ | | Execute | ||
+ | |} | ||
+ | |||
+ | |||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- style="background:silver" | ||
+ | | '''Referencing Object | ||
+ | | '''Object Type | ||
+ | | '''Reference Type | ||
+ | |||
+ | |- | ||
+ | | [[Purchasing.vVendor_(view)|Purchasing.vVendor]] | ||
+ | | View | ||
+ | | Select | ||
|} | |} |
Revision as of 23:58, 26 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 |