FIX: SQL Mail Attachments Contain Leading Space Before First Column of Each Result Row (307948)
The information in this article applies to:
- Microsoft SQL Server 2000 (all editions)
This article was previously published under Q307948
BUG #: 355624 (SHILOH_BUGS)
SYMPTOMS
Sending attached results of a SQL query adds an extra space before each row of the result set output if the @separator option is not specified with the xp_sendmail call.
CAUSE
When using the default separator, SQL Server 2000 does not account for the first column and adds the separator to the file, thereby changing the default behavior exhibited by prior builds of SQL Server.
RESOLUTIONTo 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 INF: How to Obtain the Latest SQL Server 2000 Service Pack
HotfixNOTE: The following hotfix was created prior to Microsoft SQL Server 2000 Service Pack 2.
The English version of this fix should have the following file attributes or later:
File name Version
----------------------
Sqlmap70.dll 8.00.449
NOTE: Due to file dependencies, the most recent hotfix or feature that contains the above files may also contain additional files.
WORKAROUND
Set the @separator to a single space to retain column separation by spaces and avoid the default behavior.
STATUSMicrosoft has confirmed that this is a problem in Microsoft SQL Server 2000. This problem was first corrected in Microsoft SQL Server 2000 Service Pack 2.
Modification Type: | Minor | Last Reviewed: | 9/26/2005 |
---|
Keywords: | kbHotfixServer kbQFE kbbug kbfix kbSQLServ2000preSP2Fix KB307948 |
---|
|