Click here to Skip to main content
15,914,371 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have FoxPro Databases that I need to convert toSQL database. I have SQL Server 2005 and I am importing the FoxPro DBC file into a test database in SQL Server Management Studio. The connection are fine so far but I get a lot of errors. I see the data when I have to choose the databases to import and every thing looks ok with a few data type changes. Here is the errors I get when Pre-execute is running:

 Pre-execute (Error)
Messages
Warning 0x80202066: Data Flow Task: Cannot retrieve the column code page info from the OLE DB provider.  If the component supports the "DefaultCodePage" property, the code page from that property will be used.  Change the value of the property if the current string code page values are incorrect.  If the component does not support the property, the code page from the component's locale ID will be used.
 (SQL Server Import and Export Wizard)
 
Error 0xc0202009: Data Flow Task: An OLE DB error has occurred. Error code: 0x80040E21.
An OLE DB record is available.  Source: "Microsoft SQL Native Client"  Hresult: 0x80040E21  Description: "Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.".
 (SQL Server Import and Export Wizard)
 
Error 0xc0202025: Data Flow Task: Cannot create an OLE DB accessor. Verify that the column metadata is valid.
 (SQL Server Import and Export Wizard)
 
Error 0xc004701a: Data Flow Task: component "Destination - aa" (265) failed the pre-execute phase and returned error code 0xC0202025.
 (SQL Server Import and Export Wizard)


Is there any way for this to be fixed?
Posted

1 solution

You may want to try using ODBC instead of OLE. Check out this article:
http://stackoverflow.com/questions/16819811/how-to-convert-visual-foxpro-database-into-sql-server-database[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900