Solved

Parameter Values from Stored Procedure

Posted on 1998-07-24
1
222 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
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…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.

738 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