Published on

April 29, 2016

Fixing SQL Profiler Error: Cannot Retrieve Trace Definition

Have you ever encountered the frustrating SQL Profiler error message that says “Cannot retrieve trace definition for SQL Server version X.X.XXX”? If so, you’re not alone. This error message can be quite confusing and leave you scratching your head. But fear not, we’re here to help you fix this issue.

When I encountered this error message, I was initially puzzled by the lack of any actual error message. It simply displayed a blank message box. However, upon further investigation, I discovered that the version number shown in the message (in my case, 13.0.900) corresponds to the version of my SQL Server instance (SQL Server 2016 CTP) that I was trying to connect to.

So, how do we fix this error? The solution lies in copying the trace definition files from a working machine to the one experiencing the issue. Here are the steps to follow:

  1. Make a complete backup of the following location on your client machine: C:\Program Files (x86)\Microsoft SQL Server\130\Tools\Profiler\TraceDefinitions
  2. From a working machine that has been tested and verified to work properly, navigate to the same location mentioned above.
  3. Create a copy of the TraceDefinitions directory on the working machine.
  4. Replace the TraceDefinitions directory on your client machine with the copy from the working machine.

It’s important to note that the numeric value in the path corresponds to the SQL Server release version. Here’s a handy table to help you find the correct numeric value:

SQL Server ReleaseNumeric Value
SQL Server 200080
SQL Server 200590
SQL Server 2008100
SQL Server 2008 R2100
SQL Server 2012110
SQL Server 2014120
SQL Server 2016130

Once you have copied the trace definition files from the working machine to your client machine, you should be able to open SQL Profiler without encountering the “Cannot retrieve trace definition” error.

Remember to always make a backup of the original files before replacing them, just in case anything goes wrong. With these steps, you can quickly and easily fix this frustrating SQL Profiler error and get back to analyzing your SQL Server performance.

Click to rate this post!
[Total: 0 Average: 0]

Let's work together

Send us a message or book free introductory meeting with us using button below.