Hi,
I created a test procedure as below. However, when I execute the proc, I
get the message stating: Procedure test_sp expects parameter @fldofc which
was not supplied. In the Parameters tab I have made the assignment properly.
Also, I added them to the Report Parameters in the main menu. When I call the
proc in the Query string, I have tried all these options:
1.) exec test_sp @fldofc, @csmplmkt
2.) test_sp
3.) exec test_sp
Nothing works! I am using Sybase ASE 12.5. Please help!! Thanks in advance.
The proc is below. (Arshad)
create proc test_sp
@fldofc int ,
@csmplmkt int
as
begin
select * from cdv
end
go
MJT - 28 Feb 2006 19:22 GMT
I am not certain this is the case with Sybase ... but I use DB2 and I cannot
use that format for my parameters ... I have to enter my parameters as
questions marks because I cant use "named parameters". The other thing to
check is whether you have the command type on your dataset as "stored
procedure" and not "text" or something else.
> Hi,
>
[quoted text clipped - 21 lines]
> end
> go
Arshad Syed - 28 Feb 2006 19:41 GMT
When calling the proc, I do not use any parms in the Query Designer, only the
name of the proc, but I get these as the parms as default in Report
Parameters:
@fldofc
@csmplmkt
... and replacing them with a ? doesn't help. It reverts back to the same.
Thanks,
Arshad
> I am not certain this is the case with Sybase ... but I use DB2 and I cannot
> use that format for my parameters ... I have to enter my parameters as
[quoted text clipped - 27 lines]
> > end
> > go
Bruce L-C [MVP] - 28 Feb 2006 21:14 GMT
The parameters must be unnamed. I report extensively (unfortunately) against
Sybase. This is what I have found works best for me.
1. Use ODBC, not OLEDB
2. For stored procedure use the generic designer (2 pane), text command type
and put in this:
test_sp ?,?
Execute it and put in the values when prompted. If no field list is created
then click on the refresh fields button (to the right of the ..., looks like
the refresh button for IE).

Signature
Bruce Loehle-Conger
MVP SQL Server Reporting Services
> Hi,
>
[quoted text clipped - 24 lines]
> end
> go