J
joaotsetsemoita
Hi everybody,
Im trying to access a Ms Access database outside my root website
folder, so Im using ODBC DSN. I have already the DSN create and
working (this same DSN is used by many classic ASP websites I have
running on my remote server). Im also have latest ODBC and JET drivers
installed.
My code is something like this:
Dim objConn As New OdbcConnection
objConn.ConnectionString = "DSN=MyDSN;"
objConn.Open()
Const strSQL As String = "SELECT * FROM customers"
Dim objCmd As New OdbcCommand(strSQL, objConn)
However when I try to run this I always get the error "ERROR [IM002]
[Microsoft][ODBC Driver Manager] Data source name not found and no
default driver specified" on the line that opens the connection ->
objConn.Open()
Any sugestion why is this happening? Or perhaps some turnaround on how
to access a MS Access database that is outside my root webfolder.
Any help is higly appreciated
Thanks in advance
Joao
Im trying to access a Ms Access database outside my root website
folder, so Im using ODBC DSN. I have already the DSN create and
working (this same DSN is used by many classic ASP websites I have
running on my remote server). Im also have latest ODBC and JET drivers
installed.
My code is something like this:
Dim objConn As New OdbcConnection
objConn.ConnectionString = "DSN=MyDSN;"
objConn.Open()
Const strSQL As String = "SELECT * FROM customers"
Dim objCmd As New OdbcCommand(strSQL, objConn)
However when I try to run this I always get the error "ERROR [IM002]
[Microsoft][ODBC Driver Manager] Data source name not found and no
default driver specified" on the line that opens the connection ->
objConn.Open()
Any sugestion why is this happening? Or perhaps some turnaround on how
to access a MS Access database that is outside my root webfolder.
Any help is higly appreciated
Thanks in advance
Joao