Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. Microsoft.Jet.OLEDB.4.0 vs. Microsoft Access Driver

Microsoft.Jet.OLEDB.4.0 vs. Microsoft Access Driver

Scheduled Pinned Locked Moved Web Development
helpvisual-studiosysadminsecurityquestion
2 Posts 2 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mjay2004
    wrote on last edited by
    #1

    I've been getting a problem with asp error 0113 I know you can change the Server.ScriptTimeout but i was wondering if theres a difference when using these two drivers and if this could be also making my code get errors??? heres the codes for two simple pages which is best to use? <%@LANGUAGE=VBScript%> <% Dim adoCon Dim rs Dim strSQL Set adoCon = Server.CreateObject("ADODB.Connection") adoCon.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("jet.mdb") Set rs = Server.CreateObject("ADODB.Recordset") strSQL = "SELECT jet.* FROM jet" rs.Open strSQL, adoCon %> <% = rs("Text") %> <% rs.Close Set rs = Nothing adoCon.Close Set adoCon = Nothing %> or <%@LANGUAGE=VBScript%> <% dim Conn, sConnection, rs Set Conn = Server.CreateObject("ADODB.Connection") sConnection = "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=" & Server.MapPath("jet.mdb") & ";" & _ "Persist Security Info=True" Conn.Open(sConnection) set rs = conn.Execute("SELECT * FROM jet") %> <% = rs("Text")%> <% rs.close Set rs = Nothing Conn.close Set Conn = Nothing %> Thanks

    N 1 Reply Last reply
    0
    • M mjay2004

      I've been getting a problem with asp error 0113 I know you can change the Server.ScriptTimeout but i was wondering if theres a difference when using these two drivers and if this could be also making my code get errors??? heres the codes for two simple pages which is best to use? <%@LANGUAGE=VBScript%> <% Dim adoCon Dim rs Dim strSQL Set adoCon = Server.CreateObject("ADODB.Connection") adoCon.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("jet.mdb") Set rs = Server.CreateObject("ADODB.Recordset") strSQL = "SELECT jet.* FROM jet" rs.Open strSQL, adoCon %> <% = rs("Text") %> <% rs.Close Set rs = Nothing adoCon.Close Set adoCon = Nothing %> or <%@LANGUAGE=VBScript%> <% dim Conn, sConnection, rs Set Conn = Server.CreateObject("ADODB.Connection") sConnection = "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=" & Server.MapPath("jet.mdb") & ";" & _ "Persist Security Info=True" Conn.Open(sConnection) set rs = conn.Execute("SELECT * FROM jet") %> <% = rs("Text")%> <% rs.close Set rs = Nothing Conn.close Set Conn = Nothing %> Thanks

      N Offline
      N Offline
      Nino_1
      wrote on last edited by
      #2

      mjay2004 wrote: I've been getting a problem with asp error 0113 I know you can change the Server.ScriptTimeout but i was wondering if theres a difference when using these two drivers and if this could be also making my code get errors??? heres the codes for two simple pages which is best to use? I've used both at different times and have had some really strange errors while using the {Microsoft Access Driver} in the connection string, as far as what's different I don't know. I've had the best results using the JET connection engine string over the *.mdb. Just my $00.2 Nino

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups