Ver Mensaje Individual
  #4 (permalink)  
Antiguo 06/10/2011, 14:48
Avatar de Libras
Libras
Colaborador
 
Fecha de Ingreso: agosto-2006
Ubicación: En la hermosa perla de occidente
Mensajes: 7.412
Antigüedad: 17 años, 8 meses
Puntos: 774
Respuesta: Recorrer Registros Con Top

pues podria ser con un

declare @maximo int
select @maximo=count(*) from tabla


select row_number over(order by campo) rn, campo from tabla where rn>1 and rn<@maximo


Saludos1
__________________
What does an execution plan say to t-sql query? Go f**k yourself, if you are not happy with me