在 Talend Open Studio 8.x 中创建具有外键输出的 SQL Server 表

发布于 2025-01-15 12:19:31 字数 236 浏览 5 评论 0原文

我正在使用 Talend 将一张表从一台 SQL Server(源)迁移到另一台 SQL Server(目标)。

源表没有任何索引。我想在目标表添加一些索引。

在 Talend studio 中,如何添加或创建目标表的索引?。

我怎么做呢?或者我应该使用什么 Talend 组件?

我正在使用 Talend Open Studio 8.0.1 和 SQL Server 2019。

谢谢。

I'm using Talend to migrate one table from one SQL Server (source) to other SQL Server (target).

The source table not have any index. And I want to add some index at target table.

In Talend studio, How I can add or create the index for target table?.

How I do it? Or what Talend's component should I use?.

I am using Talend Open Studio 8.0.1 and SQL Server 2019.

Thank you.

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

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

发布评论

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

评论(1

[浮城] 2025-01-22 12:19:31

您可以使用tDbRow组件来执行sql语句,并且不要忘记tDbCommit组件来提交数据库并在需要时关闭连接,

您需要执行的查询如下例如创建非聚集索引

create nonclustered index indexname on tablename(columnname)

删除索引

 Drop Index index name on tablename

查看数据库中的所有索引

 select * from sys.indexes

You can use tDbRow component to execute the sql statement and don't forget a tDbCommit component to commit the database and close the connextion if needed

the query you need to execute is as such Create Nonclustered Indexes

create nonclustered index indexname on tablename(columnname)

Drop Index

 Drop Index index name on tablename

See all Indexes in a database

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