In my previous post I showed you three different ways to capture the T-SQL query generated by LINQ To SQL. A comment on the post reminded me that I forgot to mention a fourth way i.e. using Linqpad. In Linqpad when you have executed the query you can click on the SQL tab next to Results and look at the T-SQL query.

image

Other than viewing generated queries, Linqpad is also a great tool for writing queries. The tool itself is very lightweight and comes with many templates to get you started.

Tagged with:
 

4 Responses to View T-SQL Query Generated By LINQ To SQL Using Linqpad

  1. [...] had a look at LINQPad few months ago when I wrote about how you can use this tool to view generated LINQ To SQL Query. There is not doubt that LINQPad is a very handy tool if you are writing LINQ To SQL queries. But [...]

  2. tareq says:

    Where can i find linqpad?

  3. Deepak says:

    Tareq,

    You can download Linqpad here http://www.linqpad.net

  4. tareq says:

    Thanks for your reply.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>