473,387 Members | 1,575 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Temporary Tables in Crystal Reports

Hello,

I've scoured groups and the web, and haven't found a question like mine
answered.

I'm using Visual Studio 2003 with the Crystal Reports it comes bundled
with and SQL Server 2000. Throughout the project I'm working on, I
often find I need a temporary table displayed in a report, something
that I cannot seem to do. Since temporary tables are so useful, I
cannot imagine Crystal Reports wouldn't have a way to get such
information in, so maybe I'm looking in the wrong places. Is there a
way to do it, or at least a workaround solution?

Thanks in advance,
Conrad Eaglehill

Nov 22 '05 #1
2 7103
Saying "temprory table", do you mean that you collect data from different
tables, databases and put them into a temprory table and then use this temp
table as data source for your report? As far as Crystal Report goes, it does
not care the data for its reports is from temp table or not. It is not a
Crystal Report issue.

At least you have two ways to get your data into a "temprory table" and use
it for report data source:

1. Use temprory table in SQL Server. In SQL Server, you can easily write
some T-SQL code in SP to collect data from different tables/databases into a
temp table and return data in this temp table to a report. Since you use SQL
Server, it is one of the basic skill to learn.

2. Use Crystal Report's "PUSH" mode to get data for report. With "PUSH", you
can use ADO.NET to get all kind of data into a DataSet, whether they are
from the same database/table or not. In this sense, it is a temprory table
in memory of app-running computer. Then you use this DataSet as report's
data source (push it into a report).

<ai*****@hotmail.com> wrote in message
news:11*********************@g43g2000cwa.googlegro ups.com...
Hello,

I've scoured groups and the web, and haven't found a question like mine
answered.

I'm using Visual Studio 2003 with the Crystal Reports it comes bundled
with and SQL Server 2000. Throughout the project I'm working on, I
often find I need a temporary table displayed in a report, something
that I cannot seem to do. Since temporary tables are so useful, I
cannot imagine Crystal Reports wouldn't have a way to get such
information in, so maybe I'm looking in the wrong places. Is there a
way to do it, or at least a workaround solution?

Thanks in advance,
Conrad Eaglehill

Nov 22 '05 #2
Norman Yuan wrote:
Saying "temprory table", do you mean that you collect data from different
tables, databases and put them into a temprory table and then use this temp
table as data source for your report? As far as Crystal Report goes, it does
not care the data for its reports is from temp table or not. It is not a
Crystal Report issue.
Well, yes, that's what I'm saying, and no, it seems to matter since it
needs the name of the table, and clearly the tempORARY table has no
name during compile time since it's...temporary.
At least you have two ways to get your data into a "temprory table" and use
it for report data source:

1. Use temprory table in SQL Server. In SQL Server, you can easily write
some T-SQL code in SP to collect data from different tables/databases into a
temp table and return data in this temp table to a report. Since you use SQL
Server, it is one of the basic skill to learn.
I can create a temporary table in SQL Server, thank you very much.
Calling a Stored Procedure from Crystal Reports gives an "Unknown Query
Engine Error." If my stored procedure is called pTest, calling "pTest",
"EXEC pTest", amd "EXECUTE pTest," all succeed in the Query Analyzer,
but all give the "Unknown Query Engine Error" when I attempt to use it
in an SQL Expression Field. Is there some magic way to use stored
procedures in Crystal?
2. Use Crystal Report's "PUSH" mode to get data for report. With "PUSH", you
can use ADO.NET to get all kind of data into a DataSet, whether they are
from the same database/table or not. In this sense, it is a temprory table
in memory of app-running computer. Then you use this DataSet as report's
data source (push it into a report).


Well, though you give no example, this might be helpful. The "Complete
Reference" book on my desk has no mention of "PUSH" mode, but at least
this gives me a new avenue to pursue. I'll search for an example on the
web, I suppose.

Conrad Eaglehill

Nov 22 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Stephan | last post by:
Hi, I'm using Visual Studio 2003 (C#) with the integrated Crystal Report software and have the following question: How can I assign a value (string) to an unbound (string) field in Crystal...
5
by: BStorm | last post by:
I have a transaction log file where the DataSet table's Description column is actually delimited into "subcolumns" based upon the transaction id. I would like to parse these into separate fields...
2
by: airkart | last post by:
Hello, I've scoured groups and the web, and haven't found a question like mine answered. I'm using Visual Studio 2003 with the Crystal Reports it comes bundled with and SQL Server 2000....
1
by: Shelby | last post by:
Problem: My company generates its own data export from a propietary database. These (free) tables can be read in C#.NET using a Visual FoxPro driver (vfpoledb). I can read each of the six tables...
0
by: pontifikas | last post by:
First of all, I began to read about Crystal reports only today so forgive me for stupid questions, but time is of the essence. I have an application connected to many DB tables(SQL Server).Sar 30...
7
by: p | last post by:
WE had a Crystal 8 WebApp using vs 2002 which we upgraded to VS2003. I also have Crystal 9 pro on my development machine. The web app runs fine on my dev machine but am having problems deploying....
3
by: VMI | last post by:
I know this may not be the best NG for this, but I feel you guys know more about this than any of the other NGs. I need to build several simple reports (over 50 of them and they get their data...
1
by: popwhub | last post by:
I am having problems printing some reports from my application that are generated from temporary tables. The application has an Access FE and a SQL Server BE. The current method uses a temporary...
1
newnewbie
by: newnewbie | last post by:
Hi, Our vendor has a database that I connect to via ODBC. I work in Access. All the tables are "informix". The reports I run are rather painful to run due to the size of the original database and...
3
by: Miro | last post by:
Hi, Just wondering what a good book is on visual studios 2008 ( or 2005 if no 2008 ) that teaches you how to properly use crystal reports with it. Or im assuming that as long as I can create a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.