I swear I saw how to do this before, but now that I really need to do this, I can’t remember where I saw it. I need two different things -
1) to see the actual SQL query that is generated by the LINQ query; and 2) when the SQL query actually gets into the database to perform any operations (CRUD)
Is there a tool that will allow me to do this?
EDIT
Sorry, should have given more details. - LINQ to Entities is what I use. - In addition, I do not have administrator rights on our instance of SQL Server, so I can not use SQL Profiler. I could always call the database administrator and get them to do this for me, but this is a hassle. I should have mentioned this, and I'm sorry. What I really want is a tool that I can use in my own window, which will allow me to see when the LINQ query gets into the database , when I'm in debug mode (debugging and code jump).
source share