Forum Moderators: open
now my question is why doesn't it support open?
heres the code:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<% Option Explicit %>
<!--#include virtual="/adovbs.inc"-->
<%
'open up a connection to Access database, we'll use DSN-less connection
Dim objConn
'set objConn = Server.CreateObject("ADODB.Connection")
'objConn.ConnectionString "DSN=test.dsn"
set objConn = server.createobject("ADODB.Connection")
objConn.open "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=C:\Inetpub\dbs\test.mdb"
'create a recordset object instance and retrieve the info from the adrresses table
Dim objRS
objRS = Server.CreateObject("ADODB.Recordset")
objRS.Open "website", objConn, , , adCmdTable
'display the contents of the url table
Do while Not objRS.EOF
Response.Write "<B>" & objRS ("Name") & "</b><br>"
response.Write objRS("url") & "<br>"
'move to next row in table
obj.MoveNext
Loop
'clean up ADO objects
objRS.Close
set objRS = Nothing
objConn.Close
set objConn = nothing
%>
[aspfaq.com...]
[aspfaq.com...]