Microsoft KB Archive/290739

From BetaArchive Wiki
Knowledge Base


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

Article ID: 290739

Article Last Modified on 11/5/2003



APPLIES TO

  • Microsoft SQL Server 2000 Standard Edition



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
                

Keywords: kbbug kbfix kbsqlserv2000sp1fix KB290739