restore problem for sql 2012 database

question....
 I had a user delete more than what he was supposed to in our sql server.   I have a full backup with point in time recovery...
 the problem is.....
 we were not notified of the messup until 4 hours after it happened.  
 can I recover the database and rollback only his transaction "delete statement"


 what are my options....
 we have full point in time recovery....
 mess up happened at 1100  
 it is 1600 now.....
jamesmetcalf74Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

PadawanDBAOperational DBACommented:
By full point in time recovery I am assuming that you mean you have the database in full recovery model.  You'll need the most recent full backup prior to 1100 and all transaction log backups since the last full backup and the first one from after 1100 today (or if you have differentials, you'll need the most recent full backup prior to 1100, the most recent differential backup prior to 1100, and all transaction log backups that occurred after that differential until the first one after 1100).  Restore those to a new database (use the stopat option for all of the transaction log restores so you don't accidentally blow past your target)  - and i usually recommend erring on the side of caution and using a completely different server - and then start trying to figure out the data you need and start moving it out into staging tables to make it easy for you to copy it back to the source database.  I am hoping you have the syntax of any queries he executed so you can just turn those into selects to copy out the data?  If not I imagine we are looking at some other options (one of which I am rolling around in my head involves database snapshots - are you on enterprise?)

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Scott PletcherSenior DBACommented:
I'd restore the db to a different name to just prior to the DELETE, then copy the DELETEd rows into the current table.  After all, those rows haven't been modified since they were DELETEd :-).
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.