FIX: Iterating Through SQL Mail Messages Using Extended Procedures Takes Longer in SQL Server 2000

This article was previously published under Q290739
This article has been archived. It is offered "as is" and will no longer be updated.
BUG #: 351952 (shiloh_bugs)
Iterating through SQL Mail messages by using SQL Mail extended stored procedures may take a longer amount of time than in earlier versions of SQL Server.
In SQL Server 2000, each call to a SQL Mail extended procedure causes a MAPI logon and logoff combination.
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 theMicrosoft Knowledge Base:
290211 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.
The script to iterate through a stack of SQL Mail messages might resemble the following:
while /* condition */ begin   xp_findnextmsg /* params */    xp_readmail /* params */ end				

Article ID: 290739 - Last Review: 01/16/2015 21:48:50 - Revision: 3.2

Microsoft SQL Server 2000 Standard Edition

  • kbnosurvey kbarchive kbbug kbfix kbsqlserv2000sp1fix KB290739