COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: barrysaab on 26 Sep 2011 12:47:08 PM

Title: Native Sql giving an error
Post by: barrysaab on 26 Sep 2011 12:47:08 PM
When i generate native Sql and copy paste on pl/sql developer ,it is giving me an error. isn't it supposed to give me data?please help me.Thanks
Title: Re: Native Sql giving an error
Post by: blom0344 on 26 Sep 2011 02:04:56 PM
It depends.. In more complicated cases the native SQL proposed may be a SET of query definitions. Each individual set may run , but if you simply copy / paste everything in one go the query tool may not be able to handle it. You should also be aware that the SQL  generated from within the report may NOT be the actual statement executed. It is a proposition (a next best guess).
At last the where clause may contain expressions that a native querytool will not recognize..
Title: Re: Native Sql giving an error
Post by: barrysaab on 27 Sep 2011 07:46:25 AM
Thanks,but why then everybody makes it sound so simple saying "copy and paste" the report sql to your database.It certainly not seems that easy or may be i am trying the wrong way.
Title: Re: Native Sql giving an error
Post by: blom0344 on 27 Sep 2011 09:54:28 AM
Who's everybody?   ;) Your copy and paste action itself proves that you need to be a bit creative here..
Title: Re: Native Sql giving an error
Post by: barrysaab on 27 Sep 2011 12:09:40 PM
Sorry for being bit boring mate! I was just trying to put my point across.