Here's my SQL:
SELECT *
FROM MY_TABLE
WHERE MY_DATE_COLUMN >= CONVERT(DATETIME2, '2022-04-04 15:22:20', 1)
I get this message:
The input character string does not follow style 100, either change the input character string or use a different style.
I've also seen this message at times but haven't determined what causes the different messages:
Conversion failed when converting date and/or time from character string.
I've also tried at least 10 other style values and none of them work. What is wrong with my SQL?