Could you try with the OLEDB provider of Informix instead?
Main Topics
Browse All TopicsI get the following error when I try to import data from Informix DB to SQL Server 2008 using the Import/Export Wizard in SQL Server:
TITLE: SQL Server Import and Export Wizard
--------------------------
Could not connect source component.
Error 0xc0047062: Source - sod [1]: System.Data.Odbc.OdbcExcep
at System.Data.Odbc.OdbcConne
at System.Data.Odbc.OdbcComma
at System.Data.Odbc.OdbcComma
at System.Data.Odbc.OdbcComma
at System.Data.Odbc.OdbcComma
at System.Data.Common.DbComma
at Microsoft.SqlServer.Dts.Pi
at Microsoft.SqlServer.Dts.Pi
--------------------------
ADDITIONAL INFORMATION:
ERROR [42000] [Informix][Informix ODBC Driver][Informix]A syntax error has occurred. (iclit09b.dll)
--------------------------
BUTTONS:
OK
--------------------------
Its says could not connect to source component but it sees all the tables and when I run "Test Connection" for the ODBC connection through the import/export wizard, it can connect.
When I try to preview the table in the wizard, I get the following error:
TITLE: SQL Server Import and Export Wizard
--------------------------
The preview data could not be retrieved.
--------------------------
ADDITIONAL INFORMATION:
ERROR [42000] [Informix][Informix ODBC Driver][Informix]A syntax error has occurred. (iclit09b.dll)
--------------------------
BUTTONS:
OK
--------------------------
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Have a look at http://www-01.ibm.com/soft
I know we had to experiment with the Informix Drivers some time ago, switching between ODBC and OLEDB, but each one had its cons. As I'm not at all experienced with Informix, I can only say the drivers seem to be rudimentary at most. Because of the restrictions, we ended up using a direct ODBC connection from the application instead of a linked server. I can't tell whether the Import/Export Wizard will cope with either driver.
Blobs - Binary Large Objects ? Data types Text or Byte ?
Though if you can import the tables from Access it looks like there's no problem with the table or with the ODBC drivers, looks like the problem is with SSIS. I'm wondering if there's a problem matching the Informix data to SQL Server. Is it possible to just import a couple of columns, say a couple of fixed length character columns. If that works then add more columns to the import. Just an idea.
Actually I've just been trying this myself
I'm using SQL2008.
I ran "Import and Export Data" from the installed programs which comes up Welcome to SQL Server Import and Export Wizard.
I took the Next option
As my source I took the .NET Framework Driver for ODBC.
And set my named connection string to my ODBC driver (Dsn = myodbc)
I took the Next option.
I set the destination to SQL Server Native Client 10.0 and selected a database.
I took the Next option.
and I got the same error when I took the "copy data from one or more tables .." option in the wizard. Like you it also failed when I previewed.
So I tried the "Write a query option" instead: used "select * from mytable" as the sql query and then on the next page (Select Source Tables and Views) I tried the preview and it worked - it displayed the table.
SO then I took the Next option and I got an error "Column information .. could not be retrieved or the data types of source columns were not mapped correctly ...", so then I took "edit mappings" option and it showed me that a column in my informix had a Type of "23", all the rest were correctly identified as Char, Integer but this one was clearly confusing SSIS, and looking at it from the Informix side I can see that it's a Date type.
Now this is with SQL Server 2008 which supports a Date type (2005 and earlier don't) so it's surprising it gets confused.
So anyway in the"edit mappings" screen I changed the mapping to type "Date" and it ran OK (I got a warning about mapping files not being present which I ignored but it ran OK).
If you're running SQL2005 I woul imagine you could select the datetime type.
HTH
Business Accounts
Answer for Membership
by: k1ng87Posted on 2009-11-07 at 06:57:10ID: 25766516
I assume there is some kind of error in the SQL code that SSIS is using to retrieve the data from Informix?