Código SQL:
Ver originalCREATE PROCEDURE busca_alumno (@id_alumno)
AS
BEGIN
DECLARE @alumno INT
SELECT @alumno=COUNT(*) FROM alumno WHERE id_alumno=@id_alumno
IF @count>=1
BEGIN
DELETE FROM alumno WHERE id_alumno=@id_alumno
print 'El alumno ha sido borrado'
END
ELSE
BEGIN
print 'El alumno no existe'
END
END
Saludos!!