I have a login user1 with Default Language as 'British English'. when this is changed to 'English' and run the below query
select
CAST([S1OnsetDATETIME] AS DATETIME)
from
tablename1
It doesn't fail, but when the Language is changed to 'British English'it fails with the error message :
The conversion of a varchar data type to a datetime data type resulted in an out-of-range value.
I have to use the 'British English' and how to sort this out?