You must Sign In to post a response.
  • Category: Suggestions

    Connection string to database directory?

    Hi,
    Simple question. I am using Server.MapPath("\..\database\demo.mdb") in my asp connection string to back out of the webroot directory where my script is running and try to get into the database directory where the data file is. What path should I use in the connection string to get at the data files in the database directory?
    Thanks.
  • #7065

    testdb.mdf

    Delete Attachment

  • #7074
    I think that if what you are trying to do is to access the data from your database you must create the connection string in the .config file, something like this:
    providerName="System.Data.SqlClient" />


  • Sign In to post your comments