Ver Mensaje Individual
  #1 (permalink)  
Antiguo 18/05/2005, 04:38
acrego
 
Fecha de Ingreso: abril-2005
Ubicación: Santiago Compostela
Mensajes: 213
Antigüedad: 20 años, 1 mes
Puntos: 0
abrir recordset

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