Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3501294
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T12:50:28+00:00 2026-05-18T12:50:28+00:00

I am debugging stored procedures, and right now I am interested in what ran

  • 0

I am debugging stored procedures, and right now I am interested in what ran in what order and which which parameters as opposed to how fast things ran and what may sneak in between and cause a slowdown.

So, I captured a couple of minutes worth of trace. The problem is that there is too much stuff, and I need to narrow it down. If I do File -> Save As, I get the following options:

  • Trace File…
  • Trace Template…
  • Trace Table…
  • Trace XML File…
  • Trace XML File for Replay…

Now, these are decent options, but what I really want is a tabular format, such as CSV. I think that commas in SP trace would probably mess up the CSV format. I would gladly use something else, such as || as a delimiter.

Once I do have the tabular format, I can filter it down using grep, etc. and then easily process it with Python to see the exact things I want. I started parsing the XML file with a script, but found myself spending too much time on the trace XML file format (have not used lxml library before).

So … is there an easier way? Can I at least copy it to Excel somehow?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T12:50:28+00:00Added an answer on May 18, 2026 at 12:50 pm

    If you save it into a trace table; you can get the data in a table in SQL Server which will let you manipulate it to your hearts content; including dumping it out to CSV if still required. The text data column is fully represented in the table.


    If you choose Save → Trace Table. You will be prompted for the name of the table and the database. Lets say you call it ProfilerTemp in the database scratch.

    Enter those; you can query the table using

    select * from scratch.dbo.ProfilerTemp
    

    You will see everything in the trace window in the table. If you didnt filter down to just stored procedures and want just them in the select

    Select textdata from [Scratch].[dbo].[ProfilerTemp] 
      where eventclass = 10 
      And textdata like 'exec %' 
      and not cast(TextData as nvarchar(max))= 'exec sp_reset_connection'
    

    This filters out non procedure calls and any connection resets you may have. You may need to add more filters depending on what you are trying to do.

    If you want this out as a text file; choose query – results to file and run the query. This will prompt for the file name and give you the parameter text as a text file.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When searching, only stored fields are returned from a search. For debugging reasons, I
Using asp.net MVC in c#, I am making a call to a stored procedure
This is kind of I already lost x hours debugging this kind of problem/question
I have a working WCF Data Service built on a Linq2Sql data provider. Things
When debugging my C#, I often want to know when a variable's value changes
For debugging I have many calls to a debug log function in my application.
I was wondering if there is any way to check the execution logs of
I know this topic is bit old, but i did surf the web and
I'm trying to create a script that will delete all user properties for a
I keep getting the following InvalidOperationException : The relationship between the two objects cannot

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.