COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: kimtalley on 05 Sep 2008 02:49:25 PM

Title: Prompt values in filter not appearing in SQL
Post by: kimtalley on 05 Sep 2008 02:49:25 PM
I am trying to add a date prompt to my report and am not having much luck. The report results are correct and use the prompt value. The problem is that the report takes a very long time to run. I ran an SQL profiler trace and see that the values are not being passed to SQL Server as part of the criteria. Cognos is pulling in all 1Million rows from my table and applying the filter to the results. This is not only running with terrible response time but is putting lots of strain on my SQL Server.

Any ideas how to correct this?

Thanks,
Kim
Title: Re: Prompt values in filter not appearing in SQL
Post by: FatCat on 17 Sep 2008 04:17:05 PM
Same issue.

what i did is open the report in Report studio and ran the sql for the query.

I noticed the filter is only applied to the cognos sql and not the native sql.

This means Cognos is bringing in all the data locally and then running the filter.

Bit of a waste eh...

I have been reading on other boards that there appears to be no rhyme or reason to when or in what situation cognos does this.

Any others experience this or shed any light on it?
Title: Re: Prompt values in filter not appearing in SQL
Post by: FatCat on 17 Sep 2008 04:25:15 PM
Just read in SP3 for C8.3 there appears to be a fix for some DB.
Teradata to be specific.

I am willing to bet that something in the teradata.ini file has been update