COGNOiSe.com - The IBM Cognos Community

ETL, App Development and other tools => COGNOS DecisionStream/Data Manager => Topic started by: am65 on 31 Oct 2010 07:16:16 AM

Title: Getting data from MySQL using ODBC
Post by: am65 on 31 Oct 2010 07:16:16 AM
I need to copy a table from MySQL to Oracle. So I set up an ODBC datasource in windows pointing to the MySQL server. Everything works fine but the resultset returns only one row.

SELECT * FROM ACCOUNTS ---> only returns one row
SELECT COUNT(*) FROM ACCOUNTS ---> returns only one row with the value 798

If I perform the same query in Excel (with Microsoft Query using the same ODBC connection) it returns all the rows. So it seems a problem of Data Manager.

But I have no idea what could it be.
Title: Re: Getting data from MySQL using ODBC
Post by: am65 on 31 Oct 2010 02:32:00 PM
The solution is to use version 3.51 of the driver instead of using the 5.1 version