Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. Error "Record(s) cannot be read; no read permission on 'table's name' " when Connect Access 2.0 (.mdb) file in Net ?

Error "Record(s) cannot be read; no read permission on 'table's name' " when Connect Access 2.0 (.mdb) file in Net ?

Scheduled Pinned Locked Moved .NET (Core and Framework)
7 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Doan Quynh
    wrote on last edited by
    #1

    I connected with an Access 2.0 file with Server Explorer in VS2008. It can list all table in this database but when I get all row's data of one table It throw the Exception : "Record(s) cannot be read; no read permission on 'table's name'" How can I fix this? Thanks for any help!

    QuynhTD

    D 1 Reply Last reply
    0
    • D Doan Quynh

      I connected with an Access 2.0 file with Server Explorer in VS2008. It can list all table in this database but when I get all row's data of one table It throw the Exception : "Record(s) cannot be read; no read permission on 'table's name'" How can I fix this? Thanks for any help!

      QuynhTD

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      The account you used to connect to the database doesn't have permissions to read the data in that table. You need to use a different account or change the security in the Access database to allow the account you used better permissions. Don't ask me exactly how to do it because I haven't used Access to store data in years.

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007, 2008

      D 1 Reply Last reply
      0
      • D Dave Kreskowiak

        The account you used to connect to the database doesn't have permissions to read the data in that table. You need to use a different account or change the security in the Access database to allow the account you used better permissions. Don't ask me exactly how to do it because I haven't used Access to store data in years.

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007, 2008

        D Offline
        D Offline
        Doan Quynh
        wrote on last edited by
        #3

        Thanks, but I can't find out how to "change the security in the Access database" or use a different account. Access's menu : Tools>Security> User and Group Permission always disable :(

        QuynhTD

        D 1 Reply Last reply
        0
        • D Doan Quynh

          Thanks, but I can't find out how to "change the security in the Access database" or use a different account. Access's menu : Tools>Security> User and Group Permission always disable :(

          QuynhTD

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          If that option is disabled, the database isn't setup for workgroup sharing, so a login to the database isn't necessary. The next place I'd look would be the connection string. What does that look like?

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007, 2008

          D 1 Reply Last reply
          0
          • D Dave Kreskowiak

            If that option is disabled, the database isn't setup for workgroup sharing, so a login to the database isn't necessary. The next place I'd look would be the connection string. What does that look like?

            A guide to posting questions on CodeProject[^]
            Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                 2006, 2007, 2008

            D Offline
            D Offline
            Doan Quynh
            wrote on last edited by
            #5

            The connection string is: "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\DB.MDB" DB.MDB is an access 97 file. I opened with VS2008. It connect successfully with user ID "Admin" and any password. I can receiver all the tables but can get any record data, it throw message : --------------------------- Microsoft Visual Studio --------------------------- SQL Execution Error. Executed SQL statement: SELECT * FROM TABLE_NAME Error Source: Microsoft JET Database Engine Error Message: Record(s) cannot be read; no read permission on 'TABLE_NAME'. --------------------------- OK Help ---------------------------

            QuynhTD

            D 1 Reply Last reply
            0
            • D Doan Quynh

              The connection string is: "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\DB.MDB" DB.MDB is an access 97 file. I opened with VS2008. It connect successfully with user ID "Admin" and any password. I can receiver all the tables but can get any record data, it throw message : --------------------------- Microsoft Visual Studio --------------------------- SQL Execution Error. Executed SQL statement: SELECT * FROM TABLE_NAME Error Source: Microsoft JET Database Engine Error Message: Record(s) cannot be read; no read permission on 'TABLE_NAME'. --------------------------- OK Help ---------------------------

              QuynhTD

              D Offline
              D Offline
              Dave Kreskowiak
              wrote on last edited by
              #6

              OK, is there a table in that database called "TABLE_NAME"??

              A guide to posting questions on CodeProject[^]
              Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                   2006, 2007, 2008

              D 1 Reply Last reply
              0
              • D Dave Kreskowiak

                OK, is there a table in that database called "TABLE_NAME"??

                A guide to posting questions on CodeProject[^]
                Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                     2006, 2007, 2008

                D Offline
                D Offline
                Doan Quynh
                wrote on last edited by
                #7

                No, it's common name for all table in this database

                QuynhTD

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups