Ver Mensaje Individual
  #2 (permalink)  
Antiguo 08/11/2004, 09:57
Avatar de Saruman
Saruman
 
Fecha de Ingreso: mayo-2003
Ubicación: Panama city, Panama, Panama
Mensajes: 1.154
Antigüedad: 22 años
Puntos: 5
strDBPath = "ruta_de_la_bd/bd.mdb"

Set Master = Server.CreateObject("ADODB.Connection")
Master.Open("DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath(strDBPath) & ";PWD=password")

sSQL = "insert into tabla(campo1,campo2) values ('" & var1 & "', '" & var2 & "')"
Master.Execute(sSQL)
__________________
Saruman

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