all groups > sql server reporting services > february 2006 >
You're in the

sql server reporting services

group:

Stored Procedure - Parameter Problem on Sybase


Stored Procedure - Parameter Problem on Sybase Arshad Syed
2/28/2006 11:12:44 AM
sql server reporting services:
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
RE: Stored Procedure - Parameter Problem on Sybase MJT
2/28/2006 11:22:26 AM
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.

[quoted text, click to view]
RE: Stored Procedure - Parameter Problem on Sybase Arshad Syed
2/28/2006 11:41:20 AM
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

[quoted text, click to view]
Re: Stored Procedure - Parameter Problem on Sybase Bruce L-C [MVP]
2/28/2006 3:14:48 PM
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).


--
Bruce Loehle-Conger
MVP SQL Server Reporting Services

[quoted text, click to view]

AddThis Social Bookmark Button