Perhaps it’s stange use BO for update, but I need to calculate some value with complex formulas (stored into a db table) before running my report. (is it really so stange? ).
then, if it is not a user issue, maybe BusinessObjects has an internal system to avoid query other than “Select” for security reasons, including stored procedures but I am not sure about it.
I suggest you to ask techsupport about this question
I found a discussion here about 6.5 restricting stored procedures to just do select – and it sounds like some hotfix for SP 2 might reverse that restriction.
Hi
Many many thanks Anita!
I had already found the past discussion and, reading them, all seam work! (or my english is too bad! )
Your second post confirm my fear.
I have tried another solution: using a VBA script for call my SP with update.
Example:
Private Sub Document_BeforeRefresh(Cancel As Boolean)
Dim a As ADODB.Connection
Set a = New ADODB.Connection
a.ConnectionString = "Provider=SQLOLEDB.1;Password=MyPassword;Persist Security Info=True;User ID=MyUserName;Initial Catalog=MyDataBase;Data Source=MyServerSQL"
a.Open
a.Execute "MyStoredProcedure"
a.Close
End Sub
There are two little defects about this:
I have not found the event for call my procedure after the prompt and before the start of the select. So, for use some prompt, I must declare the form for manage all my request defined in the prompt.
I must disable the control check about the macro for BO.
I’m not sure that it’s the best solution, but, it seam work.