Article ID: 292455 - View products that this article applies to.
This article was previously published under Q292455
This article has been archived. It is offered "as is" and will no longer be updated.
BUG #: 351471 (SHILOH_BUGS)
After displaying results for a query with a COMPUTE clause, the OSQL tool fails to display the column names in the next query. In subsequent queries, however, column names are displayed correctly (provided there are no additional COMPUTE clauses).
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
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 the following example, the second result set does not include the column names, which should be returned by the query.