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
Solved

Parameter Values from Stored Procedure

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
data stored like ????? in sql server column 19 54
Query for timesheet application 3 17
SQL Availablity Groups List 2 7
SQL - Simple Pivot query 8 13
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…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

856 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