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

Commit eed3e2b

Browse files
authored
Update error-state-transact-sql.md
1 parent 9d93488 commit eed3e2b

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ ERROR_STATE ( )
6464
### A. Using ERROR_STATE in a CATCH block
6565
The following example shows a `SELECT` statement that generates a divide-by-zero error. The state of the error is returned.
6666

67-
```
67+
```sql
6868
BEGIN TRY
6969
-- Generate a divide by zero error
7070
SELECT 1/0;
@@ -78,7 +78,7 @@ GO
7878
### B. Using ERROR_STATE in a CATCH block with other error-handling tools
7979
The following example shows a `SELECT` statement that generates a divide-by-zero error. Along with the error state, information that relates to the error is returned.
8080

81-
```
81+
```sql
8282
BEGIN TRY
8383
-- Generate a divide-by-zero error.
8484
SELECT 1/0;
@@ -100,7 +100,7 @@ GO
100100
### C. Using ERROR_STATE in a CATCH block with other error-handling tools
101101
The following example shows a `SELECT` statement that generates a divide-by-zero error. Along with the error state, information that relates to the error is returned.
102102

103-
```
103+
```sql
104104
BEGIN TRY
105105
-- Generate a divide-by-zero error.
106106
SELECT 1/0;
@@ -125,7 +125,8 @@ GO
125125
[ERROR_PROCEDURE (Transact-SQL)](../../t-sql/functions/error-procedure-transact-sql.md)
126126
[ERROR_SEVERITY (Transact-SQL)](../../t-sql/functions/error-severity-transact-sql.md)
127127
[RAISERROR (Transact-SQL)](../../t-sql/language-elements/raiserror-transact-sql.md)
128-
[@@ERROR (Transact-SQL)](../../t-sql/functions/error-transact-sql.md)
129-
128+
[@@ERROR (Transact-SQL)](../../t-sql/functions/error-transact-sql.md)
129+
[Errors and Events Reference (Database Engine)](../../relational-databases/errors-events/errors-and-events-reference-database-engine.md)
130130

131+
131132

0 commit comments

Comments
 (0)