简体   繁体   English

为什么我的数据不写入excel目的地? SSIS

[英]Why isn't my data writing to the excel destination? SSIS

I have created a SSIS package that exports several rows to Excel, usually less than 200 (including the header). 我创建了一个SSIS包,可以将多行导出到Excel,通常少于200行(包括标题)。 When I run it in VS2015 Debug everything turns green. 当我在VS2015中运行它时,一切都变为绿色。

在此输入图像描述

I even wait like this question says . 我甚至等待这个问题说

在此输入图像描述

Still, nothing but the header ever gets to the file. 但是,除了标题之外,只有文件可以访问。

I know it's not much data, but I'm trying to automate it as the data will eventually grow and I don't want to manually run this all the time. 我知道这不是太多数据,但我正在尝试自动化它,因为数据最终会增长,我不想一直手动运行它。

Any ideas? 有任何想法吗? I'm using SQL Server 2012 and wrote this SSIS package with VS2015. 我正在使用SQL Server 2012并使用VS2015编写此SSIS包。

Something that occasionally happens with Excel destinations is that hidden formatting will cause the data flow connector to begin writing data at a row other than 1. Excel目标偶尔会发生的事情是隐藏的格式化将导致数据流连接器开始在1以外的行中写入数据。

If this happens, you'll need to recreate your template from a fresh Excel document, and reconstruct the header as needed. 如果发生这种情况,您需要从新的Excel文档重新创建模板,并根据需要重新构建标题。

It depends on the buffer size that underlying process uses. 它取决于底层进程使用的缓冲区大小。 I monitored the consumption of C: drive while the SSIS package was writing to the Excel destination, and found that the space was getting full, and as soon the whole space is occupied package ended with success without writing any row to excel destination. 我在SSIS包写入Excel目标时监视C:驱动器的消耗,发现空间已满,并且一旦占用整个空间,包就会成功结束,而不会向excel目标写入任何行。 Therefore I cleared enough space from my C: drive (around 2 GB) and everything started working fine then. 因此,我从C:驱动器(大约2 GB)中清除了足够的空间,然后一切正常。

Also found the following useful thread that might be helpful for someone. 还找到了以下可能对某人有帮助的有用线程

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM