This article was previously published under Q258974
This article has been archived. It is offered "as is" and will no longer be updated.
BUG #: 57799 (SQLBUG_70)
All the rows in a result set are not saved to a file when you use Query Analyzer, if you select the "Results in Grid" option and you run a query, which returns more than 128 rows, and you then try to save the results of the query to a comma separated variable (CSV) file.
Use the "Results in Text" option if you want to save the results to a file. When you use the "Results in Text" option, all the rows in the result set are saved to the file.
Microsoft has confirmed this to be a problem in SQL Server 7.0. This problem has been corrected in U.S. Service Pack 3 for Microsoft SQL Server 7.0. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
274799 INF: How to Obtain Service Pack 3 for Microsoft SQL Server 7.0 and Microsoft Data Engine (MSDE) 1.0
For more information, contact your primary support provider.
To reproduce this problem, run the following query:
use pubsgoselect * from authors, sales
483 rows should return when you run this query. However, if you try to save the results to a CSV file, only the first 128 rows are saved to the file.