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. Database & SysAdmin
  3. Database
  4. "data Source=?" to access my website database

"data Source=?" to access my website database

Scheduled Pinned Locked Moved Database
databasecomdesignsysadminhelp
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.
  • M Offline
    M Offline
    multimedia9
    wrote on last edited by
    #1

    static string conn="provider=microsoft.jet.oledb.4.0;data Source="+ Server.MapPath("/data/db1.mdb"); OleDbConnection cn=new OleDbConnection(conn); the above statement giving the below error: Error showing:- 'System.Web.UI.Page.Server' denotes a 'property' where a 'class' was expected please suggest me how to change the code www.mywebsite.com/data/db1.mdb please write the connection string for the above website to locate db1.mdb i will be thank full to you if you reply. thank u multimedia9

    P 1 Reply Last reply
    0
    • M multimedia9

      static string conn="provider=microsoft.jet.oledb.4.0;data Source="+ Server.MapPath("/data/db1.mdb"); OleDbConnection cn=new OleDbConnection(conn); the above statement giving the below error: Error showing:- 'System.Web.UI.Page.Server' denotes a 'property' where a 'class' was expected please suggest me how to change the code www.mywebsite.com/data/db1.mdb please write the connection string for the above website to locate db1.mdb i will be thank full to you if you reply. thank u multimedia9

      P Offline
      P Offline
      Paul Conrad
      wrote on last edited by
      #2

      Look at the various connection strings at http://www.connectionstrings.com[^], and I'd bookmark the mentioned site for future reference :-D


      "That's no moon, it's a space station." - Obi-wan Kenobi

      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