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



The information in this article applies to:

  • Microsoft SQL Server 2000 (all editions)

This article was previously published under Q290739
BUG #: 351952 (shiloh_bugs)

SYMPTOMS

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.

CAUSE

In SQL Server 2000, each call to a SQL Mail extended procedure causes a MAPI logon and logoff combination.

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

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
				

Modification Type:MajorLast Reviewed:11/5/2003
Keywords:kbBug kbfix kbSQLServ2000sp1fix KB290739