Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

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

Posted on 2006-11-15
4
Medium Priority
?
258 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
3 Comments
 
LVL 6

Accepted Solution

by:
riyazthad earned 300 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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

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…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses
Course of the Month20 days, 20 hours left to enroll

810 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