Groups | Blog | Home
all groups > sql server reporting services > may 2005 >

sql server reporting services : Stored procedures in Oracle


Antoon
5/12/2005 11:06:01 PM
I've followed the instructions in Robert Bruckners earlier mail about this
subject (http://support.microsoft.com/default.aspx?scid=kb;en-us;834305
and
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpcontheadonetdatareader.asp
). But I can't get it to work.

I've created the following stored procedure in oracle:

------------------------
create or replace package body Stored_Procedures is

Procedure ACNamen(p_acnamen Out refcur) Is
Begin
Open p_acnamen For Select * From activiteitencentra;
End;
end Stored_Procedures;
----------------------------

I've made an "oracle"' data source
When I type ACNamen in the SQL-pannel or Stored_Procedures.ACNamen I get
errors:
"Invalid SQL statement" and "MinimumCapacity must be non negative"

Would appreciate some help.
Robert Bruckner [MSFT]
5/18/2005 7:28:29 PM
When working with Oracle stored procedures you must use the text-based
generic query designer (2 panes). It is not clear from your description if
you are using the graphical or the text-based query designer (you can toggle
between these two by clicking an icon in the toolbar).

-- Robert
This posting is provided "AS IS" with no warranties, and confers no rights.

[quoted text, click to view]

Antoon
5/19/2005 1:21:09 AM
Yes, I did. The problem was with the parameter.
I 've made some progress (I think), but still have problems:

If I put Stored_Procedures.ACNamen(:a) in the pannel I get an empty result
set.

I defined a custom assembly:

Imports System

Public Class Class1

Public a As System.Data.OracleClient.OracleDataReader

End Class

And made a textbox with:

=ClassLibrary1.Class1.a.getname(1)

I get the error:
The value expression for the textbox ‘textbox1’ contains an error: Object
reference not set to an instance of an object.

If we get it solved I promise I'll write it all out and put it on the web.

[quoted text, click to view]
Robert Bruckner [MSFT]
5/19/2005 9:38:34 AM
Just specify the name of the stored procedure _without_ any arguments or
parenthesis in the text-based query designer. The report designer will then
automatically detect arguments.

--
This posting is provided "AS IS" with no warranties, and confers no rights.


[quoted text, click to view]

Antoon
5/19/2005 10:41:05 AM
Well, if I do that I get an oracle error "invalid sql-statement"
So I tried putting it in a block:

begin Stored_Procedures.ACNamen; end;

This gives me a result in the result-pane (yeah!) but when I refresh the
fields I get a new error:
"Could not generate a list of fiels for the query. Check the query syntax..."

....?...

[quoted text, click to view]
AddThis Social Bookmark Button