Write simple this query:
select cast('2020-10-10 07:30:00.0000000' as datetime) and want to show
'2020-10-10 07:30:00'
but SQL Server return this error:
Conversion failed when converting date and/or time from character string.
How can solve that problem? Thanks.
datetime, the valid time ranges00:00:00 through 23:59:59.997. What you want as07:30:00is just presentation issue. Do the formatting at your front end application