' Create an ADO database connection Set dbPubs = server.createobject("adodb.connection")
' Create a record set Set rsPubs = server.CreateObject("adodb.recordset")
' //////////////////////////////////////////////////////////////// ' ' This is the connection string section ' It must be edited to reflect your login params: ' Data Source=Server ' Initial Catalog=Database ' User ID=UID ' Password=PWD
' ' Open the connection using our ODBC file DSN sConn = "Provider=SQLOLEDB.1;Initial Catalog=Pubs;" sConn = sConn & "Data Source=dan;User ID=sa;Password=;" dbPubs.open(sConn) ' ' ////////////////////////////////////////////////////////////////