FIX: The spacing may not be correct when you run xp_sendmail and the query parameter contains a COMPUTE clause

Article translations Article translations
Article ID: 815476 - View products that this article applies to.
Bug #: 364229 (SQL Server 8.0)
Expand all | Collapse all

On This Page


In Microsoft SQL Server 2000, when you run the xp_sendmail system stored procedure with the query parameter as a SELECT statement that contains a COMPUTE clause, the spacing between the record set results may not be correct.


Service pack information

To resolve this problem, obtain the latest service pack for Microsoft SQL Server 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
290211 How to obtain the latest SQL Server 2000 service pack

Hotfix information

The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in coordinated universal time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.
   Date         Time   Version          Size      File name
   25-Feb-2003  14:11  2000.80.777.0      29,244  Dbmslpcn.dll     
   07-Feb-2003  16:14                    786,432  Distmdl.ldf
   07-Feb-2003  16:14                  2,359,296  Distmdl.mdf
   29-Jan-2003  12:25                        180  Drop_repl_hotfix.sql
   31-Jan-2003  11:02  2000.80.763.0   1,557,052  Dtsui.dll        
   29-Jan-2003  15:48                    746,470  Instdist.sql
   29-Jan-2003  12:25                      1,402  Inst_repl_hotfix.sql
   07-Feb-2003  17:10  2000.80.765.0      90,692  Msgprox.dll      
   07-Feb-2003  14:23                  1,065,895  Replmerg.sql
   07-Feb-2003  17:10  2000.80.765.0     221,768  Replprov.dll     
   07-Feb-2003  17:10  2000.80.765.0     307,784  Replrec.dll      
   29-Jan-2003  15:48                  1,084,318  Replsys.sql
   27-Feb-2003  12:04  2000.80.778.0     176,696  Sqlmap70.dll     
   07-Feb-2003  17:10  2000.80.765.0      57,920  Sqlrepss.dll     
   03-Mar-2003  05:45  2000.80.780.0   7,516,241  Sqlservr.exe     
   07-Feb-2003  17:10  2000.80.765.0      45,644  Sqlvdi.dll       
   25-Feb-2003  14:11  2000.80.777.0      29,244  Ssmslpcn.dll     
   25-Feb-2003  14:11  2000.80.777.0      82,492  Ssnetlib.dll     
   27-Feb-2003  12:04  2000.80.778.0      98,872  Xpweb70.dll 
Note Because of file dependencies, the most recent hotfix or feature that contains these files may also contain additional files.


Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.This problem was first corrected in Microsoft SQL Server 2000 Service Pack 4.


Steps to Reproduce the Problem

In SQL Query Analyzer, run the following Transact-SQL statement:
EXEC master..xp_sendmail 
@recipients = '<Recipient Email Id>',
@message = 'Total Sum of Job ID' ,
@subject = 'Compute Sum',
@width = 133 ,
@query = 'SELECT [emp_id], [fname], [minit], [lname], [job_id], [job_lvl], [pub_id] FROM [pubs].[dbo].[employee] COMPUTE SUM( job_id )'
Note The sum results are spaced too far after the record set.


For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
824684 Description of the standard terminology that is used to describe Microsoft software updates
814997 FIX: The header information may not be included when the query parameter has a COMPUTE clause


Article ID: 815476 - Last Review: November 2, 2007 - Revision: 4.2
  • Microsoft SQL Server 2000 Developer Edition
  • Microsoft SQL Server 2000 Standard Edition
  • Microsoft SQL Server 2000 Enterprise Edition
  • Microsoft SQL Server 2000 Personal Edition
  • Microsoft SQL Server 2000, Workgroup Edition
  • Microsoft SQL Server 2000 Desktop Engine (Windows)
  • Microsoft SQL Server 2000 Enterprise Edition 64-bit
kbqfe kbstoredproc kbsqlservmail kbsqlserv2000presp4fix kbfix kbbug KB815476

Give Feedback


Contact us for more help

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