Specify SMO timeout in SSIS

JoeEnab 1 Reputation point
2022-04-21T15:39:54.63+00:00

I'm using the "Transfer SQL Server Objects" task in SSIS to copy all tables from one database to another. The databases are on the same server, but one is in another instance.

As the database has grown, the task has started getting a timeout error. It looks like every time the transfer takes more than 10 minutes, it times out. I suspect this is due to a default timeout in the SMO objects of 10 minutes.

Is there any way to set the timeout it uses with SMO in the Transfer SQL Server Objects task? Or is the task just limited to a hard-coded 10 minutes and it's useless if it exceeds that?

SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,451 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. ZoeHui-MSFT 32,586 Reputation points
    2022-04-22T06:43:31.82+00:00

    Hi @JoeEnab ,

    I haven't found the place to directly change the connection timeout via SSDT.

    I did some test that someone mentioned to use configure the timeout in the script task.

    Refence here.

    Could you please share the full error message so that we could do more test?

    In addition, have you try to use SQL Server Import and Export Wizard to transfer the tables to see if it could work.

    start-the-sql-server-import-and-export-wizard

    Regards,

    Zoe


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. JoeEnab 1 Reputation point
    2022-04-22T20:33:10.033+00:00

    Zoe,

    The error that we get is:

    Execution failed with the following error: "Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding.".

    (The server is up and running - it is the same server.)

    We cannot use the Import/Export Wizard because this must be non-interactive and run automatically every night, then it performs some transformation of the data after it runs.

    The first link you sent is about a Powershell script, not SSIS.

    Thanks!

    0 comments No comments