Forum Moderators: open
this uses the jet 4.0 provider for access:
[asp101.com...]
Microsoft:
[msdn.microsoft.com...]
this is also good:
[learnasp.com...]
this is what i do to write to the database;
<%@ Language = "VBScript"%>
<%
dim conn
dim rs
dim strconn
dim strsql
strsql = ""
strconn = "DRIVER=Microsoft Access Driver (*.mdb);DBQ=" & Server.MapPath("sites.mdb")
' this works , using form input
strSQL = "INSERT INTO sites (title) Values('" & request("title") & "')"
'Set connection object
set conn = server.createobject("adodb.connection")
conn.open strconn
'Use the execute method of the connection object the insert the record
conn.execute(strSQL)
conn.close
set conn = nothing
%>
what should i change to read from the database ? (i dont want to use DNS?)