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. Web Development
  3. ASP.NET
  4. How 2 solve this err - "Operation must use an updateable query"

How 2 solve this err - "Operation must use an updateable query"

Scheduled Pinned Locked Moved ASP.NET
databasehelpsysadminquestionannouncement
4 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.
  • B Offline
    B Offline
    byan
    wrote on last edited by
    #1

    My database access is using this code : dim dbconn,sql,dbcomm,dbread dbconn=New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; &_ data source=" & server.mappath("er.mdb")) dbconn.Open() sql="update bldinein set showno = '' Where billing_no = ''" dbcomm=New OleDbCommand(sql,dbconn) dbread=dbcomm.ExecuteReader() dbconn.close() But when I upload the file 2 internet, there will show error msg "Operation must use an updateable query". How 2solve this problem? :^)

    M 1 Reply Last reply
    0
    • B byan

      My database access is using this code : dim dbconn,sql,dbcomm,dbread dbconn=New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; &_ data source=" & server.mappath("er.mdb")) dbconn.Open() sql="update bldinein set showno = '' Where billing_no = ''" dbcomm=New OleDbCommand(sql,dbconn) dbread=dbcomm.ExecuteReader() dbconn.close() But when I upload the file 2 internet, there will show error msg "Operation must use an updateable query". How 2solve this problem? :^)

      M Offline
      M Offline
      Mike Ellison
      wrote on last edited by
      #2

      Does your table [bldinein] have a primary key?

      B 1 Reply Last reply
      0
      • M Mike Ellison

        Does your table [bldinein] have a primary key?

        B Offline
        B Offline
        byan
        wrote on last edited by
        #3

        Ya, my [bldinein] table got primary key, [billing_no] is the primary key!!!:doh:

        M 1 Reply Last reply
        0
        • B byan

          Ya, my [bldinein] table got primary key, [billing_no] is the primary key!!!:doh:

          M Offline
          M Offline
          Mike Ellison
          wrote on last edited by
          #4

          Does your ASP.NET process account have access to write to the .mdb file and to its containing folder?

          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