如何读取从具有A'#'的Excel表格的范围在SSIS上使用OpenRowset属性的名称?
我正在尝试使用SSIS中的OpenRowset
属性读取从Excel表的范围。
表名是IMSP#001
,我正在尝试访问从单元格a2到BA
的范围。
我已经尝试将OpenRowset属性设置为imsp#001 $ a2:ba
,但我得到了错误
'打开“ IMSP#001 $ a2:ba”失败'
的行列集
我认为符号'#'
是错误的原因。
我还尝试了以下查询,但仍然遇到相同的错误。
SELECT * FROM [IMSP#001$A2:BA]
I'm trying to read a range from an Excel sheet using the OpenRowset
property in SSIS.
The sheet name is IMSP#001
and I'm trying to access the range from cells A2 to BA
.
I've tried setting the OpenRowset property as IMSP#001$A2:BA
but I get the error
'Opening a rowset for "IMSP#001$A2:BA" failed'
I think the symbol '#'
is the cause of the error.
I've also tried the query below but still get the same error.
SELECT * FROM [IMSP#001$A2:BA]
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论