|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Date Testing
Hi All,
in SQLServer 2000 as part of a Select statement I have: (CONVERT(char(11), dbo.Submission.GatewayTimestamp, 103) > '13/05/2001') in my Where clause. The GatewayTimestamp column is of type datetime. Why do I have returned records where the date is '24/04/2001' as well as Records > than my date specified? |
|
#2
|
|||
|
|||
|
That's because you are comparing strings and not dates. '2' is larger than '1'
Code:
where dbo.Submission.GatewayTimestamp > '2001-05-13' |
|
#3
|
|||
|
|||
|
Just specifying the column, gives me an out of range error
|
|
#4
|
|||
|
|||
|
Could you post the query you used and the exact error message.
|
![]() |
| Viewing: Dev Shed Forums > Databases > MS SQL Development > Date Testing |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|