Microsoft KB Archive/292455

= FIX: OSQL Does Not Display Column Names for Query =

Article ID: 292455

Article Last Modified on 11/6/2003

-

APPLIES TO


 * Microsoft SQL Server 2000 Standard Edition

-



This article was previously published under Q292455



BUG #: 351471 (SHILOH_BUGS)



SYMPTOMS
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).



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

290211 INF: How to Obtain the Latest SQL Server 2000 Service Pack



STATUS
Microsoft has confirmed that this is a problem in SQL Server 2000. This problem was first corrected in SQL Server 2000 Service Pack 1.



MORE INFORMATION
In the following example, the second result set does not include the column names, which should be returned by the query. 1> select stor_id, qty, payterms from pubs..sales group by stor_id, qty, payterms compute sum(qty) 2> go stor_id qty   payterms --- -- 6380         3 Net 60 6380        5 Net 60 7066       50 Net 30 ... 8042       30 Net 30

sum ===========                448

(20 rows affected) 1> select NR_USERS=count(*) from sysusers 2> go         14

(1 row affected)

Keywords: kbbug kbfix kbsqlserv2000sp1fix KB292455

-

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

© Microsoft Corporation. All rights reserved.