Ver Mensaje Individual
  #2 (permalink)  
Antiguo 08/12/2010, 17:25
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, 9 meses
Puntos: 774
Respuesta: Comparar Fechas tipo datetime

Pues depende como quieras compararlas podria ser asi:

select * from tabla where fecha >= convert(datetime,tu_fecha)
select * from tabla where fecha <= convert(datetime,tu_fecha)
select * from tabla where fecha between convert(datetime,tu_fecha) and convert(datetime,tufecha)


Saludos!