Ver Mensaje Individual
  #2 (permalink)  
Antiguo 13/07/2009, 21:52
Avatar de iislas
iislas
Colaborador
 
Fecha de Ingreso: julio-2007
Ubicación: Mexico, D.F.
Mensajes: 6.482
Antigüedad: 17 años, 8 meses
Puntos: 180
Respuesta: Equivalente en SQL SERVER "Returning"

El valor lo puedes obtener con la funcion: SCOPE_IDENTITY()

DECLARE @MyValor INT
INSERT.........................
SET @MyValor = SCOPE_IDENTITY()
SELECT 'Mi valor', @MyValor