简体   繁体   中英

Is there a way to preserve indexes and keys of SQL table when performing a copy activity using azure data factory

Trying to perform a copy activity from onprem sql to azure sql. The source database table has few indexes and keys and when I perform Copy activity to azure sql by Auto-generate new table, indexes and keys are missing on destination table.

Based on the parameter statements in this official document ,there is no guarantee that the index and key will be transferred in ADF copy activity.

As you mentioned in your comment,you could have to create them by yourself,such as in the stored procedure which could be executed in ADF copy activity.

More clues,please refer to these threads:

1. https://www.sqlserverlogexplorer.com/copy-table-one-database-another-database/

2. How to copy indexes from one table to another in SQL Server

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM