Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
Chester
Starting Member
27 Posts |
Posted - 2004-03-11 : 14:00:02
|
| I have a view that I want to trace in SQL Profiler but only the viewand nothing else. How do I filter out all else but the view?TIA |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2004-03-11 : 14:39:21
|
| Have you looked at the Filters tab in the SQL Profiler trace? You'll want to use the ObjectName event criteria.Tara |
 |
|
|
Chester
Starting Member
27 Posts |
Posted - 2004-03-11 : 15:07:19
|
| Yeah, I put the view name in the "like" section of the ObjectName criteria but there is still no trace when I execute the view. |
 |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2004-03-11 : 15:12:54
|
| Others have run into this problem:http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=29602So trace everything for a database and put it into a table. Then run T-SQL against the table to get the data that you need. Or you could filter on the TextData column LIKE %ViewName% if the view is being called directly and not from a stored procedure.Tara |
 |
|
|
derrickleggett
Pointy Haired Yak DBA
4184 Posts |
Posted - 2004-03-11 : 16:29:20
|
| Get the object_id of the view and use that in the trace filter. It's a lot more accurate. Also, you need to make sure you are capturing the right event types that would be updating this view.MeanOldDBAderrickleggett@hotmail.comWhen life gives you a lemon, fire the DBA. |
 |
|
|
|
|
|