><SCRIPT LANGUAGE=VBScript> ></SCRIPT> >>
><BODY> ><%=cn.ConnectionString ></BODY> >>
< %@ Language=VBScript % > ' First line at top of ASP Form... < % Dim strConn ' Production... strConn = "Driver={SQL SERVER};SERVER=T22;DATABASE=Business;UID=User;PWD=WebUser;" % >
'----------------------------------------------------------------------------- ' Declare ADO Constants... '----------------------------------------------------------------------------- Const adOpenStatic = 3 Const adUseClient = 3 < % '----------------------------------------------------------------------------- ' ADO '----------------------------------------------------------------------------- ' Establish connection... Set oConn = Server.CreateObject("ADODB.Connection") oConn.Open strConn ' Create a Recordset... Set oQPRRS = Server.CreateObject("ADODB.Recordset") with oQPRRS .CursorLocation = adUseClient .CursorType = adOpenStatic .Open strSQL, oConn end with % >
< HTML > < HEAD >It might be better to ask such questions in the Dot NET forum under ASP Classic.