You may also consider looking at SQL Server Profiler, with some configuration this will show what queries are running and the associated parameter values.
Regards
Main Topics
Browse All TopicsHi,
I have a huge database and an even bigger spaghetti code that I'm supposed to learn. I was wondering if there is some kind of a tool or a way to see what tables were affected and what was changed after a user action.
Thanks,
Kathryn
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Quest's TOAD utility has the ability to do a DIFF-like data compare between two tables, but it can't scan a whole database and tell you which tables have changed. You would have to copy off the tables that you are interested in, run the code, and then compare the current live tables to the saved copy one at a time.
Not terribly efficient and may be hard to follow, but since that was your original question I figured I'd reply to that. I'm not sure if the freeware version has this capability in it or only the commercial product. It's a good tool for working with SQL Server or Oracle, but isn't cheap.
http://www.quest.com/toad-
http://www.toadsoft.com/to
ApexSQL Diff is another tool like this, but I don't have any experience with it.
http://www.apexsql.com/sql
~bp
I'm sorry if I didn't make the question clear. What I wanted to find out was if there is a way to compare before and after database snapshots. After would be when a user action happens, this way I can easily figure out which tables are used where, instead of going through thousands of lines of code.
Regards,
Kasia
Business Accounts
Answer for Membership
by: aneeshattingalPosted on 2009-10-22 at 08:43:28ID: 25635537
Hello kasiencja,
you can debug the code, that will give you an idea of whats happening during the execution, eventhough it didnt give you the contents you are inserting (unless u have a select statement after the insert ). it will be pretty handy
Regards,
Aneesh