Ver Mensaje Individual
  #5 (permalink)  
Antiguo 29/11/2006, 09:02
Otro34
 
Fecha de Ingreso: octubre-2004
Mensajes: 14
Antigüedad: 19 años, 7 meses
Puntos: 0
ponle BEGIN TRANSACTION antes del select.

y tu if manéjalo asi

if(@num = 1)
ROLLBACK TRANSACTION
else
COMMIT