Difference between revisions of "Dbo.uspPrintError (procedure)"
Line 27: | Line 27: | ||
END; | END; | ||
</pre> | </pre> | ||
− | |||
== automatically generated == | == automatically generated == | ||
Line 62: | Line 61: | ||
END; | END; | ||
</pre> | </pre> | ||
+ | |||
+ | |||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- style="background:silver" | ||
+ | | '''Referencing Object | ||
+ | | '''Object Type | ||
+ | | '''Reference Type | ||
+ | |||
+ | |- | ||
+ | | [[dbo.uspLogError_(procedure)|dbo.uspLogError]] | ||
+ | | Procedure | ||
+ | | Execute | ||
+ | |- | ||
+ | | [[Production.WorkOrder_(table)|Production.WorkOrder]] | ||
+ | | Table | ||
+ | | Execute | ||
+ | |- | ||
+ | | [[Production.WorkOrder_(table)|Production.WorkOrder]] | ||
+ | | Table | ||
+ | | Execute | ||
+ | |- | ||
+ | | [[Purchasing.PurchaseOrderDetail_(table)|Purchasing.PurchaseOrderDetail]] | ||
+ | | Table | ||
+ | | Execute | ||
+ | |- | ||
+ | | [[Purchasing.PurchaseOrderDetail_(table)|Purchasing.PurchaseOrderDetail]] | ||
+ | | Table | ||
+ | | Execute | ||
+ | |- | ||
+ | | [[Purchasing.PurchaseOrderHeader_(table)|Purchasing.PurchaseOrderHeader]] | ||
+ | | Table | ||
+ | | Execute | ||
+ | |- | ||
+ | | [[Purchasing.Vendor_(table)|Purchasing.Vendor]] | ||
+ | | Table | ||
+ | | Execute | ||
+ | |- | ||
+ | | [[Sales.SalesOrderDetail_(table)|Sales.SalesOrderDetail]] | ||
+ | | Table | ||
+ | | Execute | ||
+ | |- | ||
+ | | [[Sales.SalesOrderHeader_(table)|Sales.SalesOrderHeader]] | ||
+ | | Table | ||
+ | | Execute | ||
+ | |- | ||
+ | | [[Sales.Store_(table)|Sales.Store]] | ||
+ | | Table | ||
+ | | Execute | ||
+ | |} |
Revision as of 00:58, 27 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 |
Production.WorkOrder | Table | Execute |
Purchasing.PurchaseOrderDetail | Table | Execute |
Purchasing.PurchaseOrderDetail | Table | Execute |
Purchasing.PurchaseOrderHeader | Table | Execute |
Purchasing.Vendor | Table | Execute |
Sales.SalesOrderDetail | Table | Execute |
Sales.SalesOrderHeader | Table | Execute |
Sales.Store | Table | Execute |