I have a column of varchar type and it contains a lot of data (we are talking about millions of records). I select only the date columns, like this:
select Value from mytable where ISDATE(mytable.Value) = 1
and I want to convert all the values in the result to the format of MM/dd/yyyy HH:mm:ss tt
Note that the values are of many different formats.
How can I do that in SQL Server?