Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 excel import

Author  Topic 

teedah1
Starting Member

10 Posts

Posted - 2007-07-24 : 14:07:55
i am trying to import a large excel file which has some dates into a sql table, which has only varchar fields.
i tried to format the excel 's mm/dd/yyyy cell format to text or general, but the dates came up wierd. if i import the file onto this sql table, it will automatically convert the mm/dd/yyyy as a real dateTime field and put in 12:00AM after it, eventhough that column is a varchar column.
any advice on how to convert the excel columns into texts and keeping the integrity of the dates in mm/dd/yyyy format?
thanks for your help!
   

- Advertisement -