Trying
SELECT convert(datetime, 20120825142616 , 120) AS time
Running into exception
Arithmetic overflow error converting expression to data type datetime.
The value ‘20120825142616 ‘ is of type ‘Int64‘ passed as parameter to a .Net SqlCommand object.
Any help is appreciated
If you place your data in single quote then you will not get arithmetic flow error
but you will got an error:
Conversion failed when converting date and/or time from character string.I thought the format is not right. If I only place date it works. like
and If I place date in this format it works