Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Databases / June 2005

Tip: Looking for answers? Try searching our database.

JDBC...Uploading making a problem!

Thread view: 
rasha_cs_99@hotmail.com - 13 Jun 2005 21:12 GMT
Hi all,

I have a java program that reads from a MS Access DB, and every thing
is fine. I used the ODBC:JDBC connection...I mean I added the DB to the
ODBC Datasources! But after I've uploaded my JAR file and the DataBase
it didn't work on the net. How can I solve it?

Regards,
Rashrashetta
John Currier - 13 Jun 2005 23:05 GMT
What do you mean by "I've uploaded my JAR file" and "it didn't work on
the net"?  You've given us very little to go on.

John
http://schemaspy.sourceforge.net
rasha_cs_99@hotmail.com - 14 Jun 2005 21:28 GMT
I mean when I tried to upload my JAR file, the JAR file no more reads
from the DataBase and it gives the error
[microsoft][ODBC Driver Manager] Data Source name not found and no
default driver specified
What does this mean??

Rashrashetta
John Currier - 14 Jun 2005 22:28 GMT
I really don't know what you're trying to ask.  I hate to do this, but
I've copied some text from one of David Harper's posts:

Try reading Eric Raymond's "How to ask questions the smart way":

  http://www.catb.org/~esr/faqs/smart-questions.html

and you may begin to understand why your query does not contain enough
information to allow people to help you.
David Harper - 15 Jun 2005 07:15 GMT
> I really don't know what you're trying to ask.  I hate to do this, but
> I've copied some text from one of David Harper's posts:
[quoted text clipped - 5 lines]
> and you may begin to understand why your query does not contain enough
> information to allow people to help you.

Oh dear, I seem to have acquired an entirely undeserved notoriety in
this newsgroup :-)

Let me try to make amends.

rasha_cs_99 wrote:
> I have a java program that reads from a MS Access DB, and every thing
> is fine. I used the ODBC:JDBC connection...I mean I added the DB to the
> ODBC Datasources! But after I've uploaded my JAR file and the DataBase
> it didn't work on the net. How can I solve it?

Do you mean that your Java program works when you run it on the same
machine that your Access database is on? And that it no longer works
when you try to run the same Java program on a different machine i.e.
running your program on machine A to connect to the Access database on
machine B?

rasha_cs_99 wrote:
> I mean when I tried to upload my JAR file, the JAR file no more reads
> from the DataBase and it gives the error
> [microsoft][ODBC Driver Manager] Data Source name not found and no
> default driver specified
> What does this mean??

I'm not an Access or ODBC expert, but I'm guessing that the data source
name that your program uses to refer to the Access database is only
valid on the machine where the database lives, the one I called machine
B previously.

Basically, only machine B knows that this data source name corresponds
to a particular Access database, and this is why you get the error
message on machine A.

Alternatively, if you have in fact configured machine A so that it knows
about the Access database on machine B, perhaps your firewall software
(you *did* upgrade Windows XP with Service Pack 2, didn't you?) is
preventing programs on machine A from making network connections to
machine B.

However, judging from the error message you quoted, it seems more likely
that machine A doesn't know about the Access database on machine B.

I use MySQL on Linux myself, so I can't offer any advice on how to fix
this kind of problem with Access. Sorry.

David Harper (not really a curmudgeonly old fart, honest!)
Cambridge, England
rasha_cs_99@hotmail.com - 15 Jun 2005 14:53 GMT
Thank you David for your reply....
rasha_cs_99@hotmail.com - 15 Jun 2005 14:55 GMT
Thank you for your reply....
hilz - 16 Jun 2005 17:08 GMT
> Thank you for your reply....

There is another way to connect to M$Access from Java without setting up
any ODBC source or anything.
It is called DNS-less connection.
the driver is:  "sun.jdbc.odbc.JdbcOdbcDriver"
and the connection URL string is:
"jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=C:\\db1.mdb"

good luck
hilz


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.