Errors from Import into an Empty Database

  • SQL 2005

    I created a New Database and attempted to import data from an existing database. In essence, a copy. I am really confused why I'd get these if all I wanted to do was import what was there. Is there a different process I should have used?

    Here's the resulting errors:

    - Execute the transfer with the TransferProvider. (Error)

    Messages

    ERROR : errorCode=-1071636471 description=SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E07.

    An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80040E07 Description: "Error converting data type varchar to numeric.".

    helpFile=dtsmsg.rll helpContext=0 idofInterfaceWithError={8BDFE893-E9D8-4D23-9739-DA807BCDC2AC}

    For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&LinkId=20476

    ERROR : errorCode=-1073450982 description=component "OLE DB Source" (1) failed the pre-execute phase and returned error code 0xC0202009.

    helpFile=dtsmsg.rll helpContext=0 idofInterfaceWithError={8BDFE893-E9D8-4D23-9739-DA807BCDC2AC}

    For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&LinkId=20476

    ERROR : errorCode=-1071636471 description=SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E07.

    An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80040E07 Description: "Error converting data type varchar to numeric.".

    helpFile=dtsmsg.rll helpContext=0 idofInterfaceWithError={8BDFE893-E9D8-4D23-9739-DA807BCDC2AC} (Microsoft.SqlServer.DtsTransferProvider)

    For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&LinkId=20476

    Operation stopped...

    - Create a TransferProvider. (Success)

    - Create a temporary file for destructive SQL. (Success)

    - Create a temporary file for constructive SQL. (Success)

    - Create a temporary XML file for table metadata. (Success)

    - Configure the TransferProvider with files and Source/Destination connection info. (Success)

    - Execute the transfer with the TransferProvider. (Error)

    Messages

    ERROR : errorCode=-1071636471 description=SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E07.

    An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80040E07 Description: "Error converting data type varchar to numeric.".

    helpFile=dtsmsg.rll helpContext=0 idofInterfaceWithError={8BDFE893-E9D8-4D23-9739-DA807BCDC2AC}

    For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&LinkId=20476

    ERROR : errorCode=-1073450982 description=component "OLE DB Source" (1) failed the pre-execute phase and returned error code 0xC0202009.

    helpFile=dtsmsg.rll helpContext=0 idofInterfaceWithError={8BDFE893-E9D8-4D23-9739-DA807BCDC2AC}

    For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&LinkId=20476

    ERROR : errorCode=-1071636471 description=SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E07.

    An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80040E07 Description: "Error converting data type varchar to numeric.".

    helpFile=dtsmsg.rll helpContext=0 idofInterfaceWithError={8BDFE893-E9D8-4D23-9739-DA807BCDC2AC} (Microsoft.SqlServer.DtsTransferProvider)

    For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&LinkId=20476

    - Execute the destructive SQL. (drop tables) (Success)

    - Execute the constructive SQL. (create tables) (Success)

    - Create a temporary table transfer package for [dbo].[bi50_apopn_VchrDt_H] (Stopped)

    - Execute transfer package for [dbo].[bi50_apopn_VchrDt_H] (Stopped)

    - Copying to (Stopped)

  • What tool(s) are you using for the import? Just the import/export wizard in managment studio? Something else?

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • It's hard to tell you explicitly what happened without the data and structures, but you seem to have a data issue: "Error converting data type varchar to numeric". That means that something is stored as a string and you're trying to put it into a number field.

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

  • Just using the Import Wizard located in the Management Studio. Since I was "just making a copy" I wasn't expecting anything like a data type discrepency.

  • If it's meant to be an exact copy of the source database, you might consider backup and restore. It's faster and more effective than the wizard.

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • Yeah - I guess I'll go with the backup/restore. I was just trying to get a feel for 2005 and got this error. Certainly not a showstopper.

    Thanks for your input everyone!

Viewing 6 posts - 1 through 6 (of 6 total)

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