lundi 29 octobre 2018

microsoft SQl Query

I do not get the raised error after running an update statement on rentals

Begin 
     if (@check is not null)
     Begin try
    raiserror ('MOVIE HAS BEEN CHECKED IN AT AN EARLIER TIME',20,1) with log ;
    end try
    begin catch 
    select error_message()
    end catch
end

Aucun commentaire:

Enregistrer un commentaire