Registrations are now open. Join us today!
There is still a lot of work to do on the wiki yet! More information about editing can be found here.
Already have an account?

Microsoft KB Archive/261133

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 16:20, 18 July 2020 by 3155ffGd (talk | contribs) (importing KB archive)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Knowledge Base

FIX: DTS "Send Mail" Fills Up Mailbox and Outlook Cannot See or Delete E-Mail Messages

Article ID: 261133

Article Last Modified on 3/14/2006


  • Microsoft SQL Server 7.0 Standard Edition
  • Microsoft Exchange Active Server Components 5.0, when used with:
    • Microsoft Windows NT 4.0

This article was previously published under Q261133

BUG #: 57661 (SQLBUG_70)


When you create a package that uses SQL Server's Data Transformation Services (DTS) Send Mail task to send messages, a sender's mailbox fills up steadily because DTS reports error messages such as:

Cannot execute package because mailbox is full.

However, if you review the sender's Microsoft Outlook SentItem folder and check the mailbox size, the mailbox size is near 0 KB, and nothing is in the sender's mailbox from Outlook's point of view.

If you check the sender's mailbox size from the Exchange Server Administrative console, the correct size of the mailbox displays. However, you cannot see the messages that fill up the mailbox because those messages are hidden from Outlook and the Exchange Server.


The Outlook and Exchange clients cannot view any items under the root directory of the Exchange Server Information Store. After DTS Send Mail sends out the message, DTS keeps the message in the root folder of the sender's (source) mailbox on the Exchange Server. Therefore, the sender's Outlook client cannot view or delete these messages.


Use the Microsoft Exchange utility, MDB Viewer, to view the hidden e-mail messages that fill up the mailbox. You can also use MDB Viewer to delete those messages.

Follow these steps to check the root folder of the mailbox that is configured for use by DTS Send Mail:

  1. Copy the following files to a computer on which Outlook is installed:

    • Mdbvu32.exe
    • Propvu32.dll
    • Statvu32.dll
    • Tbvlu32.dll
    • Xvport.dll

    You can find the Mdbvu32 utility and the accompanying DLL files on the Exchange Server 5.5 CD-ROM in either the \Server\Support\Utils\I386 folder or the \Server\Support\Utils\Alpha folder.
  2. Verify that a profile exists for the user's mailbox, that the profile is selected as the default profile, and that a user (who has permission to the user's mailbox) is successfully logged on to the client workstation.
  3. Make sure that Outlook is not currently running on the workstation.
  4. Start MDB Viewer by double-clicking the MDBVU32.exe executable file.
  5. When the MAPILogonEx dialog box opens, select the MAPI Explicit Profile check box, and then click OK.
  6. When the Choose Profile dialog box displays, select the profile you created in the previous steps, and then click OK.

    NOTE: If the Choose Profile dialog box does not appear, you are probably already logged on to a profile. Exit, log off the client and the profile, and then try again.
  7. On the MDB Viewer Test Application menu, click MDB, and then select the OpenMessageStore option.
  8. In the Select Message Store To Open dialog box, select the Attendant (Server) display name, and then click Open. (Open Mode should default to Best Access, which you want to leave as the default.)
  9. From the MDB Viewer Test Application menu, click MDB, and then click Open Root Folder.

    At this step, you see that the message sent by DTS "DTStest1" is located in the root directory of the profile used by DTS. The root directory is hidden from the client side, so use Outlook. You cannot see this message, but it is stored in that mailbox even after it is sent out to the recipient. This explains why the mailbox is full, but Outlook could not see anything in this mailbox.
  10. Inside the MAPI_FOLDER ROOT window, select the second box named Operation Available. Select Operation, and then click Call Function. Select the function named lpFld_DeleteMEssages, and then click Call Function to delete the selected message in the root directory.


Microsoft has confirmed this to be a problem in SQL Server 7.0. This problem has been corrected in U.S. Service Pack 3 for Microsoft SQL Server 7.0. For more information, click the following article number to view the article in the Microsoft Knowledge Base:

274799 INF: How to Obtain Service Pack 3 for Microsoft SQL Server 7.0 and Microsoft Data Engine (MSDE) 1.0

For more information, contact your primary support provider.


If you use the Send Mail task in the DTS GUI designer, mail is not saved in the Sent Items folder by default. The DTS GUI does not have an option to change this behavior in the current version. However, you can change the behavior by using Microsoft Visual Basic code:

Dim myPackage As New DTS.Package
Dim oCustomTask3 as DTS.SendMailTask
Set oTask = myPackage.Tasks.New("DTSSendMailTask")
Set oCustomTask3 = oTask.CustomTask
oCustomTask1.SaveMailInSentItemsFolder = False

For additional information, click the article number below to view the article in the Microsoft Knowledge Base:

308758 FIX: SQL Agent Mail May Cause E-mail to Be Written to Root Directory of Source Mailbox

Additional query words: "DTS mail" "fill up mailbox" dtsui.dll

Keywords: kbbug kbfix kbsqlprog KB261133