Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SQL Profiler not showing inserts/deletes/updates

When I run the profiler while running my application, it only seems to show SELECTs, not INSERTs or anything that changes the database. Yet my database is being updated, so those commands must be being executed. What do I have to do to get it to show updates? (I am using Entity Framework, btw, if that might make a difference.)

like image 664
Cynthia Avatar asked Sep 21 '10 23:09

Cynthia


1 Answers

I figured out how to do it - I had to select SQL:StmtStarting and SP:StmtStarting, not just SQL:BatchStarting or SP:Starting.

Not sure what the differences are, but the inserts/deletes, etc. It showed up when I included those events.

like image 137
Cynthia Avatar answered Sep 29 '22 00:09

Cynthia