![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
06/09/2012, 10:30
|
![Avatar de Libras](http://static.forosdelweb.com/customavatars/avatar147802_5.gif) | Colaborador | | Fecha de Ingreso: agosto-2006 Ubicación: En la hermosa perla de occidente
Mensajes: 7.412
Antigüedad: 18 años, 6 meses Puntos: 774 | |
Respuesta: Incrementar un campo desde un trigger me lleva....
try this: select row_number() over (partition by campo1 order by campo1) as id, campo1,campo2 from #t1
best regards
__________________ What does an execution plan say to t-sql query? Go f**k yourself, if you are not happy with me |