June 2, 2011 at 5:22 am
SQL 2008 R2 enterprise
Win 2008
64 bit
UAT Testing:
Anyone know of an easy way to execute a stored procedure or execute a tsql command that can revert back all committed transactions when the tests are completed.
June 2, 2011 at 5:25 am
DB Snapshot or backup/restore.
June 2, 2011 at 5:27 am
Backup and restore?
Meaning: take a backup of the db before starting the tests and restore from backup once the tests are completed.
Question aside: why do you have to revert to the state before the tests? If the reason is "it's a production db" I strongly recommend to setup a separate test environment...
June 2, 2011 at 5:54 am
cheshirefox (6/2/2011)
Anyone know of an easy way to execute a stored procedure or execute a tsql command that can revert back all committed transactions when the tests are completed.
Take a database snapshot before you start, revert to it once you're done
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
June 2, 2011 at 6:31 am
We've recently started using fitnesse with DbFit for automated acceptance testing and TDD on the database side. It allows you to role back transactions when complete.
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply