"Could not generate a list of fiels for the query. Check the query syntax..."
"Robert Bruckner [MSFT]" wrote:
> 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.
>
>
> "Antoon" <Antoon@discussions.microsoft.com> wrote in message
> news:FBCBEAF7-460A-4BF4-B83E-84D501CA71CF@microsoft.com...
> > 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.
> >
> > "Robert Bruckner [MSFT]" wrote:
> >
> >> 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.
> >>
> >> "Antoon" <Antoon@discussions.microsoft.com> wrote in message
> >> news:B29EC325-E789-4910-B407-0A3BD07D7C03@microsoft.com...
> >> > 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.
> >> >
> >>
> >>
> >>
>
>