Buenas tengo una pregunta existencial, cual es la mejor forma de abrir un recorset:
yo utilizo esta:
<%
Set RstCofra = Server.CreateObject("ADODB.Recordset")
RstCofra.source="SELECT...."
RstCofra.Cursortype=adOpenStatic
RstCofra.ActiveConnection="DSN=master;'';'';"
RstCofra.Open%>
<% RstCofra.Close%>
y en este foro encontre esta otra.
<%
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open "DSN=master;'';'';"
SQL = "SELECT.....
Set RstExEmbar = CreateObject("ADODB.Recordset")
RstExEmbar.Cursortype=adOpenStatic
RstExEmbar.Open SQL,Conn,3,1 %>
RstExEmbar.Close
Set RstExEmbar = Nothing
Conn.Close
Set Conn = Nothing%>
o hay otra forma de abrir un recordset.
saludos