Data Connectivity
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Data Connectivity
Message Icon Topic: Report taking too long to run when using command a Post Reply Post New Topic
Author Message
Busi
Newbie
Newbie
Avatar

Joined: 20 Oct 2014
Location: Zimbabwe
Online Status: Offline
Posts: 2
Quote Busi Replybullet Topic: Report taking too long to run when using command a
    Posted: 24 Nov 2014 at 10:56pm
I have a report developed using Crystal Reports XI and i have embedded SQL a statement in a command. The problem I am having is that the report is now taking a very long time (15mins+) to run but the other version of the same report which makes use of tables only is very quick (1-2mins).
Am I doing something wrong? What should I do correct this
IP IP Logged
z9962
Senior Member
Senior Member
Avatar

Joined: 04 Jul 2012
Online Status: Offline
Posts: 161
Quote z9962 Replybullet Posted: 25 Nov 2014 at 12:35am
Are you using tables and commands, then joining these in Crystal?
IP IP Logged
Busi
Newbie
Newbie
Avatar

Joined: 20 Oct 2014
Location: Zimbabwe
Online Status: Offline
Posts: 2
Quote Busi Replybullet Posted: 25 Nov 2014 at 7:00pm
Yes, i have just one table that i am joining to the command
IP IP Logged
z9962
Senior Member
Senior Member
Avatar

Joined: 04 Jul 2012
Online Status: Offline
Posts: 161
Quote z9962 Replybullet Posted: 25 Nov 2014 at 10:45pm
As soon as you join a table to a command your local machine needs to do all the work, can you add your table into your command?
IP IP Logged
Vimal Nair
Newbie
Newbie
Avatar

Joined: 29 Dec 2014
Location: United Arab Emirates
Online Status: Offline
Posts: 26
Quote Vimal Nair Replybullet Posted: 27 Jan 2015 at 12:23am
Take out the Table from your report and join that table in your main query itself. So that the whole sql will execute in single run and fetch records to your report. Also check the kind of Data connectivity you are using for the report. Doing joins at the crystal report level takes more time for huge no of records than a direct query fetch.
Born To Live
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.