How to handle errors in SQL Server By Sagar Jaybhay

Sql-Server

In this article we will understand How to handle errors in SQL Server By Sagar Jaybhay. Handle Error In SQL Server 2005 they introduced try/catch block in SQL server likes C# and Java. In SQL Server 2000 they have syntax — @@Error In SQL Server 2005 they have introduced – try/catch. In SQL server the variables which are starting with @@ symbols are called global variables but hey are not variables but working like variables but they are similar to a function. Throw an error in SQL Server we have…

Read More

How to handle errors in asp.net core globally or Centralize

Asp.net-core By Sagar Jaybhay

Centralize way to handle errors in asp.net core by sagar jaybhay In Case You do not handle the error at a respective method-level then our global exception handler comes in picture and display appropriate message. Below are the steps to add a global filter in your asp.net core application to handle errors in asp.net core globally or Centralize way Step 1: Add below the line of code in your configure method in startup class. Now your code likes below. In process of Centralize way to handle errors, we pass Error…

Read More