Hi,
I have the following sql statement:
select CPYEA4, CPPERI from DWCSYPER where '01/01/99'
BETWEEN convert(datetime,CPFDAT) and convert(datetime,CPTDAT)
where CPFDAT and CPTDAT are char datatype. The statement returns a value but also returns the following error message:
The conversion of char data type to smalldatetime data type resulted in an out-of-range smalldatetime value.
Does anyone know how I can fix / get rid of this error message?
Thanks,
Gillian
[sig][/sig]
I have the following sql statement:
select CPYEA4, CPPERI from DWCSYPER where '01/01/99'
BETWEEN convert(datetime,CPFDAT) and convert(datetime,CPTDAT)
where CPFDAT and CPTDAT are char datatype. The statement returns a value but also returns the following error message:
The conversion of char data type to smalldatetime data type resulted in an out-of-range smalldatetime value.
Does anyone know how I can fix / get rid of this error message?
Thanks,
Gillian
[sig][/sig]