OLEDB and an Access Db with a password

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

  1. #1

    Default 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 to ConnectionStrings.com this OLEDB seemed straightforward
    enough with a DB with no password and then I tried it with DB that has a
    password ... what the hell is this all about??

    'Can't load application. Workgroup File something or other or user has
    exclusive access..' What?? All I've done is add a password to the
    Connection string's Password param.

    My Connection string with password is as follows:

    strDSN="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" &
    Server.Mappath("db/mydb.mdb") & ";User Id=admin;Password=fred;"

    The strDSN is variable that I use as follows:

    set oConn=Server.CreateObject("ADODB.Connection")
    oConn.open strDSN

    Brinkster support came up with a beauty in that if I want to use passwords
    then I go back to the defunct ODBC method.

    Could somebody please tell me how I sort this out so that I can
    password-protect my DB.

    Thanks

    Laphan


    Laphan 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. ASP --> OLEDB --> Access db ?
      On Wed, 3 Mar 2004 13:06:14 -0800, ChrisB <anonymous@discussions.microsoft.com> wrote: Don't use Access. :) Access requires the user to...
    4. 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...
    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 OLEDB and an Access Db with a password

    >-----Original Message-----
    >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 to ConnectionStrings.com this OLEDB seemed
    straightforward
    >enough with a DB with no password and then I tried it
    with DB that has a
    >password ... what the hell is this all about??
    >
    >'Can't load application. Workgroup File something or
    other or user has
    >exclusive access..' What?? All I've done is add a
    password to the
    >Connection string's Password param.
    >
    >My Connection string with password is as follows:
    >
    >strDSN="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" &
    >Server.Mappath("db/mydb.mdb") & ";User
    Id=admin;Password=fred;"


    That's not the correct connection string. Look at
    connectionstrings.com again. You've provided a username
    and password as if the database was using workgroup
    security. You really need to do some reading about Access
    security so you'll know the difference between workgroup
    security and a password-secured database. Try this:
    [url]http://student.muskegon.cc.mi.us/~carlsonr/Secfaq.exe[/url]

    Anyways, this is what your connection string should look
    like:
    With password:
    "Provider=Microsoft.Jet.OLEDB.4.0;Data
    Source=\somepath\mydb.mdb;Jet OLEDB:Database
    Password=MyDbPassword;","admin", ""

    HTH,
    Bob Barrows





    Bob Barrows Guest

  4. #3

    Default Re: OLEDB and an Access Db with a password

    Many thanks Bob

    Rgds

    Laphan


    Bob Barrows <reb01501@NOyahoo.SPAMcom> wrote in message
    news:0aae01c38471$52e8df70$a401280a@phx.gbl...
    >-----Original Message-----
    >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 to ConnectionStrings.com this OLEDB seemed
    straightforward
    >enough with a DB with no password and then I tried it
    with DB that has a
    >password ... what the hell is this all about??
    >
    >'Can't load application. Workgroup File something or
    other or user has
    >exclusive access..' What?? All I've done is add a
    password to the
    >Connection string's Password param.
    >
    >My Connection string with password is as follows:
    >
    >strDSN="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" &
    >Server.Mappath("db/mydb.mdb") & ";User
    Id=admin;Password=fred;"


    That's not the correct connection string. Look at
    connectionstrings.com again. You've provided a username
    and password as if the database was using workgroup
    security. You really need to do some reading about Access
    security so you'll know the difference between workgroup
    security and a password-secured database. Try this:
    [url]http://student.muskegon.cc.mi.us/~carlsonr/Secfaq.exe[/url]

    Anyways, this is what your connection string should look
    like:
    With password:
    "Provider=Microsoft.Jet.OLEDB.4.0;Data
    Source=\somepath\mydb.mdb;Jet OLEDB:Database
    Password=MyDbPassword;","admin", ""

    HTH,
    Bob Barrows







    Laphan 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