如何读取从具有A'#'的Excel表格的范围在SSIS上使用OpenRowset属性的名称?

发布于 2025-02-01 12:09:35 字数 383 浏览 0 评论 0原文

我正在尝试使用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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文