Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in SQL Server only
Search
Advanced Search
Forums
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
Forum
Topic
SQL Server
Does there have any undo or rollback function in SQL server?
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
Gison
New Member
Join Date:
Oct 2007
Posts:
6
#1
Does there have any undo or rollback function in SQL server?
Nov 1 '07, 06:56 AM
When we update or delete data... it's very serious and seem to no choice to rollback. How does everyone to control this part of situation?
thanks for the opinion.
debasisdas
Recognized Expert
Expert
Join Date:
Dec 2006
Posts:
8119
#2
Nov 1 '07, 08:48 AM
As you have posted a question in the articles section it is being moved to SQL Server Forum.
Comment
Post
Cancel
Gison
New Member
Join Date:
Oct 2007
Posts:
6
#3
Nov 1 '07, 10:49 AM
Originally posted by
debasisdas
As you have posted a question in the articles section it is being moved to SQL Server Forum.
sorry.. and thank you.
Comment
Post
Cancel
jamesd0142
Contributor
Join Date:
Sep 2007
Posts:
471
#4
Nov 1 '07, 10:49 AM
Originally posted by
Gison
When we update or delete data... it's very serious and seem to no choice to rollback. How does everyone to control this part of situation?
thanks for the opinion.
im my case i have a backup routine which runs every night, can you not restore from a backup?
Comment
Post
Cancel
pralay
New Member
Join Date:
Nov 2007
Posts:
1
#5
Nov 1 '07, 12:00 PM
Originally posted by
Gison
When we update or delete data... it's very serious and seem to no choice to rollback. How does everyone to control this part of situation?
thanks for the opinion.
yes. you can use transaction to handle this situation.
some commands are there
BEGIN TRANSACTION
<sql code>
COMMIT / ROLLBACK TRANSACTION
for more use the msdn help.
Comment
Post
Cancel
debasisdas
Recognized Expert
Expert
Join Date:
Dec 2006
Posts:
8119
#6
Nov 1 '07, 12:08 PM
You can always rollback the transaction before commiting it.
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment