Editing Purchasing.Vendor (table)
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 2: | Line 2: | ||
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
− | |- | + | |- |
| '''Table | | '''Table | ||
| Purchasing.Vendor | | Purchasing.Vendor | ||
− | |- | + | |- |
− | |||
− | |||
|} | |} | ||
− | + | ||
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
|- style="background:silver" | |- style="background:silver" | ||
Line 17: | Line 15: | ||
| '''Nullable | | '''Nullable | ||
| '''Default | | '''Default | ||
− | | ''' | + | | '''PK |
− | + | | '''Index | |
− | |- | + | |
+ | |- | ||
| VendorID | | VendorID | ||
| int | | int | ||
| not null | | not null | ||
| | | | ||
− | | | + | | PK_Vendor_VendorID |
− | |- | + | | |
+ | |- | ||
| AccountNumber | | AccountNumber | ||
| dbo.AccountNumber | | dbo.AccountNumber | ||
| not null | | not null | ||
| | | | ||
− | | | + | | |
− | |- | + | | AK_Vendor_AccountNumber |
+ | |- | ||
| Name | | Name | ||
| dbo.Name | | dbo.Name | ||
| not null | | not null | ||
| | | | ||
− | | | + | | |
− | |- | + | | |
+ | |- | ||
| CreditRating | | CreditRating | ||
| tinyint | | tinyint | ||
| not null | | not null | ||
| | | | ||
− | | | + | | |
− | |- | + | | |
+ | |- | ||
| PreferredVendorStatus | | PreferredVendorStatus | ||
| dbo.Flag | | dbo.Flag | ||
| not null | | not null | ||
| ((1)) | | ((1)) | ||
− | | | + | | |
− | |- | + | | |
+ | |- | ||
| ActiveFlag | | ActiveFlag | ||
| dbo.Flag | | dbo.Flag | ||
| not null | | not null | ||
| ((1)) | | ((1)) | ||
− | | | + | | |
− | |- | + | | |
+ | |- | ||
| PurchasingWebServiceURL | | PurchasingWebServiceURL | ||
| nvarchar(1024) | | nvarchar(1024) | ||
| null | | null | ||
| | | | ||
− | | | + | | |
− | |- | + | | |
+ | |- | ||
| ModifiedDate | | ModifiedDate | ||
| datetime | | datetime | ||
| not null | | not null | ||
| (getdate()) | | (getdate()) | ||
− | | | + | | |
+ | | | ||
|} | |} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
|- style="background:silver" | |- style="background:silver" | ||
Line 111: | Line 83: | ||
| '''Column | | '''Column | ||
| '''Referencing Column | | '''Referencing Column | ||
− | + | ||
− | |- | + | |- |
| [[Purchasing.ProductVendor_(table)|Purchasing.ProductVendor]] | | [[Purchasing.ProductVendor_(table)|Purchasing.ProductVendor]] | ||
| VendorID | | VendorID | ||
| VendorID | | VendorID | ||
− | |- | + | |- |
| [[Purchasing.PurchaseOrderHeader_(table)|Purchasing.PurchaseOrderHeader]] | | [[Purchasing.PurchaseOrderHeader_(table)|Purchasing.PurchaseOrderHeader]] | ||
| VendorID | | VendorID | ||
| VendorID | | VendorID | ||
− | |- | + | |- |
| [[Purchasing.VendorAddress_(table)|Purchasing.VendorAddress]] | | [[Purchasing.VendorAddress_(table)|Purchasing.VendorAddress]] | ||
| VendorID | | VendorID | ||
| VendorID | | VendorID | ||
− | |- | + | |- |
| [[Purchasing.VendorContact_(table)|Purchasing.VendorContact]] | | [[Purchasing.VendorContact_(table)|Purchasing.VendorContact]] | ||
| VendorID | | VendorID | ||
Line 130: | Line 102: | ||
|} | |} | ||
− | + | ||
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
|- style="background:silver" | |- style="background:silver" | ||
− | | ''' | + | | '''Triggers |
| '''Type | | '''Type | ||
− | + | ||
− | |- | + | |- |
| dVendor | | dVendor | ||
| INSTEAD OF DELETE | | INSTEAD OF DELETE | ||
|} | |} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== automatically generated == | == automatically generated == | ||
Line 262: | Line 119: | ||
| '''Table | | '''Table | ||
| Purchasing.Vendor | | Purchasing.Vendor | ||
− | |- | + | |- |
+ | |||
| '''Description | | '''Description | ||
| Companies from whom Adventure Works Cycles purchases parts or other goods. | | Companies from whom Adventure Works Cycles purchases parts or other goods. | ||
|- | |- | ||
+ | |||
|} | |} | ||
Line 275: | Line 134: | ||
| '''Nullable | | '''Nullable | ||
| '''Default | | '''Default | ||
− | | '''Description | + | | '''Description |
+ | | '''PK / Index | ||
− | |- | + | |- |
| VendorID | | VendorID | ||
| int | | int | ||
| not null | | not null | ||
| | | | ||
− | | Primary key for Vendor records. | + | | Primary key for Vendor records. |
− | |- | + | | PK_Vendor_VendorID |
+ | |- | ||
| AccountNumber | | AccountNumber | ||
| AccountNumber | | AccountNumber | ||
| not null | | not null | ||
| | | | ||
− | | Vendor account (identification) number. | + | | Vendor account (identification) number. |
− | |- | + | | AK_Vendor_AccountNumber |
+ | |- | ||
| Name | | Name | ||
| Name | | Name | ||
| not null | | not null | ||
| | | | ||
− | | Company name. | + | | Company name. |
− | |- | + | | |
+ | |- | ||
| CreditRating | | CreditRating | ||
| tinyint | | tinyint | ||
| 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 |
− | |- | + | | |
+ | |- | ||
| PreferredVendorStatus | | PreferredVendorStatus | ||
| Flag | | 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. | + | | 0 = Do not use if another vendor is available. 1 = Preferred over other vendors supplying the same product. |
− | |- | + | | |
+ | |- | ||
| ActiveFlag | | ActiveFlag | ||
| Flag | | Flag | ||
| 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. |
− | |- | + | | |
+ | |- | ||
| PurchasingWebServiceURL | | PurchasingWebServiceURL | ||
| nvarchar(1024) | | nvarchar(1024) | ||
| null | | null | ||
| | | | ||
− | | Vendor URL. | + | | Vendor URL. |
− | |- | + | | |
+ | |- | ||
| ModifiedDate | | ModifiedDate | ||
| datetime | | datetime | ||
| not null | | not null | ||
| (GETDATE()) | | (GETDATE()) | ||
− | | Date and time the record was last updated. | + | | Date and time the record was last updated. |
+ | | | ||
|} | |} | ||
Line 362: | Line 230: | ||
| dVendor | | dVendor | ||
| INSTEAD OF DELETE | | INSTEAD OF DELETE | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|} | |} |