Solved

Parameter Values from Stored Procedure

Posted on 1998-07-24
1
223 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

Get Actionable Data from Your Monitoring Solution

Your communication platform is only as good as the relevance of the information you send. Ensure your alerts get to the right people every time with actionable responses. Create escalation rules that ensure everyone follows the process and nothing is left to chance.

Question has a verified solution.

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

Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
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.

717 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