ASP --> OLEDB --> Access db ?

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default Re: ASP --> OLEDB --> Access db ?

    On Wed, 3 Mar 2004 13:06:14 -0800, ChrisB
    <anonymous@discussions.microsoft.com> wrote:
    >I have an ASP page using OLEDB to connect to an Access97 db. In the Conn string I must use an explit path to the mdb, e.g. C:\inetpub\wwwroot\mydir\mydb.mdb - by doing this I also have to provide Read/Write to the NT INET user account to open file and query tables.
    >
    >Since I am dealing w/ an ISP hosting my app, it's not easy to call them and ask them to add rw perms on my virtual directory. Is there a way around this?
    Don't use Access. :)

    Access requires the user to have Modify or better permission on the
    folder where the database MDB file is so the lock file can be created.
    That's a limitation of Access, not the ASP or OLEDB.

    Most hosts accomodate this in a control panel that allows you to hange
    permissions for Access files. And you don't always need an explicit
    path, but it won't make a difference on the permission requirement.

    Jeff
    Jeff Cochran Guest

  2. Similar Questions and Discussions

    1. Oracle Table Access With Oracle OLEDB Driver
      If I use the Oracle client to access the Oracle database with DW 2004, it does not display any tables. If I use the Microsoft client it does work. ...
    2. Medium Trust and oledb access
      Hi I am configuring a server for a shared hosting environment and want to lock down the server. I changed the trust level to medium but all MySQL...
    3. Error while using OLEDB (Jet) for Access within ASP
      Hi everbody: I am getting an error (message to follow) when using the following code within ASP: cst= "Provider=Microsoft.Jet.OLEDB.4.0;Data...
    4. OLEDB and an Access Db with a password
      Hi All ISP has told me that I should be using OLEDB connections instead of ODBC to get better ASP > ADO > Access DB performance. After a visit...
    5. Error when trying to add an Access DB Record containing a Long Integer type field using OLEDB in ADO.Net
      Hi All, I am trying to add a record to a datatable that is connected to an Access database. I had no trouble with string and date fields, but...
  3. #2

    Default Re: ASP --> OLEDB --> Access db ?

    "ChrisB" wrote:
    : I have an ASP page using OLEDB to connect to an Access97 db. In the Conn
    string I must use an explit path to the mdb, e.g.
    C:\inetpub\wwwroot\mydir\mydb.mdb

    That is not actually correct. Your connect can be:
    Server.MapPath("\mydir\mydb.mdb")

    - by doing this I also have to provide Read/Write to the NT INET user
    account to open file and query tables.

    Nope. The directory where the database resides should have change or modify
    rights. That is all that is needed.

    : Since I am dealing w/ an ISP hosting my app, it's not easy to call them
    and ask them to add rw perms on my virtual directory. Is there a way around
    this?

    If your host provides a control panel that allows you to make permission
    changes on your directory structure, then you do not have to call them. You
    can take care of it yourself. If not, then you have to call them or email
    them. They may also offer DSN, but I would avoid that and instead use
    OLEDB, which is what you're referring to.

    Note that a lot of hosts put a db and/or a data directory as the same
    directory level as wwwroot. So, the physical path may be:
    c:\inetpub\db
    c:\inetpub\data
    c:\inetpub\wwwroot

    If they have provided an area like this [db, data, both], then the
    permissions are already set [generally] and you just have to locate your
    database, chat logs, etc. there [db/data respectively]. Normally you will
    have to use FTP to put the files there if you're publishing using FPSE
    (Front Page Server Extensions). And, then you will have to use a physical
    path because neither FPSE nor Server.MapPath work above or outside the
    wwwroot.

    When you signed up for this hosting account, you should have received an
    email with all of the information you need to work with databases. If
    you're hosted on a Linux box, then MS Access is NOT an option but MySQL may
    be.

    HTH...

    --
    Roland Hall
    /* This information is distributed in the hope that it will be useful, but
    without any warranty; without even the implied warranty of merchantability
    or fitness for a particular purpose. */
    Technet Script Center - [url]http://www.microsoft.com/technet/scriptcenter/[/url]
    WSH 5.6 Documentation - [url]http://msdn.microsoft.com/downloads/list/webdev.asp[/url]
    MSDN Library - [url]http://msdn.microsoft.com/library/default.asp[/url]


    Roland Hall Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139