Solved

using adodb connection while calling crystal report

Posted on 2002-04-15
7
279 Views
Last Modified: 2008-03-17
Hi All,
    I am having a connection, opened in  my VB project.When i am calling the crystal report,It's loading
very slowly. In The crystal .rpt file,I am calling a stored procedure with maximum of 10 parameters.

     Is it slow,because of the crystal report  connection?.
     If is it so,How can i use the same dsnless
connection in my project?

Thanks in advance
Sri Prabha
0
Comment
Question by:Sriprabha
  • 4
  • 3
7 Comments
 

Accepted Solution

by:
VBMeera earned 60 total points
Comment Utility
did u check that this happen with .rpt file only?
or else ur m/C is slow?
coz crystal report is not supposed to slow?
try below
1. if ur SP is having 10 or more parameter check .rpt using one parameter?
2. Try to execute u r SP in Query Analyser


0
 

Author Comment

by:Sriprabha
Comment Utility
Hi vbmeera,
       Crystal report Parameter field accepts only 255 chars.But I am sending the Query which is Dynamically generated according to the Multiselect listbox in my VB form.It will surely exceed 1500 chars.I can't reduce the no of parameters.
       one more thing.While executing the stored procedure through the query analyzer it's pretty fast only.
       The above one is my requirement.But I am having the
doubt that whether there is a method to use the connection in VB which is already created.Is there any methodfor this.

Thanks for u'r response

Regards
Sriprabha.

0
 

Expert Comment

by:VBMeera
Comment Utility
hey do one thing,
send me u r SP code which u used thr VB.
i will thing u r creating parameter ,appending it
am i right?
it might conflicting u r datatypes?
send those 4-5 lines where actual call for SP
0
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 

Author Comment

by:Sriprabha
Comment Utility
Thanks for u'r immediate response.

     While Running through the query analyzer it's fast enough only.While calling the stored procedure in the crystal report,during the first time it's slow.I am very much sure that there is no problem in my SP.

     You just tell me that,whether there is a way to use the connection created in vb.

Regards,
Sriprabha

0
 

Expert Comment

by:VBMeera
Comment Utility
hey ,
i am not telling u that there is pro in ur SP what i am trying to tell u that while calling thr vb u r passing parameter to ur SP and then u r getting O/P as .rpt file.
so do pass parameter u need to creat it and then append that parameter ,isn't it?
design .rpt file is one task and call that rpt file thr vb is different.(this what i
create object connection,command and Recordset object  
and call SP using Command
if u need code tell me
okay.
0
 

Author Comment

by:Sriprabha
Comment Utility
I know that vbmeera.

    I have created the .rpt file.While creating it,i have opted SQL-ODBC dsn connection.
    I am calling the SP with the command object only.

     Because mine is a multiuser project the connection will open for the every first call of the .rpt file  .This may slow down the SQL sever.
      My argument is that,Already one connection is there.Why can't we use that one?.It will increase the speed of the application.

Thanks for u'r response

Regards
Prabha
0
 

Author Comment

by:Sriprabha
Comment Utility
I know that vbmeera.

    I have created the .rpt file.While creating it,i have opted SQL-ODBC dsn connection.
    I am calling the SP with the command object only.

     Because mine is a multiuser project the connection will open for the every first call of the .rpt file  .This may slow down the SQL sever.
      My argument is that,Already one connection is there.Why can't we use that one?.It will increase the speed of the application.

Thanks for u'r response

Regards
Prabha
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

744 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

16 Experts available now in Live!

Get 1:1 Help Now