rs2.open query
end if
set objcon=server.CreateObject(“ADODB.Connection”)
Set objcon=Nothing
objcon.Open “DSN=dsnname”
Variable = rs2(“fieldname”)
objcon.Close

rs2.movenext
To start coding using asp first of all you have to declare Scriplet tag which is the first line of ASP coding which you can see below
As we know that there are two ways to connect with database one is using DSN and second one is without DSN. To establish connection with database using DSN first of all you have to create DSN of database which you want to use in your application, like DSN for ACCESS, SQL, etc Today I will provide you guideline how to establish connection with MS ACCESS database using DSN Virtual Private Servers.
rs2.CursorType =1
response.Write(id)
For giving you perfect idea on how to work with DSN I am giving you full source code which you can use in your application but be sure that code is written for ASP Virtual Private Servers in USA .
rs2.ActiveConnection=objcon
if rs2.recordcount > 0 then
Set RS2 = Server.CreateObject(“Adodb.RecordSet”)

‘Don’t forget to write below given lines

query=”select nm from Table”

rs2.LockType=1
objcon.ConnectionTimeout=60
rs2.close
%>
Sponsored by: Virtual Private Servers in Europe
loop

do while not rs2.eof
rs2.CursorLocation=3