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. Database & SysAdmin
  3. Database
  4. How to solve the error "The query builder failed."

How to solve the error "The query builder failed."

Scheduled Pinned Locked Moved Database
databasemysqlperformancehelptutorial
3 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.
  • K Offline
    K Offline
    kyi kyi
    wrote on last edited by
    #1

    Hi.. I m using mysql database. In my table adapter, I have 2 queries. Query(1) INSERT INTO comment (commentID, reviewID, commentStatus, submitterID, commentDate, lastUpadatedDate) VALUES (?commentID, ?reviewID, ?commentStatus, ?submitterID, ?commentDate, ?lastUpadatedDate) Query(2) INSERT INTO commentdetail (commentDetailID, commentID, commentType, locator1, locator2, comment, remark) VALUES (?commentDetailID, ?commentID, ?commentType, ?locator1, ?locator2, ?comment, ?remark) i can add the Query(1). but everytime i tried to add Query(2) displays the following error. The query builder failed. Attempted to read or write protected memory. This is often an indication that other memory is corrupt. i need urgently.. Could anyone know how to solve this error,Please? thanks in advance.

    K W 2 Replies Last reply
    0
    • K kyi kyi

      Hi.. I m using mysql database. In my table adapter, I have 2 queries. Query(1) INSERT INTO comment (commentID, reviewID, commentStatus, submitterID, commentDate, lastUpadatedDate) VALUES (?commentID, ?reviewID, ?commentStatus, ?submitterID, ?commentDate, ?lastUpadatedDate) Query(2) INSERT INTO commentdetail (commentDetailID, commentID, commentType, locator1, locator2, comment, remark) VALUES (?commentDetailID, ?commentID, ?commentType, ?locator1, ?locator2, ?comment, ?remark) i can add the Query(1). but everytime i tried to add Query(2) displays the following error. The query builder failed. Attempted to read or write protected memory. This is often an indication that other memory is corrupt. i need urgently.. Could anyone know how to solve this error,Please? thanks in advance.

      K Offline
      K Offline
      kyi kyi
      wrote on last edited by
      #2

      I use .NET 2.0 and VS 2005

      1 Reply Last reply
      0
      • K kyi kyi

        Hi.. I m using mysql database. In my table adapter, I have 2 queries. Query(1) INSERT INTO comment (commentID, reviewID, commentStatus, submitterID, commentDate, lastUpadatedDate) VALUES (?commentID, ?reviewID, ?commentStatus, ?submitterID, ?commentDate, ?lastUpadatedDate) Query(2) INSERT INTO commentdetail (commentDetailID, commentID, commentType, locator1, locator2, comment, remark) VALUES (?commentDetailID, ?commentID, ?commentType, ?locator1, ?locator2, ?comment, ?remark) i can add the Query(1). but everytime i tried to add Query(2) displays the following error. The query builder failed. Attempted to read or write protected memory. This is often an indication that other memory is corrupt. i need urgently.. Could anyone know how to solve this error,Please? thanks in advance.

        W Offline
        W Offline
        Wendelius
        wrote on last edited by
        #3

        Haven't used MySql really so just guessing here. In the second statement, you have a potentially reserved word comment and also remark. Try removing them from the statement:

        INSERT INTO commentdetail
        (commentDetailID, commentID, commentType, locator1, locator2)
        VALUES (?commentDetailID, ?commentID, ?commentType, ?locator1, ?locator2)

        The need to optimize rises from a bad design. My articles[^]

        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