USUÁRIO:      SENHA:        SALVAR LOGIN ?    Adicione o VBWEB na sua lista de favoritos   Fale conosco 

 

  Dicas

  ASP - Active Server Page    (Miscelâneas)

Título da Dica:  Conectar a um banco de dados access
Postada em 17/9/2003 por Pedro            
Set oCn = Server.CreateObject("ADODB.Connection")

oCn.Open "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & Server.MapPath("bd\banco.mdb")

- Tabela:
Set oRsTabela = Server.CreateObject("ADODB.RecordSet")

oRsTabela.Open "Select * From <TABELA> [where CRITÉRIO]", oCn

- Fechando:
oRsTabela.Close
oCn.Close
oCn=nothing
 


CyberWEB Network Ltda.    © Copyright 2000-2024   -   Todos os direitos reservados.
Powered by HostingZone - A melhor hospedagem para seu site
Topo da página