I 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
tion: ERROR [42000] [Informix][Informix ODBC Driver][Informix]A syntax error has occurred.
at System.Data.Odbc.OdbcConne
ction.Hand
leError(Od
bcHandle hrHandle, RetCode retcode)
at System.Data.Odbc.OdbcComma
nd.Execute
ReaderObje
ct(Command
Behavior behavior, String method, Boolean needReader, Object[] methodArguments, SQL_API odbcApiMethod)
at System.Data.Odbc.OdbcComma
nd.Execute
ReaderObje
ct(Command
Behavior behavior, String method, Boolean needReader)
at System.Data.Odbc.OdbcComma
nd.Execute
Reader(Com
mandBehavi
or behavior)
at System.Data.Odbc.OdbcComma
nd.Execute
DbDataRead
er(Command
Behavior behavior)
at System.Data.Common.DbComma
nd.System.
Data.IDbCo
mmand.Exec
uteReader(
CommandBeh
avior behavior)
at Microsoft.SqlServer.Dts.Pi
peline.Dat
aReaderSou
rceAdapter
.Reinitial
izeMetaDat
a()
at Microsoft.SqlServer.Dts.Pi
peline.Man
agedCompon
entHost.Ho
stReinitia
lizeMetaDa
ta(IDTSMan
agedCompon
entWrapper
100 wrapper)
--------------------------
----
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
--------------------------
----