dbo.uspLogError Stored Procedure
Description
Logs error information in the ErrorLog table about the error that caused execution to jump to the CATCH block of a TRY...CATCH construct. Should be executed from within the scope of a CATCH block otherwise it will return without inserting error information.
Properties
Creation Date | 17/07/2014 16:11 |
Encrypted | ![]() |
Ansi Nulls | ![]() |
Parameters
Parameter | Direction | Description | Data Type | Size |
---|---|---|---|---|
@ErrorLogID | Out | Output parameter for the stored procedure uspLogError. Contains the ErrorLogID value corresponding to the row inserted by uspLogError in the ErrorLog table. | Integer | 4 |
@RETURN_VALUE | Return Value | Integer | 4 |
Objects that depend on dbo.uspLogError
Database Object | Object Type | Description | Dep Level | |
---|---|---|---|---|
![]() | dVendor | Trigger | INSTEAD OF DELETE trigger which keeps Vendors from being deleted. | 2 |
![]() | 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. | 2 |
![]() | iPurchaseOrderDetail | Trigger | AFTER INSERT trigger that inserts a row in the TransactionHistory table and updates the PurchaseOrderHeader.SubTotal column. | 2 |
![]() | iWorkOrder | Trigger | AFTER INSERT trigger that inserts a row in the TransactionHistory table. | 2 |
![]() | Purchasing.ProductVendor | Table | Vendors are added to the table before any POs are processed. | 2 |
![]() | Purchasing.PurchaseOrderDetail | Table | Individual products associated with a specific purchase order. See PurchaseOrderHeader. | 1 |
![]() | Purchasing.PurchaseOrderHeader | Table | General purchase order information. See PurchaseOrderDetail. | 1 |
![]() | Sales.SalesOrderDetail | Table | Individual products associated with a specific sales order. See SalesOrderHeader. | 1 |
![]() | Sales.SalesOrderHeader | Table | General sales order information. | 1 |
![]() | Sales.SalesOrderHeaderSalesReason | Table | Cross-reference table mapping sales orders to sales reason codes. | 2 |
![]() | dbo.ufnGetContactInformation | User Defined Function | Table value function returning the first name, last name, job title and contact type for a given contact. | 2 |
![]() | uPurchaseOrderDetail | Trigger | AFTER UPDATE trigger that inserts a row in the TransactionHistory table, updates ModifiedDate in PurchaseOrderDetail and updates the PurchaseOrderHeader.SubTotal column. | 2 |
![]() | uPurchaseOrderHeader | Trigger | AFTER UPDATE trigger that updates the RevisionNumber and ModifiedDate columns in the PurchaseOrderHeader table. | 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. | 2 |
![]() | HumanResources.uspUpdateEmployeeHireInfo | Stored Procedure | Updates the Employee table and inserts a new row in the EmployeePayHistory table with the values specified in the input parameters. | 1 |
![]() | HumanResources.uspUpdateEmployeeLogin | Stored Procedure | Updates the Employee table with the values specified in the input parameters for the given BusinessEntityID. | 1 |
![]() | HumanResources.uspUpdateEmployeePersonalInfo | Stored Procedure | Updates the Employee table with the values specified in the input parameters for the given EmployeeID. | 1 |
![]() | uWorkOrder | Trigger | AFTER UPDATE trigger that inserts a row in the TransactionHistory table, updates ModifiedDate in the WorkOrder table. | 2 |
![]() | Purchasing.Vendor | Table | Companies from whom Adventure Works Cycles purchases parts or other goods. | 1 |
![]() | Sales.vSalesPersonSalesByFiscalYears | View | Uses PIVOT to return aggregated sales information for each sales representative. | 2 |
![]() | Purchasing.vVendorWithAddresses | View | Vendor (company) names and addresses . | 2 |
![]() | Purchasing.vVendorWithContacts | View | Vendor (company) names and the names of vendor employees to contact. | 2 |
![]() | Production.WorkOrder | Table | Manufacturing work orders. | 1 |
![]() | Production.WorkOrderRouting | Table | Work order details. | 2 |
Objects that dbo.uspLogError depends on
Database Object | Object Type | Description | Dep Level | |
---|---|---|---|---|
![]() | dbo.ErrorLog | Table | Audit table tracking errors in the the AdventureWorks database that are caught by the CATCH block of a TRY...CATCH construct. Data is inserted by stored procedure dbo.uspLogError when it is executed from inside the CATCH block of a TRY...CATCH construct. | 1 |
![]() | dbo.uspPrintError | Stored Procedure | Prints error information about the error that caused execution to jump to the CATCH block of a TRY...CATCH construct. Should be executed from within the scope of a CATCH block otherwise it will return without printing any error information. | 1 |
Procedure Source Code
|
See Also