Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<html>
<head>
<title>The best tool for the task</title>
</head>
<body>
<table>
<%
Dim objConn
Dim objConnString
Dim getSQL
Dim viewRS
objConnString = "Driver=SQL Server;SERVER=XXXXX;uid=XXXXX;pwd=XXXXX;DATABASE=NorthWind"
Set objConn = server.CreateObject("ADODB.Connection")
objConn.Open objConnString
getSQL = "SELECT Count(EmployeeID) AS [Number Of Sales], " & _
"EmployeeID AS [Employee ID] " & _
"FROM orders " & _
"GROUP BY EmployeeID"
Set viewRS = objConn.Execute(getSQL)
If NOT viewRS.EOF Then
%>
<tr>
<td style="width:200px;"><%=viewRS.Fields("Employee ID").Name%></td>
<td style="width:200px;"><%=viewRS.Fields("Number Of Sales").Name%></td>
</tr>
<%
Do While NOT viewRS.EOF
%>
<tr>
<td style="width:200px;"><%=viewRS("Employee ID")%></td>
<td style="width:200px;"><%=viewRS("Number Of Sales")%></td>
</tr>
<%
viewRS.MoveNext
Loop
End If
Set viewSQL = Nothing
objConn.Close
%>
</table>
</body>
</html>