Solved

Conncetion Pooling on Clinet End

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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 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…

856 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