Solved

Crystal Report executes slowly on vb.net app using OLE DB

Posted on 2006-11-15
4
244 Views
Last Modified: 2010-04-23
Hi all,
I'm working with vb.net and created crystal report, using ole db provider. Data source for this report is stored procedure built in sql server 2005. Executing report takes about 30 sec, but stored procedure executes in one sec in Database Engine Query (result of procedure is set of 1600 records). When i switch report datasorce to ODBC, report executes in 3 seconds. It doesn't seem to me normall, but that is fact.

If someone know what is problem, please help me. I prefere ole db and would use it, it's newer than odbc.


dragy
0
Comment
Question by:dragy
  • 2
4 Comments
 
LVL 6

Accepted Solution

by:
riyazthad earned 100 total points
ID: 17953210
Are you pulling from datasource directly to report

or

Are you pushing dataset to report.

Second methos may be fast.
0
 
LVL 1

Author Comment

by:dragy
ID: 17953891
I'm doing this by pushing dataset to report:

Dim cr1 As New CrystalReport1
cr1.SetDataSource(sqlds.Tables("kls_art"))
crviewer.ReportSource = cr1

It seems to me that app is trying to find db server and it takes about thirty seconds. Db server is on the same machine as app is.
I'm using Microsoft OLE DB Provider for SQL Server, it should be the faster way.
0
 
LVL 1

Author Comment

by:dragy
ID: 18137038
All right,
riyazthad  helped me to find solution.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

785 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