how to resolve database connection in asp. the dbase source is currently located in my domain provider. my current application/package both support ms access database and asp.
currently im using the code and it sending an error :
Set mycon = Server.CreateObject("ADODB.Connection")
mycon.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("/db/contacts.mdb")
error:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Microsoft Access Driver] '(unknown)' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides.
/dbview.asp, line 5
Set mycon = Server.CreateObject("ADODB.Connection")
mycon.Open "DSN=contacts.mdb.dsn"
error
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
/dnsview.asp, line 5
any help will greatly appreciated.tnx