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

Source: Internet
Author: User

This morning, I received an email indicating that the job failed to be executed. (The job still runs properly a few days ago. I do not know why the error occurred today)


The mail shows that the third step of the job reports an error.

Step 3:

Msdb. dbo. sp_send_dbmail
@ Profile_name = 'seagull2dbmail ',
@ Recipients = 'v-white Dan <v-baidd@sinooceanland.com> ',
@ Subject = 'feedback the first 50 statements with long execution time ',
@ File_attachments = '\ 10.0.9.20.\ bcp \ bcp_10.0.8.103 \ top_ SQL .xls'


Run the preceding statement separately and report the following error:

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


Solution:

Configure 'database mail' to increase the 'maximum file size (in bytes.






Set the 'maximum file size (in bytes) to a greater value (the default value is 1000000, that is, 1 M)


After the settings are complete, execute Step 3. No error is reported. (* ^__ ^ *) Xi ......


This article translated from: http://www.dbdigger.com/, and made some changes.


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.