This should be easy
I have a date column on table A
SELECT * FROM TABLEA
WHERE DTE = ’01/02/2010′
The problem is that this is deployed onto US servers and I have no control over the date as its an arg.
How can I tell SqlServer to treat this date as being in that format??
I gave tried this:
SELECT *
FROM TABLEA
WHERE DTE = CONVERT(VARCHAR(10), ’01/01/2010′ , 101) AS [DD/MM/YYYY]
Your last try was almost correct, but it should have been