Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / Languages / SQL

See the SQL Generated by LINQ

5.00/5 (1 vote)
18 Jul 2011CPOL 7.2K  
If you are the type that likes to debug production code, you can use SQL Profiler to find queries generated by your LINQ statements. This is a technique I recently used because it was so simple and did not require me to recompile anything.Note that StefanHam already posted this alternate...
If you are the type that likes to debug production code, you can use SQL Profiler to find queries generated by your LINQ statements. This is a technique I recently used because it was so simple and did not require me to recompile anything.

Note that StefanHam already posted this alternate (i.e., to use SQL Profiler), but it was deleted. If you delete my alternate, please leave a comment first.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)