Need to write the result to a table
select
convert(datetime, dbo.time(table1.col1))
from
table1
order by
col1
Need to write the result to a table
select
convert(datetime, dbo.time(table1.col1))
from
table1
order by
col1
Temp table (no order by):
SELECT
CONVERT(SMALLDATETIME, dbo.time(table1.col1)) AS ConvertedDate
INTO #TempTable
FROM
table1
SELECT CONVERT(smalldatetime, dbo.time(table1.col1)) AS col1
INTO #tableX
FROM table1
ORDER BY col1;