Click here to Skip to main content
15,901,982 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am useing this code after update command.

C#
public int commit()
       {
           string sql = "commit";
           int i = Convert.ToInt32(OracleDataAccess.ExecuteNonQuery(OracleDataAccess.ConnectionString, CommandType.Text, sql));
           return i;

       }




but its return 0

and data not updated..
Posted
Comments
ArunRajendra 1-Aug-13 5:44am    
I am not sure I guess this is run under different transaction. Try to use the trasaction object.
Harshil_Raval 1-Aug-13 8:00am    
Why you need commit command. After update command it should commited to db. How you are firing update command and it's c# code?
ZurdoDev 1-Aug-13 9:07am    
I don't know Oracle but in SQL this would not work. Why do you have a separate commit statement hardcoded like this? Why isn't it part of the oracle?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900