Win a copy of Spring Boot in Practice this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

connection to Access on another machine.

 
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
All,
I'm trying to connect to an access data base on my machine first and then on access data base on another machine .
The following code is NOT working :
Connection con=DriverManager.getConnection("jdbc dbc://localhost:1114/database1","","");
i have register that database as data source.
i got the following error message:
------------------------------------
[Microsoft][ODBC Driver Manager] Data source name not found and no default
driver specified
-------------------------------------
also what do i need more than just typing the ip addresss instead of localhost to connect to another database on another machine?.
thanks.
 
Ranch Hand
Posts: 1879
MySQL Database Suse
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
from what i understand, Access is just a souped up file. There are no listeners, ports, etc. So you can't remotely connect to it. If it resides on a computer that is on your network, then you should be able to set up a 'System DSN' to point to the location of the remote Access DB. Another option is to use the RMI JDBC which allows you to remotely access MSAccess and MSSQL Server databases.
see here for more info.
Jamie
reply
    Bookmark Topic Watch Topic
  • New Topic