orhanbaba
asked on
How can I connect MSACCESS database without dsn and physical address?
for example
I wont give fullpath
DBQ=/myweb/data.mdb
asp example
Set bag=server.CreateObject("A DODB.Conne ction")
bag.open("DBQ=" & server.MapPath("db\form.md b") & ";Driver={Microsoft Access Driver (*.mdb)}")
it will be look like this
I wont give fullpath
DBQ=/myweb/data.mdb
asp example
Set bag=server.CreateObject("A
bag.open("DBQ=" & server.MapPath("db\form.md
it will be look like this
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Sorry I didn't read the question properly, :c)
if you create a system DSN object to your Database you can use this:
try
{
Class.forName("sun.jdbc.od
connection = DriverManager.getConnectio
statement = connection.createStatement
}
catch(ClassNotFoundExcepti
{
System.err.println("Cannot
System.err.println(classno
}
catch(SQLException sqlexception)
{
System.err.println("Cannot
System.err.println(sqlexce
}
regards
Javier