question regarding rejectchanges of sqldataadapter.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • trialproduct2004@yahoo.com

    question regarding rejectchanges of sqldataadapter.

    Hi all
    i am having application which is modifying two tables of database.

    My problem is sometime my applicatiion is giving error 'concurrency
    violation'.

    My two tables are related to each other, mean at a time i am setting
    one flag of both the table.

    Whenever i am callig update on first table, changes are getting stored
    in databse.
    But when i am caling update on second table it is giving me above
    mention error.
    So what i want is if second update give me error reverse back changes
    which i made in first table.

    Willl rejectchange on adapter whill rever changes after calling update
    of dataadapter.

    If not what is other way of doing this,

    any help will be truely apprecaited. I am totally blank about this
    problem.

    Thanks in advance.

Working...