OLE DB connection with password

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

  1. #1

    Default OLE DB connection with password

    Hi Guys

    I know I've moaned about this recently, but all I want is a copy and paste
    example of the following:

    MyVar = OLEDB connection to an Access DB with a database password

    Can you help??

    A helpful poster told me that my connection attempt was OK, but my params
    further down the line might be at fault. Are there differences in ADO
    Connection, Command & Recordset code between the ODBC connection and the OLE
    DB connection? If there are, what are the fundamental ones?

    Many thanks.

    Rgds

    Laphan


    Laphan Guest

  2. Similar Questions and Discussions

    1. Cannot get a connection -incorrect password
      I'm trying to setup Contribute CS3 for the first time. I've selcted FTP and filled in the host name, username and password but get a 'username or...
    2. Contribute CS3 Connection Key Password Bug
      Symptom: Some Contribute Administrators may experience the error message "Your FTP username or password is incorrect." when importing a Connection...
    3. Connection Key Password
      When a user gets e-mailed the connection key and clicks on it to install, they are asked to provide a name, e-mail ID and password. Our...
    4. Connection String using name and password
      Hello, Can anyone point me to a connection string for ASP to connect to an MS Access database using a username and password? Thanks in...
    5. Adding password to data connection
      Hi can anyone tell me how to add a password to using this connection string pls <% set conn = server.createobject ("ADODB.connection")...
  3. #2

    Default Re: OLE DB connection with password

    What does "at fault" mean? Could you show your connection string, and the
    error you're receiving?



    "Laphan" <news@FrozenNOSPAMMoles.co.uk> wrote in message
    news:bm4k0j$pek$2@sparta.btinternet.com...
    > Hi Guys
    >
    > I know I've moaned about this recently, but all I want is a copy and paste
    > example of the following:
    >
    > MyVar = OLEDB connection to an Access DB with a database password
    >
    > Can you help??
    >
    > A helpful poster told me that my connection attempt was OK, but my params
    > further down the line might be at fault. Are there differences in ADO
    > Connection, Command & Recordset code between the ODBC connection and the
    OLE
    > DB connection? If there are, what are the fundamental ones?
    >
    > Many thanks.
    >
    > Rgds
    >
    > Laphan
    >
    >

    Aaron Bertrand - MVP Guest

  4. #3

    Default Re: OLE DB connection with password

    Laphan wrote:
    > Hi Guys
    >
    > I know I've moaned about this recently, but all I want is a copy and
    > paste example of the following:
    >
    > MyVar = OLEDB connection to an Access DB with a database password
    >
    > Can you help??
    >
    > A helpful poster told me that my connection attempt was OK, but my
    > params further down the line might be at fault. Are there
    > differences in ADO Connection, Command & Recordset code between the
    > ODBC connection and the OLE DB connection? If there are, what are
    > the fundamental ones?
    >
    > Many thanks.
    >
    > Rgds
    >
    > Laphan
    I repeat: your connection string is fine. Your problem stems from having
    table or fields with reserved words as their names. I even gave you a link
    to Aaron's FAQ page that listed the reserved words. If you need further
    help, you've got to supply us with some more code to look at. Let's see your
    SQL statement.

    Bob Barrows


    Bob Barrows 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