Hi,
I have two field in a table in SQL server 7. One is Month and another is year. Now i want to run a query which will select data less than say 06/20003. I did it in access like this...
WHERE CDATE(MMonth & '/' & MYear)< CDATE(06/2003)
I want to use same query in SQL server but it says Cdate is not a valid function so I used Convert function but now it says "Conversion of Char datatype to datetime is resulting an out of range datatime value". My data type of both the field is integer. Please help me out.
Thank is advance.
jupbs
I have two field in a table in SQL server 7. One is Month and another is year. Now i want to run a query which will select data less than say 06/20003. I did it in access like this...
WHERE CDATE(MMonth & '/' & MYear)< CDATE(06/2003)
I want to use same query in SQL server but it says Cdate is not a valid function so I used Convert function but now it says "Conversion of Char datatype to datetime is resulting an out of range datatime value". My data type of both the field is integer. Please help me out.
Thank is advance.
jupbs