Re: sql expression
- From: "Alan Fields" <alan.fields@xxxxxxxxxxx>
- Date: 12 May 2006 07:17:36 -0700
Forget the sql expressions and functions. Create a stored procedure
similar to that shown below in SQL Enterprise Manager. Use this stored
procedure as the data source for your report. Crystal will create the
parameter fields (param1, param2 and param3) or whatever and how many
parameters you use. It will use the results of the select statement as
the database fields. I hope this helps.
CREATE PROCEDURE [dbo].[my_stored_procedure]
@param1
,@param2
,@param3
AS
DECLARE
@temp_table (define_your_table_here) TABLE
--put your logic below here
--put your logic above here
SELECT * FROM @temp_table
RETURN
.
- Follow-Ups:
- Re: sql expression
- From: Eitan
- Re: sql expression
- References:
- sql expression
- From: Eitan
- Re: sql expression
- From: Alan Fields
- Re: sql expression
- From: Eitan
- Re: sql expression
- From: Alan Fields
- Re: sql expression
- From: Eitan
- Re: sql expression
- From: Briscobar
- Re: sql expression
- From: Eitan
- Re: sql expression
- From: Alan Fields
- Re: sql expression
- From: Eitan M
- sql expression
- Prev by Date: Logon Failed Exception
- Next by Date: Re: sql expression
- Previous by thread: Re: sql expression
- Next by thread: Re: sql expression
- Index(es):
Relevant Pages
|