English 中文(简体)
如何在一揽子方案内使用Excel档案中指明的栏目名称?
原标题:How to use the column names specified in Excel file s first row within a package?

任何人在从Excel来源向2005年西非经济和货币联盟的一个目的地进口数据时,可以告诉我如何改变违约栏目名称(F1F2F3等)。

Example: Data in my Excel spreadsheet looks as following

Title         | ProvinceID | DistrictID |
--------------|------------|------------|
Construction  |      12    |      32    |

问题在于,当我从表格中进口数据时,掌握数据,但一栏头名称显示为F1、F2和F3,我希望该栏目的名称按Excel电子表格的界定。 高度赞赏你的协助

最佳回答

Solution:

可以通过核对箱子<代码>来做到这一点。 第一行有栏,同时配置<代码> ExcelLink Manager。

Example:

这方面的一个例子是利用SSIS 2008 R2表明了这一点。

  • Let s assume that you have an Excel file as shown below with the first row containing the column names.

“Excel

  • When you configure an Excel Connection Manager, you need to select the Excel file. On the Excel connection manager, you will notice that there is a checkbox named First row has column names. Check this box if you want to use the column names specified in the first row of your Excel file to be visible in SSIS package.

“Excellink

  • So, when you configure an Excel Source within a Data Flow task, you will notice the column names specified in the first row of the Excel file being displayed correctly. Following screenshots show how the column names are displayed when an Excel Connection Manager is used in an Excel Source.

“Excel

Excel source columns

Reason for your issue:

  • The reason why you are seeing the column names as F1, F2 and F3 is because you probably didn t check the box First row has column names on the Excel Connection Manager. In that case, it will appear as shown here on the Excel source.

“没有一栏的Excel

希望会有所帮助。

问题回答

暂无回答




相关问题
Export tables from SQL Server to be imported to Oracle 10g

I m trying to export some tables from SQL Server 2005 and then create those tables and populate them in Oracle. I have about 10 tables, varying from 4 columns up to 25. I m not using any constraints/...

SQL server: Can NT accounts be mapped to SQL server accounts

In our database we have an SQL server account that has the correct roles to access some of the databases. We are now switching to windows authentication and I was wondering if we can create a NT user ...

SQL Server 2000, ADO 2.8, VB6

How to determine if a Transaction is active i.e. before issuing Begin Transaction I want to ensure that no previous transaction are open.. the platform is VB6, MS-SQL Server 2000 and ADO 2.8

热门标签