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. Update Stored Procedure throws Exception "Expects Parameter..."

Update Stored Procedure throws Exception "Expects Parameter..."

Scheduled Pinned Locked Moved C#
helpsharepointdatabaseannouncement
2 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.
  • S Offline
    S Offline
    STW
    wrote on last edited by
    #1

    My Table "Adressen" has as PrimaryKey "adid". When I want to update the Adressen Table occurs an error: Procedure sp_AdressenUpdate expects parameter @Original_adid which was not supplied. This error occurs only if I edit a row and update, NOT when I add new Rows and update then. The parameter @Original_adid exists. I hope you can help me! Thanks Stefan

    H 1 Reply Last reply
    0
    • S STW

      My Table "Adressen" has as PrimaryKey "adid". When I want to update the Adressen Table occurs an error: Procedure sp_AdressenUpdate expects parameter @Original_adid which was not supplied. This error occurs only if I edit a row and update, NOT when I add new Rows and update then. The parameter @Original_adid exists. I hope you can help me! Thanks Stefan

      H Offline
      H Offline
      Heath Stewart
      wrote on last edited by
      #2

      STW wrote: This error occurs only if I edit a row and update, NOT when I add new Rows and update then. Because it's used only in the DataAdapter.UpdateCommand and, thus, must be added to the DataAdapter.UpdateCommand's Parameters property. The data adapter designer will do this for you if you opt for it. The exception would not be thrown if the Parameters property contained the parameter correctly - i.e., it's named "@Original_adid" and is declared as the correct type.

      Microsoft MVP, Visual C# 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