Click here to Skip to main content
15,905,590 members
Please Sign up or sign in to vote.
1.04/5 (4 votes)
See more:
hi,

Can anyone know?

what is commit and rollback in sql with example?
Posted
Updated 15-May-17 1:21am
Comments
Varun Sareen 20-Feb-12 0:29am    
search google dear
sathiyak 20-Feb-12 0:30am    
got it...
Varun Sareen 20-Feb-12 1:01am    
good!!!
King Fisher 26-Jun-14 8:12am    
google it

Commit and Rollback mainly used with transaction.
see Transactions in SQL Server
 
Share this answer
 
IN SIMPLE WORDS-->

COMMIT used to permanently store the task (insert/delete/update operations) you have done since u have started ur transaction.

ROLLBACK is used to revert all the task (insert/delete/update operations) you have done since u have started ur transaction.And the state of ur data base will be at the point of ur BEGIN TRANSACTION.
 
Share this answer
 

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