boutique replica bags up ideas

the best replique rolex and prices here.

julia highlight 99j hair color 10a quality straight human hair lace front wigs 8 - 24 inches pre plucked hairline 13x4 inches lace front brazilian wig onlinefor sale

How to catch and throw error in SQL Server?

Updated on     Kisan Patel

This tutorial will show you how to catch and throw error in SQL Server?

To throw error, we use RAISERROR statement.

	BEGIN TRY
		SELECT 'csharpcode'/1
	END TRY
	BEGIN CATCH
		PRINT 'In catch block.';		
		RAISERROR ('Error' --Message Text
                                   ,16 --Severity
                                   ,1 --State)
	END CATCH

Here, notice the BEGIN CATCH block that uses RAISERROR statement to throw the error.

throw


SQL Server

Leave a Reply