?
Solved

Conncetion Pooling on Clinet End

Posted on 2003-11-26
6
Medium Priority
?
181 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
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…
Suggested Courses
Course of the Month9 days, 11 hours left to enroll

762 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