Identity Siguiente

09/06/2007 - 19:44 por Aventurero | Informe spam
Tengo una tabla con un campo IdRegistro Identity.
Necesito saber cual es el indentity que sigue antes de hacer el proceso.
No me sireve max(IdRegistro), porque han podido borrar los últimos registros
y no puedo saber el último identity.
Gracias por sus aportes.
Atentamente,


Aventurero
 

Leer las respuestas

#1 Alejandro Mesa
09/06/2007 - 21:07 | Informe spam
Aventurero,

Chequea en tus libros en linea por las funciones:

- IDENT_CURRENT
- IDENT_INCR


AMB

"Aventurero" wrote:

Tengo una tabla con un campo IdRegistro Identity.
Necesito saber cual es el indentity que sigue antes de hacer el proceso.
No me sireve max(IdRegistro), porque han podido borrar los últimos registros
y no puedo saber el último identity.
Gracias por sus aportes.
Atentamente,


Aventurero



Preguntas similares