如何使用SSIS DataFlow设置SQL中的登台表?

发布于 2025-02-02 18:51:07 字数 151 浏览 1 评论 0原文

我正在尝试在SSIS中创建一个数据流,其中源数据源自Excel文件,并到达SQL Server中的临时登台表,我可以在其中添加各种存储过程。

我创建的数据流将数据永久存储在应该是登台区域的内容上。

我想获得一些有关使用SSIS数据流在SQL中创建登台表的想法。

I am trying to create a dataflow in SSIS where the source data originates from an excel file and reaches to a temporary staging table in a SQL server where I can add various stored procedures to the data.

The dataflow that I have created stores the data permanently on what is supposed to be the staging area.

I would like to get some ideas on creating the staging table in SQL with the SSIS dataflow.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

蝶…霜飞 2025-02-09 18:51:07

您的问题有点令人困惑。我想您可能正在尝试将数据加载到临时阶段区域的表中,而不会保留过去的加载数据。

如果我想完成的工作是正确的,那就是“完整的resfresh”数据流。

从您的描述中,我认为您的Alerady有登台表(因此没有NEDD到创建 IT),但是您需要在每次运行中截断它。您可以使用 Control Flow 使用执行SQL任务使用truncate table<您的表名称>来实现这一目标。数据流加载数据必须取决于此任务的依赖,因为每次运行都会截断表。

如果需要创建表,则可以在控制流中使用 execute sql task (您可以使用此任务执行任何类型的查询),rember可以正确设置连接任务经理。

your question is a bit confusing. I suppose that you are maybe trying to make the data loaded in the table of the staging area temporary without keeping the past loaded data.

If I'm right what you're trying to accomplish is a "full resfresh" data flow.

From your description I assume you alerady have the staging table (so no nedd to CREATE it) but you need to truncate it at every run. You can achive this by using a Execut SQL Task element to the control flow with a TRUNCATE TABLE <YOUR TABLE NAME> in it. The data flow loading the data must be in dependency of this task with the result of truncating your table at every run.

If you need to CREATE a table you can do it in the control flow with the Execute SQL Task (you can execute any kind of query with this task), rember to set correctly the connection manager of the task.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文