Variable = rs2(“fieldname”)
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.
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 .
if rs2.recordcount > 0 then
Set RS2 = Server.CreateObject(“Adodb.RecordSet”)
‘Don’t forget to write below given lines
query=”select nm from Table”
Sponsored by: Virtual Private Servers in Europe
do while not rs2.eof