COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Framework Manager => Topic started by: flytrap on 19 May 2010 03:42:15 PM

Title: Pass-through SQL instead of COGNOS-SQL
Post by: flytrap on 19 May 2010 03:42:15 PM
Is there a mechanism by which to designate part of a query expression to not be processed into COGNOS-SQL?  I remember there being a setting for "Pass-Through SQL" but in this case there is only one part of a expression that I'd like COGNOS to butt-out on...

Example:

to_char(sysdate, "yyyy")

COGNOS goes about creating a case statement around these:

Case to_char(sysdate, "yyyy") is null then null else to_char(sysdate, "yyyy") yadda yadda

Hope my question is coherent since I am actually asking for someone else...

In the end I supose the question is can you surround the SQL with some kind of escape sequence to get the COGNOS SQL parser to butt-out?

Thanks!   ;D

Title: Re: Pass-through SQL instead of COGNOS-SQL
Post by: CognosPaul on 19 May 2010 04:01:46 PM
Try wrapping them in curly brackets. {}
Title: Re: Pass-through SQL instead of COGNOS-SQL
Post by: flytrap on 20 May 2010 12:40:15 PM
Thanks Paul for the response!  ;D

We actually discussed {} but I was under the impression he had tried that.  I'll post back a status...
Title: Re: Pass-through SQL instead of COGNOS-SQL
Post by: MFGF on 26 May 2010 08:47:29 AM
{} curly brackets denote Native SQL.
{{}} double curly brackets denote passthrough SQL.

You might want to try with the double brackets.

Regards,

MF.