Solved

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

Posted on 2006-11-15
4
242 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

911 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