FIX: Data Column Host Process ID does not Show PID of Process Being Traced in Profiler

Article translations Article translations
Article ID: 247673 - View products that this article applies to.
This article was previously published under Q247673
This article has been archived. It is offered "as is" and will no longer be updated.
BUG #: 56762 (SQLBUG_70)
Expand all | Collapse all

SYMPTOMS

According to the SQL Server Books Online, the Host Process ID in Profiler shows the following:
 (mk:@MSITStore:C:\MSSQL7\BOOKS\SQLBOL.CHM::/html/mon_perf_13.htm):
				
Collapse this tableExpand this table
Data ColumnDescription
Host Process IDID assigned by the host computer to the process in which the client application runs. This data column is populated if the host process ID is provided by the client. To determine the host ID, use the HOST_ID function.

If you are tracing a Query Analyzer session to SQL Server, the Host Process ID in Profiler should have the same value as the SELECT HOST_ID() run from the Query Analyzer and both should return the PID of the Query Analyzer process (which still shows up as isqlw.exe in Task Manager).

When you actually perform the trace, the value that displays under the Host Process ID field in Profiler is different from the value returned by SELECT HOST_ID(). However, the value returned by SELECT HOST_ID() in the Query Analyzer matches the PID for isqlw.exe as shown by Task Manager.

STATUS

Microsoft has confirmed this to be a problem in SQL Server 7.0. This problem has been corrected in U.S. Service Pack 2 for Microsoft SQL Server 7.0. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
254561 INF: How to Obtain Service Pack 2 for Microsoft SQL Server 7.0 and Microsoft Data Engine (MSDE) 1.0
For more information, contact your primary support provider.

MORE INFORMATION

To reproduce this problem, follow these steps:
  1. Start SQL Server.
  2. Start Profiler.
  3. From the Tools menu, choose Options.
  4. In the Trace Options dialog box, under the General tab, in the Data Columns section make sure that you select the "All data columns" option.
  5. Click the New Trace button.
  6. In the Trace Properties dialog box, under the General tab, name the trace Test.
  7. Go to the Data Columns tab.
  8. In the Unselected Data window double-click the Host Process ID column.
  9. You should see the Host Process ID column listed in the Selected Data window.
  10. Click OK to start the trace.
  11. Open Query Analyzer and connect to the server.
  12. Next, run the following query:
    SELECT HOST_ID()
    					
  13. Note the value.
  14. Compare the preceding value with the value in Profiler under the Host Process ID column. The two values should be different.
  15. Open Task Manager.
  16. Go to the Process tab.
  17. Note the PID for the isqlw.exe program.
  18. Compare the preceding value with the value returned when you executed SELECT HOST_ID() from Query Analyzer. The two values should be the same.

Properties

Article ID: 247673 - Last Review: October 22, 2013 - Revision: 2.1
APPLIES TO
  • Microsoft SQL Server 7.0 Standard Edition
Keywords: 
kbnosurvey kbarchive kbbug kbfix KB247673

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com