Article ID: 295461 - View products that this article applies to.
This article was previously published under Q295461
This article has been archived. It is offered "as is" and will no longer be updated.
BUG #: 235412 (SHILOH_BUGS)
If the TMP environment variable is changed to a nonexisting directory, SQL Server Profiler may fail to run a new trace, and will result in the following message:
Failed to start a new trace
SQL Server Profiler allocates temporary storage files into the directory specified in the TMP environment variable. However, SQL Server Profiler does not validate whether the directory exists.
To resolve this problem, obtain the latest service pack for SQL Server 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
(https://support.microsoft.com/kb/290211/EN-US/ )INF: How to Obtain the Latest SQL Server 2000 Service Pack
Make sure that the directory exists when changing the TMP environment variable.
Microsoft has confirmed that this is a problem in SQL Server 2000. This problem was first corrected in SQL Server 2000 Service Pack 1.
In Microsoft Windows NT and Microsoft Windows 2000, environment variables are strings that contain information such as drive, path, or file name. Environment variables control the behavior of various programs. For example, the TMP environment variable specifies the location where programs place temporary files.
To add or change the values of environment variables, right-click My Computer and then click Properties. On the Advanced tab, click Environment Variables. Select a user in User Variables for a list of environment variables.