Scalar function used by the Sales.Customer table to help set the account number.
Creation Date | 27/10/2017 14:33 |
Encrypted | |
Ansi Nulls |
Parameter | Direction | Description | Data Type | Size |
---|---|---|---|---|
@Value | In | Input parameter for the scalar function ufnLeadingZeros. Enter a valid integer. | Integer | 4 |
@RETURN_VALUE | Return Value | VarChar | 8 |
Database Object | Object Type | Description | Dep Level | |
---|---|---|---|---|
Sales.Customer | Table | Current customer information. Also see the Person and Store tables. | 1 | |
iduSalesOrderDetail | Trigger | AFTER INSERT, DELETE, UPDATE trigger that inserts a row in the TransactionHistory table, updates ModifiedDate in SalesOrderDetail and updates the SalesOrderHeader.SubTotal column. | 3 | |
Sales.SalesOrderDetail | Table | Individual products associated with a specific sales order. See SalesOrderHeader. | 2 | |
Sales.SalesOrderHeader | Table | General sales order information. | 2 | |
Sales.SalesOrderHeaderSalesReason | Table | Cross-reference table mapping sales orders to sales reason codes. | 3 | |
dbo.ufnGetContactInformation | User Defined Function | Table value function returning the first name, last name, job title and contact type for a given contact. | 2 | |
uSalesOrderHeader | Trigger | AFTER UPDATE trigger that updates the RevisionNumber and ModifiedDate columns in the SalesOrderHeader table.Updates the SalesYTD column in the SalesPerson and SalesTerritory tables. | 3 | |
Sales.vIndividualCustomer | View | Individual customers (names and addresses) that purchase Adventure Works Cycles products online. | 2 | |
Sales.vSalesPersonSalesByFiscalYears | View | Uses PIVOT to return aggregated sales information for each sales representative. | 3 |
|