Solved

Conncetion Pooling on Clinet End

Posted on 2003-11-26
6
177 Views
Last Modified: 2010-05-03
Is there a way to achieve connection pooling at a VB client end ( something like MTS dows in middle layer). Our application consists of number of independent exes each creating objects for communicating with COM components. I want to reuse these connection objetcs among those EXEs on client end only. Is there a way to acheive this.
0
Comment
Question by:rompchomp
  • 2
6 Comments
 
LVL 9

Expert Comment

by:dancebert
ID: 9830226
Well, you've probably figured out that you can't pass an ADO connection object across a process boundry (between EXEs).  
0
 
LVL 9

Expert Comment

by:dancebert
ID: 9834185
Do all of the EXEs share a common connection string?  If they don't AND assuming that there was some way to share the connection object, reusing the connection object would gain you very little.  Creating a connection to the database can be broken down into two parts.  The first part is the creation of the connection object and setting it's properties.  The second part is connecting the the database.  Sharing an connection object while using different connection strings would allow you to avoid having to do the first part each time, but you'd still have to do the second part.  The time taken by the first part is trivial compared to the time taken by the second part.

What is the big picture?  Does your architecture involve the client holding a connection open and you wish to reduce the number of connections?  Are you trying to improve the client's performance?

turkeyBURP!  Hmmmm .... Pumpkin pie .....
0
 

Author Comment

by:rompchomp
ID: 10181990
Thanks for your comments. We are using common "connection string" but creating different connection objects from our EXEs and we have found that SQL Sever 2000 does the connection pooling itself even for those connection objects which were set to Nothing from the EXEs. That way we think our problem is solved.
0
 

Accepted Solution

by:
PashaMod earned 0 total points
ID: 10198536
PAQed, with points refunded (250)

PashaMod
Community Support Moderator
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

735 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