Share via

Transfer from Access to SQL

Anonymous
2019-08-22T00:20:23+00:00

I am trying to migrate an Access database to SQL and getting the following errors

Error 0xc0202009: Data Flow Task 1: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.

An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 11.0"  Hresult: 0x80004005  Description: "Invalid date format".

 (SQL Server Import and Export Wizard)

Error 0xc020901c: Data Flow Task 1: There was an error with Destination - GAMApplications.Inputs[Destination Input].Columns[ApplicationDate] on Destination - GAMApplications.Inputs[Destination Input]. The column status returned was: "Conversion failed because the data value overflowed the specified type.".

 (SQL Server Import and Export Wizard)

Error 0xc0209029: Data Flow Task 1: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR.  The "Destination - GAMApplications.Inputs[Destination Input]" failed because error code 0xC020907A occurred, and the error row disposition on "Destination - GAMApplications.Inputs[Destination Input]" specifies failure on error. An error occurred on the specified object of the specified component.  There may be error messages posted before this with more information about the failure.

 (SQL Server Import and Export Wizard)

Error 0xc0047022: Data Flow Task 1: SSIS Error Code DTS_E_PROCESSINPUTFAILED.  The ProcessInput method on component "Destination - GAMApplications" (40) failed with error code 0xC0209029 while processing input "Destination Input" (53). The identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running.  There may be error messages posted before this with more information about the failure.

 (SQL Server Import and Export Wizard)

The ApplicationYear column data type is number and in SQL it is nvarchar 4 . 

What do I need to know what to do to fix this so I can get this table migrated?

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

6 answers

Sort by: Most helpful
  1. Tom van Stiphout 40,211 Reputation points MVP Volunteer Moderator
    2019-08-22T18:10:26+00:00

    nvarchar is a text data type; Long is a numeric data type.

    The equivalent of Long in Access is int in SQL Server.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2019-08-22T16:52:52+00:00

    This is what is causing the problem

    Was this answer helpful?

    0 comments No comments
  3. Duane Hookom 26,825 Reputation points Volunteer Moderator
    2019-08-22T15:19:43+00:00

    The error message doesn't seem to point to a Year value. It suggests [ApplicationDate].

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2019-08-22T13:40:10+00:00

    The migration errors out and doesn't even create the table in SQL, and since I am a complete novice with regards to SQL I don't know how to do that.  I mean a screen comes up called Review Data Type Mapping, but it won't let me change anything so I'm not sure what to do.

    Was this answer helpful?

    0 comments No comments
  5. Duane Hookom 26,825 Reputation points Volunteer Moderator
    2019-08-22T13:11:29+00:00

    Is there a reason you don't change the ApplicationYear to Int in SQL?

    Was this answer helpful?

    0 comments No comments