petre ricardo

petre ricardo

  • NA
  • 194
  • 0

How to write an update statement for an update operation? (dealing with concurrency)

Oct 11 2009 5:11 AM

hi,
Assume i have a method updateCustomer(DataSet ds),
typicaly we need to map the DataAdapter's UpdateStatement property to a storeprocedure or SQL query that has an update statement, If i write a Storped Procedure, it should take at least one input parameter.
This is where the problem is: when assining a value to the input parameter i should that should row updates
i.e: da.selectCommand.parameters["custIndex"].Value = "<customer index value>", but how do i know which row that was updated on the DataGridView?
 
 
 

Answers (1)