If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

Execute Store Procedure from SQL query object in Report Studio

Started by Dominguez, 12 Mar 2012 01:31:25 PM

Previous topic - Next topic

Dominguez

Hi!

My report has an SQL query object that execute an SQL Server sotre procedure.  The store procedure insert data into temporary tables. When I click on the Validate button I get this error without any more detail: The server returned an unrecognizable query framework response

If I write an insert statement in the SQL in Report Studio (without calling an store procedure) I get the same error.

Is it a permissions problem in the database or in Cognos?   I verified the permissions and everything seems to be OK.

I appreciate any help.

Thanks!
Christian

Grim

Cognos is a reporting tool meant to read "Select" data not "insert". That said though, if the account performing the SQL query has proper DB rights you should be able to insert (Theoretically). So this might be a DB perms issue. Trace it with your DBA to see what the DB is coming back with.

Did you see the following technote:
http://www-01.ibm.com/support/docview.wss?uid=swg21576274
"Honorary Master of IBM Links"- MFGF
Certified IBM C8 & C10 Admin, Gamer, Geek and all around nice guy.
<-Applaud if my rant helped! 8)

Dominguez

Hi Grim. Thanks for your response.

The DBA verify the accounts permissions and I still have the issue.   

Could it be something wrong in the expression?  This is the expression I am writing in the SQL window in Report Studio:  {exec Database_Name.Schema.Stroe_Procedure_Name #prompt('field1','integer')#, #prompt('field2','integer')#}

Thanks!

Grim

"Honorary Master of IBM Links"- MFGF
Certified IBM C8 & C10 Admin, Gamer, Geek and all around nice guy.
<-Applaud if my rant helped! 8)

Dominguez

I agree with you.  But, this report is working in CRN.  It use the same SQL pointing to the same database.  I would like to migrate the report exactly like it is in CRN.  If there's no other option I will have to import the SP into FM.

Thanks for your help.