Ver Mensaje Individual
  #15 (permalink)  
Antiguo 29/09/2004, 10:21
Avatar de Saruman
Saruman
 
Fecha de Ingreso: mayo-2003
Ubicación: Panama city, Panama, Panama
Mensajes: 1.154
Antigüedad: 21 años, 11 meses
Puntos: 5
prueben con esta. me funciona perfectamente y es la que utilizo en todos mis portales

funcion.asp

Código:
Function DBOpenConection()
  Dim Master
  strDBPath = "db/datos.mdb"
	 
  Set Master = Server.CreateObject("ADODB.Connection")
  Master.Open("DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath(strDBPath))
  Set DBOpenConection = Master
End Function
default.asp

Código:
<!--#include file="funcion.asp"-->

set Master = DBOpenConection()

sql = "select * from tabla"
set RS = Master.Execute(sql)
__________________
Saruman

One Ring to rule them all, One Ring to find them, One Ring to bring them all and in the darkness bind them.