Microsoft KB Archive/247673

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

Article ID: 247673

Article Last Modified on 3/14/2006

-

APPLIES TO


 * Microsoft SQL Server 7.0 Standard Edition

-



This article was previously published under Q247673



BUG #: 56762 (SQLBUG_70)



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):

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:  Start SQL Server. Start Profiler. From the Tools menu, choose Options. 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. Click the New Trace button.</li> In the Trace Properties dialog box, under the General tab, name the trace Test.</li> Go to the Data Columns tab.</li> In the Unselected Data window double-click the Host Process ID column.</li> You should see the Host Process ID column listed in the Selected Data window.</li> Click OK to start the trace.</li> Open Query Analyzer and connect to the server.</li>  Next, run the following query: SELECT HOST_ID </li> Note the value.</li> Compare the preceding value with the value in Profiler under the Host Process ID column. The two values should be different.</li> Open Task Manager.</li> Go to the Process tab.</li> Note the PID for the isqlw.exe program.</li> Compare the preceding value with the value returned when you executed SELECT HOST_ID from Query Analyzer. The two values should be the same.</li></ol>

Additional query words: Profiler, Host Process ID

Keywords: kbbug kbfix KB247673

-

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

© Microsoft Corporation. All rights reserved.