Advertisement

09.24.2007 at 11:24PM PDT, ID: 22850260
[x]
Attachment Details

How to connect to a list of databases...

Asked by Hypo in SQLBase, Delphi Programming, Delphi Database

Tags: gupta, sqlbase

Hi,
I have a list of databases that resides on remote computers. I have access to computername/servername, IP-address and database names for each database. And what I want to do is to connect to each of these databases and read a value from a specific table. However, I can't seem to figure out what connectionstring to use to tell the SQLbase driver which computer to connect to.

Does anybody have any Idea of how to do this? I'm quite frustrated at the moment of how hard it is to get (what seems to be) such an easy task to work.

I think I could get it to work by adding each database in the ODBC, but I don't like that sollution because there is more than 1k of databases to connect to, and since that list is being updated on a regular basis, I would have to update the ODBC each time the db-list is updated.
Another sollution I've been thinking about is to automatically create DSN files for each Database connection, and then use the dsn file in my connectionstring for each database... That sollution would work for me, IF I only knew what parameters to use. I would like to be able to set the serverpath property (or similar) in the DSN file, but I don't know If this is possible..?
Is there really no good way to pinpoint a servername at a specific IP along with a databasename in the Connectionstring for SQLBase?

The computers I should be connecting to all has the following setting in SQL.ini
...
[dbntsrv.dll]
comdll=sqlws32
...
And I interpret this as if they are using Sockets instead of pipes for client connections

I'm using Delphi 7 along with Gupta Centura SqlBase 7.6.1 and the TADOConnection component... Start Free Trial
[+][-]09.24.2007 at 11:52PM PDT, ID: 19953808

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.25.2007 at 12:18AM PDT, ID: 19953914

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.25.2007 at 12:46AM PDT, ID: 19954003

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.25.2007 at 02:50AM PDT, ID: 19954384

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.25.2007 at 02:56AM PDT, ID: 19954405

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.25.2007 at 05:40AM PDT, ID: 19955159

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.25.2007 at 07:37AM PDT, ID: 19956032

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.30.2007 at 10:03AM PDT, ID: 20179051

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]11.04.2007 at 10:32AM PST, ID: 20211547

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: SQLBase, Delphi Programming, Delphi Database
Tags: gupta, sqlbase
Sign Up Now!
Solution Provided By: Computer101
Participating Experts: 4
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628