<%
'Dimension variables
Dim adoCon 'Holds the Database Connection Object
Dim rsEmpMaster 'Holds the recordset for the records in the database
Dim strSQL 'Holds the SQL query to query the database
'Create an ADO connection object
Set adoCon = Server.CreateObject("ADODB.Connection")
'Set an active connection to the Connection object using a DSN-less connection
adoCon.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("Data1.html")
'Create an ADO recordset object
Set rsEmpMaster = Server.CreateObject("ADODB.Recordset")
'Initialise the strSQL variable with an SQL statement to query the database
strSQL = "SELECT EmployeeMaster.EmployeeID, EmployeeMaster.FirstName, EmployeeMaster.EmailID FROM EmployeeMaster;"
'Open the recordset with the SQL query
rsEmpMaster.Open strSQL, adoCon
Response.Write ("")
'Reset server objects
rsEmpMaster.Close
Set rsEmpMaster = Nothing
Set adoCon = Nothing
%>