I have a column abc varchar(100) with data like 2011-09-26 16:36:57.810000
abc varchar(100)
2011-09-26 16:36:57.810000
I want to convert this column to DATETIME...
DATETIME
SQL Server only supports 3 decimal places for milliseconds, so the following will work:
Convert(DATETIME, SUBSTRING(abc, 0, 24) ,120)