Solved

Business Objects, Crystal Reports, 2008, Opening a Stored Procedure from SQL

Posted on 2008-10-13
5
155 Views
Last Modified: 2010-03-19
I created a strored procedure that creates multiple tables in MS SQL. When I open the procedure in Crystal, It only shows on table. The data it shows is from the first table out of the 8 tables in total.
USE [OPENENROLL]

GO

/****** Object:  StoredProcedure [dbo].[OpenEData]    Script Date: 10/13/2008 12:03:03 ******/

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

-- =============================================

-- Author:		BP

-- Create date: 

-- Description:	Open Data

-- =============================================

ALTER PROCEDURE [dbo].[OpenEData] 

	-- Add the parameters for the stored procedure here

	

AS

BEGIN

	-- SET NOCOUNT ON added to prevent extra result sets from

	-- interfering with SELECT statements.

	SET NOCOUNT ON;
 

    -- Insert statements for procedure here

	select * from [OpenEnroll] where [NET-ENROLL] LIKE '%*0';

select * from [OpenEnroll] where [NET-ENROLL] LIKE '%*1';

select * from [OpenEnroll] where [NET-ENROLL] LIKE '%*2';

select * from [OpenEnroll] where [NET-ENROLL] LIKE '%*3';

select * from [OpenEnroll] where [NET-ENROLL] LIKE '%*4';

select * from [OpenEnroll] where [NET-ENROLL] LIKE '%*5';

select * from [OpenEnroll] where [NET-ENROLL] LIKE '%*6';

select * from [OpenEnroll] where [NET-ENROLL] LIKE '%*7';

select * from [OpenEnroll] where [NET-ENROLL] LIKE '%*8';

END

Open in new window

0
Comment
Question by:bdpcpa
  • 3
  • 2
5 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 22703913
That is the way Crystal works.  It will only work on a single SELECT statement in  a stored procedure.

See this article from Crystal
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40a8a5f2-a81e-2b10-da9f-9282db9fedae

mlmcc
0
 

Author Comment

by:bdpcpa
ID: 22704442
So is there another way around this besides creating all of those tables in sql creating a view and then linking crystal to the view?
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 22704661
You may be able to create a recordset through an applicationi and pass that to the report.

mlmcc
0
 

Author Comment

by:bdpcpa
ID: 22704686
You have been very helpful, I will make this my last question. Can you elaborate on what application I could use to create the recordset, I am not an advanced user.
Thanks,
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 22705080
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Join & Write a Comment

by Mark Wills Attending one of Rob Farley's seminars the other day, I heard the phrase "The Accidental DBA" and fell in love with it. It got me thinking about the plight of the newcomer to SQL Server...  So if you are the accidental DBA, or, simp…
In SQL Server, when rows are selected from a table, does it retrieve data in the order in which it is inserted?  Many believe this is the case. Let us try to examine for ourselves with an example. To get started, use the following script, wh…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

758 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

21 Experts available now in Live!

Get 1:1 Help Now