Hey OGINTZ Marina
I think you need to separately manage the copying of indexes and stored procedures, as they are not automatically included in a typical table copy operation.
lemme help you on how to do this.
Use your preferred method to copy tables from the source to the target. Tyou can do this through tools like Azure Data Factory, SSIS.
Identify and script out the indexes from the source database. You can use SSMS to generate scripts for each index.
In SSMS, you can script indexes by right-clicking on the table, selecting "Script Table as," and choosing "CREATE To" or "DROP and CREATE To" for scripting the index. Run the generated scripts on the target database.
Similarly, script out the stored procedures from the source database using SSMS, Right-click on the stored procedure, select "Script Stored Procedure as," and choose "CREATE To" or "DROP and CREATE To" for scripting the stored procedure.
Finally run the stored procedure scripts on the target database. If this helps kindly accept the answer thanks much.