5 reasons you should handle sql server exceptions using throw instead of raiserror

12
5 Reasons You Should Handle SQL Server Exceptions Using THROW Instead of RAISERROR Presented by: Sifiso Ndlovu

Upload: dixon

Post on 23-Feb-2016

34 views

Category:

Documents


0 download

DESCRIPTION

5 Reasons You Should Handle SQL Server Exceptions Using THROW Instead of RAISERROR. Presented by : Sifiso Ndlovu. 5 Reasons You Should Handle SQL Server Exceptions Using THROW Instead of RAISERROR. Less Lines Accurate Troubleshooting by Error Line Number - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: 5 Reasons You Should Handle SQL Server Exceptions Using THROW Instead of RAISERROR

5 Reasons You Should Handle SQL Server Exceptions Using THROW Instead of

RAISERROR

Presented by: Sifiso Ndlovu

Page 2: 5 Reasons You Should Handle SQL Server Exceptions Using THROW Instead of RAISERROR

5 Reasons You Should Handle SQL Server Exceptions Using THROW Instead of RAISERROR

1. Less Lines2. Accurate Troubleshooting by Error Line

Number3. Accurate Troubleshooting by Error

Number4. Accurate Termination of T-SQL Statement5. Practice Statement Termination before

learning to THROW

Page 3: 5 Reasons You Should Handle SQL Server Exceptions Using THROW Instead of RAISERROR

1. Less LinesRAISERROR

THROW

Page 4: 5 Reasons You Should Handle SQL Server Exceptions Using THROW Instead of RAISERROR

2. Accurate Troubleshooting by Error Line Number

RAISERROR

THROW

Page 5: 5 Reasons You Should Handle SQL Server Exceptions Using THROW Instead of RAISERROR

3. Accurate Troubleshooting by Error Number

Page 6: 5 Reasons You Should Handle SQL Server Exceptions Using THROW Instead of RAISERROR

3. Accurate Troubleshooting by Error Number

RAISERROR

THROW

Page 7: 5 Reasons You Should Handle SQL Server Exceptions Using THROW Instead of RAISERROR

4. Accurate Termination of T-SQL Statement

RAISERROR

Page 8: 5 Reasons You Should Handle SQL Server Exceptions Using THROW Instead of RAISERROR

4. Accurate Termination of T-SQL Statement

THROW

Page 9: 5 Reasons You Should Handle SQL Server Exceptions Using THROW Instead of RAISERROR

5. Practice Statement Termination before learning to THROW

RAISERROR

THROW

Page 10: 5 Reasons You Should Handle SQL Server Exceptions Using THROW Instead of RAISERROR

5. Practice Statement Termination before learning to THROW

THROW

Page 11: 5 Reasons You Should Handle SQL Server Exceptions Using THROW Instead of RAISERROR

5 Reasons You Should Handle SQL Server Exceptions Using THROW Instead of RAISERROR

1. Less Lines2. Accurate Troubleshooting by Error Line

Number3. Accurate Troubleshooting by Error

Number4. Accurate Termination of T-SQL Statement5. Practice Statement Termination before

learning to THROW

Page 12: 5 Reasons You Should Handle SQL Server Exceptions Using THROW Instead of RAISERROR

Questions…