Set WSHObj = Server.CreateObject("WScript.Shell")
DSN = WSHObj.RegRead("HKEY_LOCAL_MACHINE\Software\DB\DSN")
DB_ID = WSHObj.RegRead("HKEY_LOCAL_MACHINE\Software\DB\ID")
DB_PASS = WSHObj.RegRead("HKEY_LOCAL_MACHINE\Software\DB\PASS")
Set ObjConn = Server.CreateObject("ADODB.Connection")
ObjConn.Open "dsn=" & DSN & ";uid=" & DB_ID & ";pwd=" & DB_PASS
ObjConn.CursorLocation = 3
Set WSHObj = nothing
%>