tags:

views:

31

answers:

1

I want to test that application A (legacy) and application B (current) are sending the same SQL to the database. Is there an easy way to check the generated SQL?

I'm not too concerned with minor syntax differences.

A: 

I suspect tracing is the most robust option. Some things (like LINQ-to-SQL) allow query logging, but certainly not all. But you have more safety that a trace will catch everything.

Note that "minor syntax differences" will make it very painful to compare, of course

Marc Gravell