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.
> 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