案例环境:

 

操作系统: Windows 2003 SE 32bit(SP2)

数据库版本:Microsoft SQL Server 2005 - 9.00.5069.00 (Intel X86)

            Aug 22 2012 16:01:52

            Copyright (c) 1988-2005 Microsoft Corporation

            Standard Edition on Windows NT 5.2 (Build 3790: Service Pack 2)

 

案例分析:

 

如下所示,使用下面SQL语句发送邮件时,遇到一个非常奇怪的错误信息:Not enough storage is available to complete this operation

EXEC msdb.dbo.sp_send_dbmail @recipients = 'konglb@xxx.com',
     @subject = 'it is only test', @body = NULL, @body_format = 'text',
     @query_result_separator = '---',
     @query = 'SELECT * FROM  MESDB.dbo.MES_DAILY_CLOSING_LOG';

相关文章: