<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://dbshelp.devio.at/index.php?action=history&amp;feed=atom&amp;title=Dbo.uspPrintErrorprocedure</id>
		<title>Dbo.uspPrintErrorprocedure - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://dbshelp.devio.at/index.php?action=history&amp;feed=atom&amp;title=Dbo.uspPrintErrorprocedure"/>
		<link rel="alternate" type="text/html" href="http://dbshelp.devio.at/index.php?title=Dbo.uspPrintErrorprocedure&amp;action=history"/>
		<updated>2026-06-13T03:12:34Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://dbshelp.devio.at/index.php?title=Dbo.uspPrintErrorprocedure&amp;diff=2562&amp;oldid=prev</id>
		<title>Bot: New page: == wikibot ==  {| border=&quot;1&quot; cellpadding=&quot;5&quot; cellspacing=&quot;0&quot; style=&quot;border-collapse:collapse&quot; |- valign=&quot;top&quot; | '''Procedure | dbo.uspPrintError |- valign=&quot;top&quot; | '''Description | Prints e...</title>
		<link rel="alternate" type="text/html" href="http://dbshelp.devio.at/index.php?title=Dbo.uspPrintErrorprocedure&amp;diff=2562&amp;oldid=prev"/>
				<updated>2010-06-23T22:07:55Z</updated>
		
		<summary type="html">&lt;p&gt;New page: == wikibot ==  {| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; cellspacing=&amp;quot;0&amp;quot; style=&amp;quot;border-collapse:collapse&amp;quot; |- valign=&amp;quot;top&amp;quot; | &amp;#039;&amp;#039;&amp;#039;Procedure | dbo.uspPrintError |- valign=&amp;quot;top&amp;quot; | &amp;#039;&amp;#039;&amp;#039;Description | Prints e...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== wikibot ==&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; cellspacing=&amp;quot;0&amp;quot; style=&amp;quot;border-collapse:collapse&amp;quot;&lt;br /&gt;
|- valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| '''Procedure&lt;br /&gt;
| dbo.uspPrintError&lt;br /&gt;
|- valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| '''Description&lt;br /&gt;
| 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.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Source ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
-- uspPrintError prints error information about the error that caused &lt;br /&gt;
-- execution to jump to the CATCH block of a TRY...CATCH construct. &lt;br /&gt;
-- Should be executed from within the scope of a CATCH block otherwise &lt;br /&gt;
-- it will return without printing any error information.&lt;br /&gt;
CREATE PROCEDURE [dbo].[uspPrintError] &lt;br /&gt;
AS&lt;br /&gt;
BEGIN&lt;br /&gt;
    SET NOCOUNT ON;&lt;br /&gt;
&lt;br /&gt;
    -- Print error information. &lt;br /&gt;
    PRINT 'Error ' + CONVERT(varchar(50), ERROR_NUMBER()) +&lt;br /&gt;
          ', Severity ' + CONVERT(varchar(5), ERROR_SEVERITY()) +&lt;br /&gt;
          ', State ' + CONVERT(varchar(5), ERROR_STATE()) + &lt;br /&gt;
          ', Procedure ' + ISNULL(ERROR_PROCEDURE(), '-') + &lt;br /&gt;
          ', Line ' + CONVERT(varchar(5), ERROR_LINE());&lt;br /&gt;
    PRINT ERROR_MESSAGE();&lt;br /&gt;
END;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Dependencies ===&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; cellspacing=&amp;quot;0&amp;quot; style=&amp;quot;border-collapse:collapse&amp;quot;&lt;br /&gt;
|- style=&amp;quot;background:silver&amp;quot;&lt;br /&gt;
| '''Reference Type&lt;br /&gt;
| '''Object Type&lt;br /&gt;
| '''Referencing Object&lt;br /&gt;
&lt;br /&gt;
| '''Child Type&lt;br /&gt;
| '''Child Object&lt;br /&gt;
&lt;br /&gt;
|- valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| Execute&lt;br /&gt;
| Procedure&lt;br /&gt;
| [[dbo.uspLogError_(procedure)|dbo.uspLogError]]&lt;br /&gt;
&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|- valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| Execute&lt;br /&gt;
| Table&lt;br /&gt;
| [[Production.WorkOrder_(table)|Production.WorkOrder]]&lt;br /&gt;
&lt;br /&gt;
| Trigger&lt;br /&gt;
| iWorkOrder&lt;br /&gt;
|- valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| Execute&lt;br /&gt;
| Table&lt;br /&gt;
| [[Production.WorkOrder_(table)|Production.WorkOrder]]&lt;br /&gt;
&lt;br /&gt;
| Trigger&lt;br /&gt;
| uWorkOrder&lt;br /&gt;
|- valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| Execute&lt;br /&gt;
| Table&lt;br /&gt;
| [[Purchasing.PurchaseOrderDetail_(table)|Purchasing.PurchaseOrderDetail]]&lt;br /&gt;
&lt;br /&gt;
| Trigger&lt;br /&gt;
| iPurchaseOrderDetail&lt;br /&gt;
|- valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| Execute&lt;br /&gt;
| Table&lt;br /&gt;
| [[Purchasing.PurchaseOrderDetail_(table)|Purchasing.PurchaseOrderDetail]]&lt;br /&gt;
&lt;br /&gt;
| Trigger&lt;br /&gt;
| uPurchaseOrderDetail&lt;br /&gt;
|- valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| Execute&lt;br /&gt;
| Table&lt;br /&gt;
| [[Purchasing.PurchaseOrderHeader_(table)|Purchasing.PurchaseOrderHeader]]&lt;br /&gt;
&lt;br /&gt;
| Trigger&lt;br /&gt;
| uPurchaseOrderHeader&lt;br /&gt;
|- valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| Execute&lt;br /&gt;
| Table&lt;br /&gt;
| [[Purchasing.Vendor_(table)|Purchasing.Vendor]]&lt;br /&gt;
&lt;br /&gt;
| Trigger&lt;br /&gt;
| dVendor&lt;br /&gt;
|- valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| Execute&lt;br /&gt;
| Table&lt;br /&gt;
| [[Sales.SalesOrderDetail_(table)|Sales.SalesOrderDetail]]&lt;br /&gt;
&lt;br /&gt;
| Trigger&lt;br /&gt;
| iduSalesOrderDetail&lt;br /&gt;
|- valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| Execute&lt;br /&gt;
| Table&lt;br /&gt;
| [[Sales.SalesOrderHeader_(table)|Sales.SalesOrderHeader]]&lt;br /&gt;
&lt;br /&gt;
| Trigger&lt;br /&gt;
| uSalesOrderHeader&lt;br /&gt;
|- valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| Execute&lt;br /&gt;
| Table&lt;br /&gt;
| [[Sales.Store_(table)|Sales.Store]]&lt;br /&gt;
&lt;br /&gt;
| Trigger&lt;br /&gt;
| iStore&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Bot</name></author>	</entry>

	</feed>