Answers for "how to create stored procedure with try and catch sql server"

SQL
0

How to add a Try/Catch to SQL Stored Procedure

CREATE PROCEDURE [dbo].[PL_GEN_PROVN_NO1]        
       @GAD_COMP_CODE  VARCHAR(2) =NULL, 
       @@voucher_no numeric =null output 
       AS         
   BEGIN  

     begin try 
         -- your proc code
     end try

     begin catch
          -- what you want to do in catch
     end catch    
  END -- proc end
Posted by: Guest on August-05-2021

Code answers related to "how to create stored procedure with try and catch sql server"

Code answers related to "SQL"

Browse Popular Code Answers by Language