Ver Mensaje Individual
  #7 (permalink)  
Antiguo 18/04/2013, 13:25
Avatar de iislas
iislas
Colaborador
 
Fecha de Ingreso: julio-2007
Ubicación: Mexico, D.F.
Mensajes: 6.482
Antigüedad: 16 años, 10 meses
Puntos: 180
Respuesta: Utilizar Scope_Identity() como parametro

Código SQL:
Ver original
  1. DECLARE @MyIdentity INT
  2. INSERT...........
  3. SET @MyIdentity = SCOPE_IDENTITY()
__________________
MCTS Isaias Islas