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) A socialist is someone who will give you the shirt off *someone else's* back.

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

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