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. System.Data.DBConcurrencyException

System.Data.DBConcurrencyException

Scheduled Pinned Locked Moved Database
cssbeta-testingquestionannouncement
1 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.
  • I Offline
    I Offline
    IMC2006
    wrote on last edited by
    #1

    I have a app with a grid and am working on updating data from the grid to the data base. the update is triggered off a menu item. the code is as follows: try { // New data entered to Contract QA_Setup table DataAccess da = new DataAccess(); string sproc = "prc_QA_Setup_upd"; string dbAction = "Update"; string tableName = "QA_Setup"; // Update to find grid changes //ug.Update(); ug.UpdateData(); // to retrieve ds with modified rows to grid ds.GetChanges(DataRowState.Modified); // Call to DAL to update QA_Setup with new data da.updateDB(ds, sproc, dbAction, tableName); } This passes to the DAL and tries to run: private void prepareUpdate(string sproc, string tableName) { // Create parameters for the QA_Setup dataset via Sqlcommand SqlCommand cmd = new SqlCommand(sproc, conn); // call set cmd properties defineParams(tableName, cmd); cmd.CommandType = CommandType.StoredProcedure; cmd.CommandText = sproc; //RunProc(sproc); //RunProc(cmd); dap.UpdateCommand = cmd; } However I get a System.Data.DBConcurrencyException, what am I missing?

    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