COGNOiSe.com - The IBM Cognos Community

Legacy Business Intelligence => COGNOS ReportNet => Topic started by: cognosfreelancer on 26 Aug 2005 08:20:32 AM

Title: user written SQL
Post by: cognosfreelancer on 26 Aug 2005 08:20:32 AM
Folks

When my client runs a report developed in Report Studio with handwritten SQL she gets an error 'user defined SQL is not permitted'.

Short of doing the following:

- granting her permission to use the Report Studio capability
- using a view in place of the hand written SQL either in the database or FM model

how can I get her to run the report successfully.

Thanks
NKT
Title: Re: user written SQL
Post by: Merri on 28 Aug 2005 07:19:11 PM
I think those are the only options you have. It would be worrying if you could get around the security that easily!

You could always get her to send you the SQL (assuming you have permission to run user-defined SQL), so you can run it for her.
Title: Re: user written SQL
Post by: BIsrik on 29 Aug 2005 01:25:27 AM
share with us how you enabled that security feature. I too have the same probs and tried all the options but all in vien.
Title: Re: user written SQL
Post by: Draoued on 29 Aug 2005 06:49:25 AM
If you give the Report Studio to your customer, it means that the Report Studio icon will appear in the upper-right corner, so she will be able to develop her own report in report studio. I m not sure if this is the option you want.
And a new report studio user means 1 report Studio Licence.

There is another way:
In Cognos Connection , go to Tools/Capabilities
Click Report Studio
and open the properties of User Defined SQL, here you can grant execute permission to any user-class or to another role, like for example Consumer.
If you grant "User Defined SQL" to the Consumer role, it would mean that any body allowed to execute reports, can execute it even if it contains hand written SQL. And they will not have the Report Studio component available.


I would recommend that you do the same for HTML Items in Report otherwise any javascript or HTML tags added to the report will not work.


Hope it helps.
Title: Re: user written SQL
Post by: cognosfreelancer on 29 Aug 2005 08:17:40 AM
Draoued

Exactly what I needed. Thanks a bunch.

So simple I feel so stupid. ;D
Title: Re: user written SQL
Post by: Merri on 29 Aug 2005 06:42:03 PM
Well done, Draoued. Great explanation of how to grant the capability.

In my answer, I assumed you knew that this was a separately-grantable capability, that she already had Report Studio, and you didn't want to grant her the extra functionality.

There are a few other separately securable functions - HTML, as Draoued noted, and bursting, as well as create/delete. The Admin & Security Guide explains them all.