Difference between revisions of "Dbo.uspPrintError (procedure)"
Line 33: | Line 33: | ||
| '''procedure | | '''procedure | ||
| dbo.uspPrintError | | dbo.uspPrintError | ||
− | |- | + | |- valign="top" |
| '''Description | | '''Description | ||
Line 68: | Line 68: | ||
| '''Object Type | | '''Object Type | ||
| '''Reference Type | | '''Reference Type | ||
− | + | ||
|- | |- | ||
| [[dbo.uspLogError_(procedure)|dbo.uspLogError]] | | [[dbo.uspLogError_(procedure)|dbo.uspLogError]] | ||
Line 77: | Line 77: | ||
| Table | | Table | ||
| Execute | | Execute | ||
+ | | Trigger | ||
+ | | iWorkOrder | ||
|- | |- | ||
| [[Production.WorkOrder_(table)|Production.WorkOrder]] | | [[Production.WorkOrder_(table)|Production.WorkOrder]] | ||
| Table | | Table | ||
| Execute | | Execute | ||
+ | | Trigger | ||
+ | | uWorkOrder | ||
|- | |- | ||
| [[Purchasing.PurchaseOrderDetail_(table)|Purchasing.PurchaseOrderDetail]] | | [[Purchasing.PurchaseOrderDetail_(table)|Purchasing.PurchaseOrderDetail]] | ||
| Table | | Table | ||
| Execute | | Execute | ||
+ | | Trigger | ||
+ | | iPurchaseOrderDetail | ||
|- | |- | ||
| [[Purchasing.PurchaseOrderDetail_(table)|Purchasing.PurchaseOrderDetail]] | | [[Purchasing.PurchaseOrderDetail_(table)|Purchasing.PurchaseOrderDetail]] | ||
| Table | | Table | ||
| Execute | | Execute | ||
+ | | Trigger | ||
+ | | uPurchaseOrderDetail | ||
|- | |- | ||
| [[Purchasing.PurchaseOrderHeader_(table)|Purchasing.PurchaseOrderHeader]] | | [[Purchasing.PurchaseOrderHeader_(table)|Purchasing.PurchaseOrderHeader]] | ||
| Table | | Table | ||
| Execute | | Execute | ||
+ | | Trigger | ||
+ | | uPurchaseOrderHeader | ||
|- | |- | ||
| [[Purchasing.Vendor_(table)|Purchasing.Vendor]] | | [[Purchasing.Vendor_(table)|Purchasing.Vendor]] | ||
| Table | | Table | ||
| Execute | | Execute | ||
+ | | Trigger | ||
+ | | dVendor | ||
|- | |- | ||
| [[Sales.SalesOrderDetail_(table)|Sales.SalesOrderDetail]] | | [[Sales.SalesOrderDetail_(table)|Sales.SalesOrderDetail]] | ||
| Table | | Table | ||
| Execute | | Execute | ||
+ | | Trigger | ||
+ | | iduSalesOrderDetail | ||
|- | |- | ||
| [[Sales.SalesOrderHeader_(table)|Sales.SalesOrderHeader]] | | [[Sales.SalesOrderHeader_(table)|Sales.SalesOrderHeader]] | ||
| Table | | Table | ||
| Execute | | Execute | ||
+ | | Trigger | ||
+ | | uSalesOrderHeader | ||
|- | |- | ||
| [[Sales.Store_(table)|Sales.Store]] | | [[Sales.Store_(table)|Sales.Store]] | ||
| Table | | Table | ||
| Execute | | Execute | ||
+ | | Trigger | ||
+ | | iStore | ||
|} | |} |
Revision as of 07:26, 30 November 2009
wikibot
procedure | dbo.uspPrintError |
-- uspPrintError 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. CREATE PROCEDURE [dbo].[uspPrintError] AS BEGIN SET NOCOUNT ON; -- Print error information. PRINT 'Error ' + CONVERT(varchar(50), ERROR_NUMBER()) + ', Severity ' + CONVERT(varchar(5), ERROR_SEVERITY()) + ', State ' + CONVERT(varchar(5), ERROR_STATE()) + ', Procedure ' + ISNULL(ERROR_PROCEDURE(), '-') + ', Line ' + CONVERT(varchar(5), ERROR_LINE()); PRINT ERROR_MESSAGE(); END;
automatically generated
procedure | dbo.uspPrintError |
Description | 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. |
-- uspPrintError 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. CREATE PROCEDURE [dbo].[uspPrintError] AS BEGIN SET NOCOUNT ON; -- Print error information. PRINT 'Error ' + CONVERT(varchar(50), ERROR_NUMBER()) + ', Severity ' + CONVERT(varchar(5), ERROR_SEVERITY()) + ', State ' + CONVERT(varchar(5), ERROR_STATE()) + ', Procedure ' + ISNULL(ERROR_PROCEDURE(), '-') + ', Line ' + CONVERT(varchar(5), ERROR_LINE()); PRINT ERROR_MESSAGE(); END;
Referencing Object | Object Type | Reference Type | ||
dbo.uspLogError | Procedure | Execute | ||
Production.WorkOrder | Table | Execute | Trigger | iWorkOrder |
Production.WorkOrder | Table | Execute | Trigger | uWorkOrder |
Purchasing.PurchaseOrderDetail | Table | Execute | Trigger | iPurchaseOrderDetail |
Purchasing.PurchaseOrderDetail | Table | Execute | Trigger | uPurchaseOrderDetail |
Purchasing.PurchaseOrderHeader | Table | Execute | Trigger | uPurchaseOrderHeader |
Purchasing.Vendor | Table | Execute | Trigger | dVendor |
Sales.SalesOrderDetail | Table | Execute | Trigger | iduSalesOrderDetail |
Sales.SalesOrderHeader | Table | Execute | Trigger | uSalesOrderHeader |
Sales.Store | Table | Execute | Trigger | iStore |