Ver Mensaje Individual
  #3 (permalink)  
Antiguo 15/03/2007, 13:01
Avatar de Mithrandir
Mithrandir
Colaborador
 
Fecha de Ingreso: abril-2003
Mensajes: 12.106
Antigüedad: 21 años
Puntos: 25
Re: mi ultimo registro...

¿La tabla tiene alguna columna con identity? Si lo tiene es más fácil que usar un trigger.

SCOPE_IDENTITY() o @@Identity (revisa la ayuda para saber la diferencia entre uno y otro) te dirá cual es el último registro insertado.
__________________
"El hombre, en su orgullo, creó a Dios a su imagen y semejanza."
Friedrich Nietzsche