Hi Friends,
I am very new to ASP and trying to connect a database with Ms-Access with DSN. I have setup the DSN into my hosting account. I don't know how to connect with the database in the ASP. Here is the code I am trying to use:
and I am also getting a Server error which is:
500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.
Please help me in this.
Thanks
Deepak
I am very new to ASP and trying to connect a database with Ms-Access with DSN. I have setup the DSN into my hosting account. I don't know how to connect with the database in the ASP. Here is the code I am trying to use:
Code:
Set oConnection = Server.CreateObject("ADODB.Connection") oConnection.Open "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" & Server.MapPath("") & ";" oConnection.Close Set oConnection = Nothing
500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.
Please help me in this.
Thanks
Deepak
Comment