Solved

Conncetion Pooling on Clinet End

Posted on 2003-11-26
6
172 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

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…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

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

12 Experts available now in Live!

Get 1:1 Help Now