ali <> wrote:
> but still
>
> i hope there is a way to connect my programe to an specific database
> file so i dont have to make dns settings
Unfortunately, if you're using the ODBC bridge driver, there's no really
reliable way to make the connection without defining an ODBC data source
name. ISTR that you can use something like:
jdbc

dbc:MS Access Database;file=c:\myfile.mdb
but that assumes that the default ODBC name for a generic Access
database is present and hasn't been modified. That's not necessarily a
safe assumption. I'm also not sure of the attribute name, and it might
be something other than "file". Also, If you take the approach above,
remember that backslashes should be escaped in a string literal.
I mentioned earlier that there's a free edition of MS SQL Server that
has a better JDBC driver. Could you consider using that instead?
--
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.
Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation