Re: Capture SQL 2005 database transaction and replay them to testdata -
01-29-2010
, 05:20 PM
Have you considered using triggers to append t-sql commands to a
file? Put a trigger on INSERT, UPDATE and DELETE on your tables and
have that trigger create a t-sql command using @variables. Remember
to use a cursor to create the command because there could be more than
one transaction.
A possible solution, may not be a good one if you want to do it on all
tables, however you can script out the triggers on one table once you
write the code and do a simple search and replace.
maybe not the best idea, but one that came to mind,
Erik |