Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit 02c8e88

Browse files
authored
Merge pull request #1320 from drewjcooper/patch-2
Update error-procedure-transact-sql.md
2 parents 271c37e + a6cc2dd commit 02c8e88

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

docs/t-sql/functions/error-procedure-transact-sql.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,8 @@ When called in a stored procedure CATCH block where an error occurs, `ERROR_PROC
5252
## Remarks
5353
`ERROR_PROCEDURE` supports calls anywhere within the scope of a CATCH block.
5454

55-
`ERROR_PROCEDURE` returns the name of the stored procedure or trigger where an error occurs, regardless of how many times it runs or where it runs within the scope of the `CATCH` block. This contrasts with a function like @@ERROR, which only returns an error number in the statement immediately following the one that causes an error.
56-
57-
In a nested `CATCH` block, `ERROR_PROCEDURE` returns the error number specific to the scope of the `CATCH` block that referenced that `CATCH` block. For example, the `CATCH` block of an outer TRY...CATCH construct could have an inner `TRY...CATCH` construct. Inside that inner `CATCH` block, `ERROR_PROCEDURE` returns the number of the error that invoked the inner `CATCH` block. If `ERROR_PROCEDURE` runs in the outer `CATCH` block, it returns the number of the error that invoked that outer `CATCH` block.
58-
55+
`ERROR_PROCEDURE` returns the name of the stored procedure or trigger where an error occurs, regardless of how many times it runs, or where it runs, within the scope of the `CATCH` block. This contrasts with a function like @@ERROR, which only returns an error number in the statement immediately following the one that causes an error.
56+
5957
## Examples: [!INCLUDE[ssSDWfull](../../includes/sssdwfull-md.md)] and [!INCLUDE[ssPDW](../../includes/sspdw-md.md)]
6058

6159
### A. Using ERROR_PROCEDURE in a CATCH block

0 commit comments

Comments
 (0)