COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Framework Manager => Topic started by: disco29 on 05 Jan 2011 06:02:42 PM

Title: Derived tables are not supported by the database.
Post by: disco29 on 05 Jan 2011 06:02:42 PM
I am using Cognos with a postgreSQL database.
I am using an "ODBC"-type data source connection.
When I try to run a report in Report Studio, I get the error: "Derived tables are not supported by the database."  My understanding of this error is that Cognos wants to use a sub-query (which is perfectly acceptable in postgreSQL). 
Why does Cognos think that it can't use derived tables?  Just because of the ODBC connection?
Where are the options to set what is (or is not) supported in the database?  How can I over-ride Cognos' default?

I know that I can enable "limited local" processing and this will work, but I can NOT resort that this option - the processing needs to happen in the database.

Thank you,
-John
Title: Re: Derived tables are not supported by the database.
Post by: sir_jeroen on 06 Jan 2011 04:24:50 AM
what you could try (at your own risk) go to your installation directory/bin directory.
Edit the file COGDMOD.ini
Look for the line
[Exceptions Tables]
; Entries added here affect all ODBC connections.
; For this reason overwrites should be added to subsections only.
; The entries below show the ODBC defaults.
Derived=F
Joined=F
Simple=T

and change Derived = F to Derived=T

This might work (maybe restart your server)
Let me know if it worked
Title: Re: Derived tables are not supported by the database.
Post by: disco29 on 06 Jan 2011 11:17:35 AM
ReportNet Addict,

Yes, that does work (and after Derived I had to then tell Cognos that Distinct was OK to use also). 
Thanks very much for the help.

-John
Title: Re: Derived tables are not supported by the database.
Post by: sir_jeroen on 07 Jan 2011 02:35:55 AM
You're welcome... And don't forget to note your changes because as with each update this file could be overwritten!
Title: Re: Derived tables are not supported by the database.
Post by: MFGF on 07 Jan 2011 03:57:34 AM
Great info RA - many thanks! :)
Title: Re: Derived tables are not supported by the database.
Post by: sir_jeroen on 07 Jan 2011 05:59:15 AM
You're welcome..