how to script trace definition from trc file in sql2005

Posted on 2010-09-23
Medium Priority
Last Modified: 2012-08-14
I have run server side trace, now I need to edit my trace, I tried with old *.trc file open and try to script them, but that option doesn't visible to me. I don't want to build thsi from scratch as it involved very complex setting.

Question by:motioneye
  • 3

Expert Comment

by:Narender Gakka
ID: 33742595
Did you go to the Properties and checked whether you could modify it and get the desired result out of it.
LVL 29

Accepted Solution

QPR earned 2000 total points
ID: 33742606
you script out trace templates as opposed to loaded trace files don't you?
tdf not trc
LVL 29

Assisted Solution

QPR earned 2000 total points
ID: 33742613
in other words you start with a blank template, modify all your columns/filters to suit and then script that out to create a sql file that can create this template at a later date when required

Author Comment

ID: 33776126
I don't want to tart with blank template, as I said its complex.. anyway I can extract this from trc files ? or can I extract this from somewhere inside sql since its been running as server side trace?
LVL 29

Assisted Solution

QPR earned 2000 total points
ID: 33776321
Not as far as I know. You add columns and filters then save that as a template rather than try to create a template from a previosly created trc file. But as I say, only as far as I know. If there is a trick then I haven't seen ot

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
Microsoft Access has a limit of 255 columns in a single table; SQL Server allows tables with over 255 columns, but reading that data is not necessarily simple.  The final solution for this task involved creating a custom text parser and then reading…
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question