Solved

Parameter Values from Stored Procedure

Posted on 1998-07-24
1
209 Views
Last Modified: 2010-03-19
hi there, i am using crystal report 5.0, and i have a stored procedure from informix,
that asks for two parameters, when i run my report can i get the value of the paramaters
that i asked from the stored procedure? how can i do this?  



0
Comment
Question by:mallow
1 Comment
 
LVL 5

Accepted Solution

by:
mayhew earned 50 total points
ID: 1089193
To my knowledge, Crystal does not allow access to stored proc parameters at run time.  The only way I have found to do this is to include your parameters in your return set.

I'm not sure about informix, but in MS-SQL if you're going to return data, the last line of your stored proc is usually a select like:
SELECT * FROM #TABLENAME

In this example, #TABLENAME is a temp table that holds the dataset you want to return.

If your input parameter is named @inparam, your select would become:
SELECT *, @inparam AS "paramname" FROM #TABLENAME

This is not totoally efficient as it returns your parameter(s) in every row of your result set.  But you can exlude that field from the detail section of your report and just include it wherever you want.

Hope this is helpful!   :)

Don
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
I have a large data set and a SSIS package. How can I load this file in multi threading?
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now