Copy SQL Server table
    • Dark
      Light
    • PDF

    Copy SQL Server table

    • Dark
      Light
    • PDF

    Article summary

    This feature allows you to copy an existing SQL Server table in a database to another database. You can optionally choose to just copy the table itself, or the data in the table also.

    To access this feature, click on the Copy SQL Server table button in the SQL Server Tools menu.

    SQLServerTools_RibbonMenuButton3.png

    The Copy SQL Server table dialog is shown below:

    SQLServerTools_CopyTableDialog.png

    Copy table

    From the Copy SQL Server table dialog, first select the table that you want to copy, then the destination database for the copied table.

    SQLServerTools_CopyTable_Basic.png

    You can choose a table from a database on the currently connected server, or from a different server. To select a different server, click on the Edit Server button and then select a server to connect to.

    SQLServerTools_CopyTable_EditServer.png

    When you select the destination for the copied table, you can also choose to create a new database instead of selecting an existing one. To create a new database, click on the Create new database button.

    SQLServerTools_CopyTable_CreateNewDatabase.png

    By default, SQL Spreads will create the newly copied table in the dbo schema, and will copy the data in the table across to the new table. You can change these settings as well as the name of the new table in the Copy Settings section of the dialog.

    SQLServerTools_CopyTable_CopySettings.png

    When you click OK, a confirmation dialog appears which summarises the copy action. Click the Confirm Copy button.

    SQLServerTools_CopyTable_ConfirmDialog.png


    Was this article helpful?