Get startedGet started for free

RAISERROR syntax

Given this RAISERROR statement

RAISERROR('You cannot apply a 50%% discount on %s number %d', 6, 1, 'product', 5);

Which of the following outputs will you get if you execute this code?

This exercise is part of the course

Transactions and Error Handling in SQL Server

View Course

Hands-on interactive exercise

Turn theory into action with one of our interactive exercises

Start Exercise