[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Conncetion Pooling on Clinet End

Posted on 2003-11-26
6
Medium Priority
?
184 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
4 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
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…
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…
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…
Suggested Courses
Course of the Month17 days, 17 hours left to enroll

829 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