You could use DSN connection to do this. First, create a folder in your web directory called Includes. In this folder create a file called MyDataConnection. It's name will look like this MyDataConnection.inc
Be sure that the extension is .inc. This is what's known as an include file. Now in this file place this copy and past this code:
<%
Dim cmdDC, Recordset, SearchText, Cnt
SearchText = Request.Form("txtSearchText"
Set Conn = Server.CreateObject ("ADODB.Connection"

conn.open "ASPPages2"
Set cmdDC = Server.CreateObject("ADODB.Command"

cmdDC.ActiveConnection = Conn
%>
This is your connection code. Now in the page that you will be using to either view or post data to you db, put this at the very top of the page.
<!--#include file="includes/FTEStaffing.inc"-->
This one like can be used to connect any page in your website to the database. Now after you have done this, at the bottom of this webpage put this code below the html of the page.
<%
'-- Close database and release
RecordSet.Close
Set RecordSet = Nothing
Set cmdDC = Nothing
Conn.Close
Set Conn = Nothing
%>
as the notation says, this closes your connection an TAA DAA!! you have your connection. Try it out.