
13/11/2002, 15:24
|
| | Fecha de Ingreso: marzo-2002
Mensajes: 6
Antigüedad: 23 años, 2 meses Puntos: 0 | |
Comparar fechas en BD SQLServer Mucho les agradecería que me ayudaran a resolver este problema.
Tengo este código:
sql = "SELECT * FROM TecnicosHabilitados WHERE RFCTecnico = '"& RFCTecnico &"' and FechaHabilitacion = "& FechaHabilitacion &""
FechaHabilitacion la estoy construyendo con:
FechaHabilitacion = MES&"/"&DIA&"/"&year(cdate(FechaHabilitacion_llega))
Me manda el siguiente error:
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E07)
[Microsoft][ODBC SQL Server Driver][SQL Server]The conversion of char data type to smalldatetime data type resulted in an out-of-range smalldatetime value.
Gracias |