![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
24/06/2014, 15:15
|
![Avatar de iislas](http://static.forosdelweb.com/customavatars/avatar189087_1.gif) | Colaborador | | Fecha de Ingreso: julio-2007 Ubicación: Mexico, D.F.
Mensajes: 6.482
Antigüedad: 17 años, 7 meses Puntos: 180 | |
Respuesta: scope_identity en sql server 2008 evoarte
Eso que esta tecleando no tiene sentido
DECLARE @MyIdentity int
insert........bla, bla, bla
SET @MyIdentity = SCOPE_IDENTITY()
En esta variable @MyIdentity, tendras el numero de IDENTITY insertado por la conexion
__________________ MCTS Isaias Islas |