Results 1 to 2 of 2
- 10-02-2011, 09:16 PM #1
Member
- Join Date
- Oct 2011
- Posts
- 1
- Rep Power
- 0
Need help connecting to database on website!!!!
Hi there
I am doing a school project and have decided to make a database which i can store user info and car info (its a car auction program)
But i am having trouble with the connection to the database... we have been told to use jdbc odbc connection so is there a way to use this method to connect to my database?
this is my connection code when connecting to the database locally:
con = DriverManager.getConnection("jdbc:odbc:DRIVER={Mic rosoft Access Driver (*.mdb, *.accdb)};DBQ=CarDealership.accdb");
i omitted the other code because it is pretty standard code to do this connection.
But now i want to connect to a database of the same name on this site:
sites.google.com/site/card3al3rsh1p
what must i change in my code to be able to connect to the database on the internet????
please please plssssssss help me really want to get this to work
thanks and regards
- 10-03-2011, 10:23 AM #2
Moderator
- Join Date
- Apr 2009
- Posts
- 10,438
- Rep Power
- 16
Re: Need help connecting to database on website!!!!
Is that database accessible from the outside world?
Considering it's an Access one I would expect the answer to be "no".
Even if it were a MySQL one, exposing your database directly to the web is a Bad Thing. You would normally have some other app in between that hid the database fromn direct access, eg a Java webapp.
Similar Threads
-
connecting to a database
By mxb7642 in forum JDBCReplies: 5Last Post: 09-08-2009, 08:39 AM -
connecting to a database
By kswiss in forum NetBeansReplies: 4Last Post: 06-25-2009, 06:22 PM -
Connecting JSP with database
By ramachandran in forum JavaServer Pages (JSP) and JSTLReplies: 3Last Post: 05-13-2009, 06:15 AM -
Connecting to a database
By peiceonly in forum New To JavaReplies: 2Last Post: 04-06-2008, 02:28 PM -
Connecting to a Website with the default browser
By Riftwalker in forum Java AppletsReplies: 4Last Post: 12-04-2007, 04:57 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks