posted 19 years ago
You configure database drivers for different databases in different ways, but at some point you have to specify things like the database server machine name and port. The machine name can be somewhere on a corporate network or the Internet. For example, here's how I connect to SQL Server 2000:
mConnection = DriverManager.getConnection("jdbc:microsoft:sqlserver:" + name, userid, password);
The "name" parameter is something like "//bigserver:1234". If you can ping the server you oughtta be able to connect. My DB2 driver requires me to go through a DB2 client configuration tool and set up an alias for the machine & port information.
What database & driver are you using? Does this help?
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi