Microsoft KB Archive/934067

= How to enable tracing in Visual Studio 2005 Team Edition for Database Professionals =

Article ID: 934067

Article Last Modified on 4/19/2007

-

APPLIES TO


 * Microsoft Visual Studio 2005 Team Edition for Database Professionals

-



Important This article contains information about how to modify the registry. Make sure that you back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows registry



INTRODUCTION
This article describes how to enable tracing in Microsoft Visual Studio 2005 Team Edition for Database Professionals.



MORE INFORMATION
To enable tracing in Visual Studio 2005 Team Edition for Database Professionals, you must enable the  registry key. To do this, follow these steps. Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall the operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.  Create a new .reg file that is named EnableTrace.reg.  Add the following code to the file that you created in step 1. Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\8.0\DBPro\Tracing] &quot;LogDir&quot;=&quot;%USERPROFILE%\\Application Data\\Microsoft\\VisualStudio\\8.0\\DBPro\\Trace&quot; &quot;PrefixTime&quot;=dword:00000001 &quot;PrefixPid&quot;=dword:00000001 &quot;PrefixThreadId&quot;=dword:00000001 &quot;TraceSwitch&quot;=dword:00000003 &quot;TraceToLogFile&quot;=dword:00000000 &quot;TraceToEventLog&quot;=dword:00000000 &quot;TraceToDebugOutput&quot;=dword:00000001 &quot;DisplayCallStack&quot;=dword:00000000 &quot;UniqueLogFile&quot;=dword:00000001 &quot;EventIdsToTrace&quot;=dword:00007fff  Click Start, click Run, type regedit, and then click OK. On the File menu, click Import. Locate and then click the file that you created in step 1, and then click Open. In the Registry Editor dialog box, click OK.</ol>

The following explains some options that are associated with the  registry key.

TraceSwitch
The TraceSwitch option is a trace filter that has the following settings.

EventIdsToTrace
Visual Studio 2005 Team Edition for Database Professionals has multiple subareas. Each area of the product is assigned an Event ID in an exponential series. For example, the Event IDs may resemble the following:

1, 2, 4, 8

LogDir
The LogDir option is the location where the output from a trace will go. You can use environment variables in the LogDir string.

UniqueLogFile
If the UniqueLogFile option is set to true, every session of Visual Studio 2005 will create a new log file. This will only occur if the TraceToLogFile option set to true. The name of the log file is determined by the algorithm itself.

Additional query words: Tracing vstsdata vs2005

Keywords: kbpubtypekc kbmsccsearch kbcode kbinfo kbhowto KB934067

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.