如何将数据从Excel(2007)源提取到Sqlserver目标 [英] How can pull the data from Excel(2007) source to Sqlserver destination

查看:77
本文介绍了如何将数据从Excel(2007)源提取到Sqlserver目标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了包,但没有执行。问题发生在哪里我没有得到。



我给你所有的步骤我怎么能创造包



Excel来源--------------------- Oledb目的地



--- > 1)我打开我的项目

--->然后我在控制流任务中采用数据流任务

--->然后点击数据流任务

EXCEL SOURCE:

---->然后在数据流任务中获取Excel源

---->然后右键单击Excel源并单击编辑选项

--->用于创建oledb连接经理我点击了新选项

--->然后浏览并从特定文件夹中选择我的Excel文件

--->设置Excel版本是Excel 2007然后单击确定。

--->设置数据访问模式是表格或视图,并在Excel工作表的名称上设置Sheet1 $

--->我在预览选项中获得了Excel数据然后我点击了确定

这些都是我配置的Excel源代码---------------

OLEDB目的地:

----->我拿了OLEDB目的地

---->然后从excel源到oledb目的地maped

---->右键单击OLEDB目的地,然后单击编辑选项

--->然后使用一些数据库创建Oledb连接管理器

---->并设置数据访问模式是表格或视图

----> ''表格或视图的名称''点击新选项

--->然后创建表框打开

---->在那我找到了表格语法。所以,我用一些名称而不是OLEDB目的地名称更改了表名

---->然后点击确定

---->这里我在预览选项中也有列

---->在映射已映射的页面列然后单击确定。

这些是OLEDB目标的所有步骤。

因此创建了一个简单的包。

----现在我想控制流量

----然后选择数据流任务然后构建包

----然后我做了Debug(执行) )包裹

这里包没有执行。

在这里我也没有得到任何警告和错误。

这里我得到了红色控制流程中的数据流任务

我得到了红色Excel源也没有在OLEDB目的地上获得任何颜色



实际上这个发生在我的套餐中。



请尽量回答这个问题.........

Already i created package but did not it execute. where is it problem occurred i didn''t get.

I am giving you all the steps how could i created package

Excel Source ---------------------Oledb Destination

---> 1) i open my project
---> then i took Data flow task in Control flow task
---> then click on Data flow task
EXCEL SOURCE:
----> then took Excel source in Data flow task
---->then right click on Excel source and click on Edit option
--->for create oledb connection manager i clicked on New option
---> then Browse and select my Excel file from particular folder
--->set the Excel version is Excel 2007 then click Ok.
--->set the Data Access mode is Table or view and set the Sheet1$ on name of the Excel sheet
---> i got the Excel data in the Preview option then i clicked ok
These are above all i configured of Excel source ---------------
OLEDB DESTINATION:
-----> I took OLEDB destination
----> then maped from excel source to oledb destination
----> right click on OLEDB destination then click Edit option
---> then created Oledb connection manager using some database
----> and set the Data access mode is Table or view
----> for ''Name of the table or view '' clicked New option
---> then create table Box is opened
----> in that i found table syntax . so in that i changed table name with some name instead of OLEDB Destination name
----> then click ok
----> here i got columns in preview option also
----> in mapping page columns already mapped then click Ok.
These are all steps of OLEDB Destination .
so one simple package has been created .
----NOW I WENT TO CONTROL FLOW
----THEN SELECT THE DATA FLOW TASK then Build the package
----then i did Debug(Execute) the package
here package did not executed.
In this i didn''t get any Warnings and Errors also.
here i got red color Data flow task in control flow
and i got red color Excel Source also and not got any color on OLEDB Destination

ACTUALLY THIS IS HAPPENED IN MY PACKAGE .

SO PLEASE GIVE ME ANSWER FOR THIS PROBLEM.........

推荐答案

在Excel工作表的名称上

--->我在预览选项中获得了Excel数据然后我点击了确定

这些都是我配置的Excel源代码---------------

OLEDB目的地:

----->我拿了OLEDB目的地

---->然后从excel源到oledb目的地maped

---->右键单击OLEDB目的地,然后单击编辑选项

--->然后使用一些数据库创建Oledb连接管理器

---->并设置数据访问模式是表格或视图

----> ''表格或视图的名称''点击新选项

--->然后创建表框打开

---->在那我找到了表格语法。所以,我用一些名称而不是OLEDB目的地名称更改了表名

---->然后点击确定

---->这里我在预览选项中也有列

---->在映射已映射的页面列然后单击确定。

这些是OLEDB目标的所有步骤。

因此创建了一个简单的包。

----现在我想控制流量

----然后选择数据流任务然后构建包

----然后我做了Debug(执行) )包裹

这里包没有执行。

在这里我也没有得到任何警告和错误。

这里我得到了红色控制流程中的数据流任务

我得到了红色Excel源也没有在OLEDB目的地上获得任何颜色



实际上这个我的套餐已经发生了。



如果这个问题请给我答复.........
on name of the Excel sheet
---> i got the Excel data in the Preview option then i clicked ok
These are above all i configured of Excel source ---------------
OLEDB DESTINATION:
-----> I took OLEDB destination
----> then maped from excel source to oledb destination
----> right click on OLEDB destination then click Edit option
---> then created Oledb connection manager using some database
----> and set the Data access mode is Table or view
----> for ''Name of the table or view '' clicked New option
---> then create table Box is opened
----> in that i found table syntax . so in that i changed table name with some name instead of OLEDB Destination name
----> then click ok
----> here i got columns in preview option also
----> in mapping page columns already mapped then click Ok.
These are all steps of OLEDB Destination .
so one simple package has been created .
----NOW I WENT TO CONTROL FLOW
----THEN SELECT THE DATA FLOW TASK then Build the package
----then i did Debug(Execute) the package
here package did not executed.
In this i didn''t get any Warnings and Errors also.
here i got red color Data flow task in control flow
and i got red color Excel Source also and not got any color on OLEDB Destination

ACTUALLY THIS IS HAPPENED IN MY PACKAGE .

SO PLEASE GIVE ME ANSWER FOR THIS PROBLEM.........


这篇关于如何将数据从Excel(2007)源提取到Sqlserver目标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆