I was running a trace on a Sql Server 2005 using the profiler and need to find out what is causing the reported errors.
I used the "blank" template, and selected all columns of the following events:
- Exception
- Exchange Spill Event
- Execution Warnings
- Hash Warnings
- Missing Column Statistics
- Missing Join Predicate
I noticed a number of these errors in the "TextData" column:
- Error: 156, Severity: 16, State: 0
- Error: 208, Severity: 16, State: 0
I looked up the errors (Incorrect syntax, Invalid object name), but how can I tell what stored procedure or query is causing them?