File attachment or query results size exceeds allowable value of 1000000 bytes.

來源:互聯網
上載者:User

今天早晨,收到了作業執行失敗的郵件(前幾天還能正常運行該作業,不知為何今天出錯)


郵件顯示,作業的第三個步驟報錯。

step3內容:

msdb.dbo.sp_send_dbmail
    @profile_name = 'Seagull2DBMail',
    @recipients = 'v-白丹丹 <v-baidd@sinooceanland.com>',    
    @subject = '反饋前50條執行時間比較長的語句',
@file_attachments='\\10.0.9.137\bcp\bcp_10.0.8.103\top_sql.xls'


單獨執行上面的語句,報錯:

File attachment or query results size exceeds allowable value of 1000000 bytes.


解決辦法:

配置‘資料庫郵件’,將‘最大檔案大小(位元組)’設定得大些。






將‘最大檔案大小(位元組)設定得大些(預設是1000000,即1M)


設定完成後,再執行下step3,不再報錯了。(*^__^*) 嘻嘻……


本篇文章譯自:http://www.dbdigger.com/ ,並做了些許改動。


相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.