I use freebcp utility on unix to upload a flat file to a SQL Server 2008 table
I have the contents of a file as MAY 10 2013 01:00:01.000 PM , which is loaded into the sql server ( datetime ) table column.
when I select from this table ie select datecol from test I get the output 2013-05-10 01:00:29.000 but it should return 2013-05-10 13:00:29.000
even when I select convert(varchar,datecol,100) from test I get the output May 10 2013 12:00AM
How to import value correctly?
source share