DataGrid loading password protected MSAccess DB

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • c#freeskier89

    #1

    DataGrid loading password protected MSAccess DB

    Hello,

    I am trying to load a password protected Access 2003 database into a C# app
    and whenever I execute the application, it displays this exception:
    System.Data.Ole Db.OleDbExcepti on: Not a valid password. In the developer (C#
    2005 express edition) it is able to pull the column names and such.
    Everything works fine for a non-password protected DB. Where can I set the
    password to the DB in the app?

    Thanks a lot!
    -freeskier89

    --
    (an Actionscript Guru)
  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: DataGrid loading password protected MSAccess DB

    freeskier89,

    Are you sure you are setting the password correctly in the connection
    string? What is your connection string?


    --
    - Nicholas Paldino [.NET/C# MVP]
    - mvp@spam.guard. caspershouse.co m

    "c#freeskie r89" <freeskier89@di scussions.micro soft.com> wrote in message
    news:97E7F8F3-868E-4680-868B-6197C3BD3F06@mi crosoft.com...[color=blue]
    > Hello,
    >
    > I am trying to load a password protected Access 2003 database into a C#
    > app
    > and whenever I execute the application, it displays this exception:
    > System.Data.Ole Db.OleDbExcepti on: Not a valid password. In the developer
    > (C#
    > 2005 express edition) it is able to pull the column names and such.
    > Everything works fine for a non-password protected DB. Where can I set the
    > password to the DB in the app?
    >
    > Thanks a lot!
    > -freeskier89
    >
    > --
    > (an Actionscript Guru)[/color]


    Comment

    Working...