Insert all values of a table into another table in SQL

后端 未结 9 1009
礼貌的吻别
礼貌的吻别 2020-11-29 16:56

I am trying to insert all values of one table into another. But the insert statement accepts values, but i would like it to accept a select * from the initial_Table. Is this

9条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-29 17:36

    If you are transferring a lot data permanently, i.e not populating a temp table, I would recommend using SQL Server Import/Export Data for table-to-table mappings.

    Import/Export tool is usually better than straight SQL when you have type conversions and possible value truncation in your mapping. Generally, the more complex your mapping, the more productive you are using an ETL tool like Integration Services (SSIS) instead of direct SQL.

    Import/Export tool is actually an SSIS wizard, and you can save your work as a dtsx package.

提交回复
热议问题