I have an excel sheet which contains date in format dd/mm/yyyy. Now when I import it in SQL Server 2008, it takes it as varchar() column. How would I be able to update or convert that varchar() to datetime.
Note: Convert(), Datepart() & Alter Column are not working. Any idea on
how would I be able to extract date, month & year from that string?
Any suggestions are welcome.
Download SpreadSheet From Here
You will notice that some dates are aligned differently than others. Dates which are left aligned gets imported as varchar() while dates which are right aligned come as null.
Please could someone try to import it and check if its true or not.
Note - I am using KingSoft's Spreadsheet not MS Excel.

SET DATEFORMAT dmyor similar as eg. suggested in Convert Varchar Column to Datetime format - SQL Server? - Dilettantyyyymmddand they should import into SQL 2008 without a problem. - user4039065