I guess depend on the JDBC driver you using. Read the documents of the
driver for
how to specify the url of the database, both for local and remote database.

liwen

----- Original Message -----
From: "Rob Hazlewood" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, May 13, 2000 10:24 AM
Subject: stupid question, but rather urgent (JDBC)


> Hi all,
> i'm trying to make a simple database connection to a remote database:-
>
> This works if the database is running on my machine:
>     String url = "jdbc:odbc:AccessDatabase";
>
> To run it remotely, should it be modified to something similar to this?
>     String url = "jdbc:odbc://192.168.1.21:someport/AccessDatabase";
>
> thanks
> Rob
>
> (i'm not deploying the application with an access database!)
>
> ____________________________________________________________________
> Get free email and a permanent address at http://www.netaddress.com/?N=1
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to