Foros del Web » Programando para Internet » ASP Clásico »

ODBC vs OLEDB

Estas en el tema de ODBC vs OLEDB en el foro de ASP Clásico en Foros del Web. ODBC: Conex.open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=C:\misitio\db\mibase.mdb;" OLEDB: Conex.Open "Provider=Microsoft.Jet.OLEDB.3.51; Data Source=C:\misitio\db\mibase.mdb;" Que conexion es la mejor y porque??...
  #1 (permalink)  
Antiguo 07/03/2005, 19:13
Avatar de affv  
Fecha de Ingreso: diciembre-2002
Ubicación: Ahora aqui
Mensajes: 485
Antigüedad: 21 años, 4 meses
Puntos: 0
ODBC vs OLEDB

ODBC:
Conex.open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=C:\misitio\db\mibase.mdb;"

OLEDB:
Conex.Open "Provider=Microsoft.Jet.OLEDB.3.51; Data Source=C:\misitio\db\mibase.mdb;"

Que conexion es la mejor y porque??
__________________
Todo tiene un comienzo y un fin!!
Postea tus proyectos
  #2 (permalink)  
Antiguo 07/03/2005, 20:24
Avatar de Muzztein  
Fecha de Ingreso: agosto-2002
Ubicación: Hangar 18
Mensajes: 1.703
Antigüedad: 21 años, 8 meses
Puntos: 16
La conexion odbc termina haciendo una OLEDB al final ... asi que
  #3 (permalink)  
Antiguo 08/03/2005, 01:53
 
Fecha de Ingreso: octubre-2004
Mensajes: 104
Antigüedad: 19 años, 6 meses
Puntos: 0
OLEDB siempre es más rápida, digamos que tiene menos recorrido para acceder a la base de datos, y por lo tanto tarda menos. Yo siempre que puedo la utilizo.

  #4 (permalink)  
Antiguo 08/03/2005, 09:58
Avatar de AlZuwaga
Colaborador
 
Fecha de Ingreso: febrero-2001
Ubicación: 34.517 S, 58.500 O
Mensajes: 14.550
Antigüedad: 23 años, 2 meses
Puntos: 535
Cita:
Iniciado por aspfaq.com
What should my connection string look like?
I've been preaching for years that DSNs cause unnecessary overhead and extra maintenance tasks. And all this time, the majority of Microsoft's code samples have displayed the use of DSNs. Now, Microsoft has deprecated ODBC, and is finally backing me up. So, whenever possible, use a native OLEDB provider, rather than a DSN.

The overhead caused by DSNs is clear and testable. Many people scratch their heads about why I insist that DSNs make code harder to maintain. Well, unless you can log into the ISP's machine with remote software (which is typically only allowed when you're leasing entire servers to yourself), it is not trivial to make changes to existing DSNs, or add new ones. You need to have your ISP manage your DSN(s), which certainly takes time, and sometimes costs money (depending on the host). Granted, some hosts have pretty "control panel" type applications that help you do this. But it still moves one of your programming tasks to a location outside of your development environment.

Also, you can only manage so many DSNs reasonably (see KB #252475). Using a DSN-less connection (for example, those found in this article), you can avoid this hassle *and* make your data access faster...

... http://www.aspfaq.com/show.asp?id=2126

OLEDB con DSNLess
__________________
...___...
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 16:13.