Stored procedure using a recursive query to return all components or assemblies that directly or indirectly use the specified ProductID.
Creation Date | 27/10/2017 14:33 |
Encrypted | |
Ansi Nulls |
Parameter | Direction | Description | Data Type | Size |
---|---|---|---|---|
@StartProductID | In | Input parameter for the stored procedure uspGetWhereUsedProductID. Enter a valid ProductID from the Production.Product table. | Integer | 4 |
@CheckDate | In | Input parameter for the stored procedure uspGetWhereUsedProductID used to eliminate components not used after that date. Enter a valid date. | DBTimeStamp | 4 |
@RETURN_VALUE | Return Value | Integer | 4 |
Database Object | Object Type | Description | Dep Level | |
---|---|---|---|---|
Production.BillOfMaterials | Table | Items required to make bicycles and bicycle subassemblies. It identifies the heirarchical relationship between a parent product and its components. | 1 | |
dbo.Flag | User Defined Data Type | 2 | ||
Production.Product | Table | Products sold or used in the manfacturing of sold products. | 1 | |
Production.ProductCategory | Table | High-level product categorization. | 3 | |
Production.ProductModel | Table | Product model classification. | 2 | |
Production.ProductSubcategory | Table | Product subcategories. See ProductCategory table. | 2 | |
Production.UnitMeasure | Table | Unit of measure lookup table. | 2 |
|