Results 1 to 10 of 10
- 04-23-2009, 05:17 AM #1
Member
- Join Date
- Apr 2009
- Posts
- 4
- Rep Power
- 0
How to create remote client to connect with MS Access?
Hi, i'm new in Java...
can i know how to create a link to allow remote client login to the Microsoft Access database in the server side?
This is the code i have done before, but only can access in server side.
try {
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
// set this to a MS Access DB you have on your machine
String url = System.getProperty("user.dir")+"\\db1.mdb";
String database = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=";
database+= url.trim() + ";DriverID=22;READONLY=true}";
con = DriverManager.getConnection( database ,"","");
} catch (Exception e)
{
System.out.println(e);
}
pls help me....
Thank ....:confused:
- 04-23-2009, 08:31 AM #2
Senior Member
- Join Date
- Jun 2008
- Posts
- 2,366
- Rep Power
- 7
The Access DB would have to be on a shared disk that the client has access to, or you have to create your own server that holds the connection to the db and that the client can communicate with.
- 04-23-2009, 09:00 AM #3
Member
- Join Date
- Apr 2009
- Posts
- 4
- Rep Power
- 0
The Access DB would have to be on a shared disk that the client has access to, or you
Actually i put my Microsoft Access at server side d...
but i dunno how to write the coding for client to access server side's database..
Is that any related example for this problem?
or
i ned to install third party MS Access JDBC Driver to slove this problem?
Thank you..:)
- 04-23-2009, 09:09 AM #4
Senior Member
- Join Date
- Jun 2008
- Posts
- 2,366
- Rep Power
- 7
IOW, you cannot access an Access DB remotely. It has to be available to the local systems filesystem. So, you write a server that communicates with the db, and the client communicates with that server, or you share the disk on which the Access DB resides (but then be prepared for concurrency issues).
- 04-23-2009, 09:18 AM #5
Member
- Join Date
- Apr 2009
- Posts
- 4
- Rep Power
- 0
erm...my server already communicate with db but how to let client communicate with server?
- 04-23-2009, 09:33 AM #6
Senior Member
- Join Date
- Jun 2008
- Posts
- 2,366
- Rep Power
- 7
- 04-23-2009, 09:55 AM #7
Member
- Join Date
- Apr 2009
- Posts
- 4
- Rep Power
- 0
i share out my Access DB...
it work...
Thank you...
- 07-30-2012, 12:02 PM #8
Member
- Join Date
- Jul 2012
- Posts
- 1
- Rep Power
- 0
Re: How to create remote client to connect with MS Access?
hi.. i have an issue. I have my guest and host as win XP. my db is in guest and i ran the code from the host machine. the db has been shared between the guest and the host. Am able to access my shared folder in the guest. The issue is, should i add any code in source file(java) so that the client can communicate with db?
- 10-17-2012, 09:57 PM #9
Member
- Join Date
- Oct 2012
- Posts
- 4
- Rep Power
- 0
- 10-19-2012, 04:16 AM #10
Similar Threads
-
Accessing a remote Microsoft Access database
By ajeeb in forum JDBCReplies: 3Last Post: 12-01-2011, 06:40 AM -
Access Remote Session Bean from an separate web app
By kiyoharatakuya in forum Enterprise JavaBeans (EJB)Replies: 4Last Post: 04-24-2009, 03:46 PM -
remote access
By Omarero in forum NetBeansReplies: 1Last Post: 11-03-2008, 07:36 AM -
remote file access problem
By kib_tse in forum New To JavaReplies: 2Last Post: 08-14-2008, 06:04 PM -
how to create java client to access web services running on https/ssl
By navneet1083 in forum NetBeansReplies: 0Last Post: 11-13-2007, 10:13 AM


LinkBack URL
About LinkBacks




Bookmarks