How to use sxstrace.exe – diagnose side-by-side errors

04 June,2014 by Jack Vamvas

Question: I’m trying to run a binary and getting an error message requesting to use sxstrace.exe . How can I use sxstrace.exe to debug the issue?

Please use sxstrace.exe for detailed diagnosis

 

Answer: The sxstrace utility assists in diagnosing side-by-side errors. Follow these steps to run sxstrace.exe. These steps will create the trace as a binary file and convert the binary file into a readable format.

The binary is present at location:

 C:\Windows\System32\sxstrace.exe

Administrative privileges are required to use sxstrace.exe

Step 1 : Open Command Prompt

Step 2: Start Trace

Run  the  command: 

C:\> sxstrace.exe Trace -logfile:tracetest.log

Note: Make sure you run the command on a directory with write permissions. As an alternative, point the –logfile parameter to a directory with write permissions  

Step 3 : Run the program causing the error message. When the error message appears click OK

Step 4: Stop Trace

Step 5 :Convert log to readable format. The tracetest.log from above is a binary formatted file. This command will convert into human readable format by parsing the binary log file and creating a text file

C:\> sxstrace.exe Parse -logfile:tracetest.log -outfile:tracetest.txt

 Read More

SQL Server - SQLIO interpret results

SQL Server – DBA Scripts

Powershell Scripts for DBA - SQL Server DBA


Author: Jack Vamvas (http://www.sqlserver-dba.com)


Share:

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment on How to use sxstrace.exe – diagnose side-by-side errors


sqlserver-dba.com | SQL Server Performance Tuning | SQL Server DBA:Everything | FAQ | Contact|Copyright & Disclaimer