【问题标题】:How to remove total row and group header from excel sheet using SSIS?如何使用 SSIS 从 Excel 工作表中删除总行和组标题?
【发布时间】:2017-01-16 15:13:32
【问题描述】:

我是 SSIS 的新手。我有一个包含分组数据的 excel 文件,按供应商分组如下

Group header line
Detail lines1
Detail lines2
Detail lines3
Group footer with totals

有什么方法可以使用 SSIS 删除这些 Group header 和 Group footer?

【问题讨论】:

    标签: sql-server excel ssis


    【解决方案1】:

    您可以从 Excel 中选择一个范围:

    EG

    如果你有 Sheet1:

    head    
    Name    Amt
    John    1
    Bob     2
    Fred    3
    Foot    
    
    
    select * from [Sheet1$A2:B5]
    

    这将提供详细信息并跳过标题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-05-15
      • 2021-06-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-05-03
      相关资源
      最近更新 更多