How to Import Date properly

  • I have data in a Excel and am saving as txt file.  NO MATTER what format of the date I chose in Excel, it fails to import.  I am using the Import/Export Wizard from flat file.  I am changing the Data Type in the properties of the data source (tried date [DT_DATE and database date [DT_DBDATE] but it fails.  I've even changed the date format in Excel to YYYY-MM-DD but it fails.  The destination fields are setup as bDate:smalldatetime.

    I have been trying to import for 2 hours and could have manually inputted all this data manually.  Error is invalid data format.

  • Thanks for posting your issue and hopefully someone will answer soon.

    This is an automated bump to increase visibility of your question.

  • Try using datetime as the destination data type, rather than smalldatetime.

    SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply