Solved

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

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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
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 …
This video discusses moving either the default database or any database to a new volume.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

707 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

13 Experts available now in Live!

Get 1:1 Help Now