SSIS工作表名称变量工作表名称中的空格 - 加载到SQL。 [英] SSIS sheetname variables where spaces in sheet names - loading to SQL.
问题描述
我在下面的链接中跟随一个例子:
如何将多个Excel工作表中的数据加载到SSIS中的任何目标 [ ^ ]
我没有使用Microsoft Jet 4.0 OLE DB Provider,因为我得到了一个没有稳定的ISAM消息。所以使用过ADO.NET:OLEDB(MS office 12.0 Access Database Engine OLE DB Provider
扩展属性:Excel 12.0 Macro; HDR = YES)
我遇到的问题是,在我的工作簿中,工作表名称变量没有更新?
每个循环已经有六个页面。
第一张表是:
Med fit calc 1月16日
第二个
Med fit calc 2月16日
等
但是,加载到SQL表的包加载第一张6次而不是6张,每次加载一次。所以我猜测变量(varSheetName)没有被更新。
我已经将varSheetName初始化为带有值的字符串
Med fit calc 1月16 $
我也尝试将表格重命名为Jan16等,变量为Jan16 $
有人可以提供建议吗?
我尝试了什么:
我尝试更改工作表名称和提供商。
Hi,
I am following an example at the link below:
How to load data from multiple Excel sheets to any destination in SSIS[^]
I have not used Microsoft Jet 4.0 OLE DB Provider as i get a no stable ISAM message. So have used ADO.NET:OLEDB (MS office 12.0 Access Database Engine OLE DB Provider
Extended properties: Excel 12.0 Macro;HDR=YES)
The problem i am having is that with my workbook the worksheet names variable is not updating?
The for each loop has picked up on there being six sheets.
The first sheet being:
Med fit calc Jan 16
The second
Med fit calc Feb 16
etc.
However, the package which loads to a SQL table, loads the first sheet 6 times instead of 6 sheets, one time each. So i am guessing the variable (varSheetName) is not being updated.
I have initialised varSheetName as string with value
Med fit calc Jan 16$
I have also tried renaming sheets to Jan16 etc and the variable as Jan16$
Can anyone please advise?
What I have tried:
I have tried changing sheet names and Providers.
推荐答案
我也尝试将表重命名为Jan16等,变量为Jan16
I have also tried renaming sheets to Jan16 etc and the variable as Jan16
任何人都可以提供建议吗?
我尝试了什么:
我尝试更改工作表名称和提供商。
Can anyone please advise?
What I have tried:
I have tried changing sheet names and Providers.
这篇关于SSIS工作表名称变量工作表名称中的空格 - 加载到SQL。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!