I'm using MS SQL Server 2005 enterprise edition. I executed an update query to get affect a record in a row and a column.
update HS_SM_USERACCOUNT
set ACCOUNTPOLICYTYPE=1
where EMP_NUMBER='000540' and USERID='03510410@'
Earlier the column called ACCOUNTPOLICYTYPE
is holding value 1
for that particular condition in WHERE clause. Now I want to get the previous state without executing Update Query again.
Will ROLLBACK
help me? Please help me on this.