Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / Services / Reporting Services / February 2006

Tip: Looking for answers? Try searching our database.

Stored Procedure - Parameter Problem on Sybase

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Arshad Syed - 28 Feb 2006 19:12 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.