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. C#
  4. SQL Update isn't working, not sure how to fix it.

SQL Update isn't working, not sure how to fix it.

Scheduled Pinned Locked Moved C#
databasehelptutorialannouncement
2 Posts 1 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.
  • P Offline
    P Offline
    PyroManiak
    wrote on last edited by
    #1

    This is the error I get when I try to update. ****************************************************************************** The query processor could not produce a query plan from the optimizer because a query cannot update a text, ntext, or image column and a clustering key at the same time. ****************************************************************************** Sample code that causes this error. private void button1_Click(object sender, EventArgs e) { this.Validate(); this.tb.EndEdit(); this.tb.Update(this.DataSet.tb); } Form was created by using the drag and drop abilities of the data source. simple form, only 4 items in the table.

    P 1 Reply Last reply
    0
    • P PyroManiak

      This is the error I get when I try to update. ****************************************************************************** The query processor could not produce a query plan from the optimizer because a query cannot update a text, ntext, or image column and a clustering key at the same time. ****************************************************************************** Sample code that causes this error. private void button1_Click(object sender, EventArgs e) { this.Validate(); this.tb.EndEdit(); this.tb.Update(this.DataSet.tb); } Form was created by using the drag and drop abilities of the data source. simple form, only 4 items in the table.

      P Offline
      P Offline
      PyroManiak
      wrote on last edited by
      #2

      Has anyone ever seen this? Or am I the winner of finding new ways to break code for the day? :->

      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