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
  1. Home
  2. Web Development
  3. ASP.NET
  4. ODBC Connection String

ODBC Connection String

Scheduled Pinned Locked Moved ASP.NET
databasequestioncsharpasp-netsql-server
2 Posts 2 Posters 0 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.
  • S Offline
    S Offline
    SuperGeek
    wrote on last edited by
    #1

    Hello all, I am trying my first ASP.NET database connectivity coding. My web host lets me use ODBC and has given me a Data Source Name. (DNS). I am trying to connect to my Access File say webdata.mdb. I cannot seem to make a connection with the wizard so I would like to write a connecton string my self. It is my understanding that non-SQL server connections require that the connection string provide the provider. I would like to use Microsoft OLE DB Provider of ODBC drivers. How do I specify this in a connecton string? Do I need to specify the DNS and if so how? Any help would be greatl appreciated.

    V 1 Reply Last reply
    0
    • S SuperGeek

      Hello all, I am trying my first ASP.NET database connectivity coding. My web host lets me use ODBC and has given me a Data Source Name. (DNS). I am trying to connect to my Access File say webdata.mdb. I cannot seem to make a connection with the wizard so I would like to write a connecton string my self. It is my understanding that non-SQL server connections require that the connection string provide the provider. I would like to use Microsoft OLE DB Provider of ODBC drivers. How do I specify this in a connecton string? Do I need to specify the DNS and if so how? Any help would be greatl appreciated.

      V Offline
      V Offline
      Vanclei
      wrote on last edited by
      #2

      Data Source AND DSN are the name of your DSN in your Webhost Provider=MSDASQL.1;Persist Security Info=False;Data Source=TEST;Extended Properties="DSN=TEST;DBQ=C:\TEST.MDB;DriverId=25;FIL=MS Access;MaxBufferSize=2048;PageTimeout=5;" I hope this helps you. Vanclei Matheus Brazil MSN Msgr - vmatheus@msn.com

      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