Solved

Using a RDO connection from a different program

Posted on 1998-07-22
2
133 Views
Last Modified: 2010-05-03
I wrote 10 different client server applications for SQL-Server. Now, my problem is that this uses 10 different connections on SQL-server. Is it possible for a VB app to use a sql connection from a different vb app.
0
Comment
Question by:evertd
2 Comments
 
LVL 9

Accepted Solution

by:
cymbolic earned 200 total points
ID: 1466390
Yes.  You need to do connection pooling via an OLE process to conserve connections.  That is you would write an out of process OLE database server.  It would establish the connection(s), and your client routines would perform I/O using methods to the OLE Server.  ANother advantage of this techinique is that you have consolidated all your database I/O in one piece of code, thereby making it possible to collect central measurements and to easily convert to another database.  This also provides an abstraction layer between your business logic and your database logic, and prepares you to move your application into an n-tier mode, eventually migrating your ole server through dcom into a separate machine, and distributing your application to handle higher volumes.
0
 
LVL 2

Author Comment

by:evertd
ID: 1466391
oke, but it is not so easy as a thought because all the programs are already written, so I have to rewrite them.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

Title # Comments Views Activity
VBA error replacing data 6 41
Put text in a picture ASP.NET C# 2 68
Problem to With line 4 76
Powerpoint 2013: Change cell reference in excel link 3 122
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…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

730 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