Forum Moderators: open
I am trying to make a dns-less connection (first time trying this) for a website that i am building and everything that I have tried is not working. It is telling me that my connection is no good. Here is the code:
set connection = Server.CreateObject("ADODB.Connection")
fakeDSN="DRIVER={Microsoft Access Driver (*.mdb)}; "
fakeDSN=fakeDSN & "DBQ=" & Server.MapPath("data/backend.mdb")
connection.Open fakeDSN
function EncodeThisText(text)
if(instr(text, "'")) then
text = replace(text, "'", "'")
elseif(instr(text, """")) then
text = replace(text, """", """)
end if
EncodeThisText = text
end function
This is the error that i am getting:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0xbd0 Thread 0xad0 DBC 0x205c0b4 Jet'.
/includes/connection.inc, line 5
I can not make heads or tales of what is wrong, i have change things and even talked to the server to make sure the permissions are set to "write".