Can someone tell me why this simple script is not working? I am testing my asp locally and everything always works just fine. However I wanted to start using my work live on the net and to do this I have to use a DSN Less connection. This is the script:
Code:
<%
Dim obCOnn
Dim obJEc
Set obCOnn = Server.CreateObject("ADODB.connection")
Set obJEc = Server.CreateObject("ADODB.recordset")
obCOnn.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("wrox.mdb")
obJEc.Open "SELECT * FROM sailor", obCOnn
obJEc.MoveFirst
Response.Write obJEc(name) & "<br>"
obCOnn.close
obJEc.close
Set obCOnn = Nothing
Set obJEc = Nothing
%>
The database is access and you guessed it, the name is wrox.mdb. Can someone tell me what's wrong?