Why does
select cast('''1900-01-01''' as datetime)
fail in SQL Server 2005 ?
It’s show error message :
Conversion failed when converting datetime from character string.
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
you have an invalid parameter. It should be
For more info See Here: CAST and CONVERT and How to convert from string to datetime?