Friday, March 30, 2012

Log of Executed SQL

I am sure this is a very newbie questions, but...

How do you view what SQL statements have been run on your DB?

I have written an application in C#, and for some reasons some rows are being dropped. I would like to look up what SQL has been run against the Database to make it lose the rows. I was able to do this in MySql, but can not figure out how to do it in SQL Server/Express 2005.

Thanks for any help,

Normally you would use a nice tool like SQL Profiler to give you this data. But in your case (you don't get this tool with Express) I would take a look at sp_trace_create in Books Online and start from there.|||Thanks! That is exactly what I was looking for.sql

No comments:

Post a Comment