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

DECLARE
    @tab char(1) = CHAR(9)
EXEC msdb.dbo.sp_send_dbmail
    @profile_name = ‘backupNotify‘,
    @recipients = ‘[email protected]‘,
    @query = ‘select cardno,badge,empname,empdep,swptime,macip from  CanteenProject.dbo.ADSSwipData where badge like ‘‘T%‘‘ and (swptime>CONVERT(varchar(7),DATEADD(mm,-1,GETDATE()),23)+‘‘-21‘‘ and swptime<CONVERT(varchar(7),GETDATE(),23)+‘‘-21‘‘)‘,
    @subject = ‘Monthly Trainees Checkin Log‘,
    @attach_query_result_as_file = 1,
    @query_attachment_filename=‘TraineesCheckin-ConfidentialData.csv‘,
    @query_result_separator=@tab,
    @query_result_no_padding=1

单独执行上面的语句,报错:

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

解决办法:

配置‘数据库邮件’,将‘最大文件大小(字节)’设置得大些。

时间: 2024-10-06 01:10:46

File attachment or query results size exceeds allowable value of 1000000 bytes的相关文章

Intellij IDEA中file size exceeds configured limit解决

把Hadoop源码导入IDEA中后,其中有个ClientNamenodeProtocolProtos文件代码高达82997行,IDEA直接就不把它当java类看了,报file size exceeds configured limit错误. 解决办法如下: 你可以尝试修改intellij IDE安装目录下的bin/idea.properties, 将其中的idea.max.intellisense.filesize=2500改成大一些,比如idea.max.intellisense.filesi

[Intellij IDEA]File size exceeds configured limit

这两天尝试使用 IDEA, 发现一个问题File size exceeds configured limit (2560000). Code insight features not available. 原因: IDEA对能关联的文件大小做了限制,主要是为了保护内存,默认值为2500kb,对于一般的java文件也够用了,只是这里我用protocbuf生成的java文件过大,达到3M多. 其设置在...JetBrains\IntelliJ IDEA Community Edition 14.1.

java.lang.OutOfMemoryError: bitmap size exceeds VM budget解决方法

1 BitmapFactory.decodeFile(imageFile); 用BitmapFactory解码一张图片时,有时会遇到该错误.这往往是由于图片过大造成的.要想正常使用,则需要分配更少的内存空间来存储. BitmapFactory.Options.inSampleSize 设置恰当的inSampleSize可以使BitmapFactory分配更少的空间以消除该错误.inSampleSize的具体含义请参考SDK文档.例如: 1 2 3 BitmapFactory.Options op

InnoDB: Error: log file .\ib_logfile0 is of different size 0 10485760 bytes

启动WAMP Server的时候报例如以下的错误: 140618 23:12:32 [Note] Plugin 'FEDERATED' is disabled. 140618 23:12:32 InnoDB: The InnoDB memory heap is disabled 140618 23:12:32 InnoDB: Mutexes and rw_locks use Windows interlocked functions 140618 23:12:32 InnoDB: Compres

报错问题:InnoDB: Error: log file ./ib_logfile0 is of different size

在使用xtrabackup对mysql执行备份操作的时候,出现下面的报错:.....................xtrabackup: innodb_log_file_size = 50331648InnoDB: Error: log file ./ib_logfile0 is of different size 33554432 bytesInnoDB: than specified in the .cnf file 50331648 bytes! 解决办法:可以计算一下33554432的

mariadb:InnoDB: Error: log file ./ib_logfile0 is of different size 0 5242880 bytes

mariadb 启动中 InnoDB: Error: log file ./ib_logfile0 is of different size 0 起因:线上正在运行的系统,因为需要调整性能,变更了my.cnf参数的innodb_log_file_size大小,重启MySQL时err日志输出如下InnoDB: Error: log file ./ib_logfile0 is of different size 0 xxxx bytes 停掉mariadb 解决办法:移除原有ib_logfile#m

These query results are not updateable.Include the ROWID to get updateable results.

通过plsql来添加新的记录时候,出现如下错误:These query results are not updateable.Include the ROWID to get updateable results. 如截图: 解决办法如下: 第一种解决方案:select* from  T_status_set for update 第二种解决方案:select tss.* ,rowid from  T_status_set tss

oracle 不能更新 PL/SQL 点击“edit data”报“ these query results are not updateable”

你可以选择在查询语句的最后加上 for update,就可以打开编辑锁,直接修改数据. 而在默认查询下,点击Edit data,会报错:The query results are not updateable. SQL代码示例 select * from table_name for update; (table_name为要编辑的表)

laravel路由无法访问,报404,No query results for model [App\Models\...]

今天遇到了一个问题,在routes/web.php中配置了路由,但始终无法访问该路由,一直报404. Route::resource('gift_packs', 'GiftPacksController', ['only' => ['index', 'show', 'create', 'store', 'update', 'edit', 'destroy']]); Route::get('gift_packs/test', '[email protected]')->name('gift_pa