Category: ASP

<%

Set cnn = Server.CreateObject("ADODB.Connection")
Set rs = Server.CreateObject("ADODB.Recordset")

cnn.Open "DBQ=" & server.mappath(".") & "xxxxxxx.mdb;Driver={Microsoft Access Driver (*.mdb)};"

'select from db
strSQL = "select * from XX where XX = 'XX'"
response.write("sql = " & strSQL & "
")
set rs = cnn.execute(strSQL)

if not rs.eof and not rs.bof then
end if
%>

ASP

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.