How to export all data from table to an insertable sql format?

后端 未结 6 1326
Happy的楠姐
Happy的楠姐 2020-12-04 05:32

I have a Table (call it A_table) in a database (call it A_db) in Microsoft SQL Server Management Studio, and there are 10 rows.

I have anot

6条回答
  •  生来不讨喜
    2020-12-04 05:54

    I have not seen any option in Microsoft SQL Server Management Studio 2012 to-date that will do that.

    I am sure you can write something in T-SQL given the time.

    Check out TOAD from QUEST - now owned by DELL.

    http://www.toadworld.com/products/toad-for-oracle/f/10/t/9778.aspx

    Select your rows.
    Rt -click -> Export Dataset.
    Choose Insert Statement format
    Be sure to check “selected rows only”
    

    Nice thing about toad, it works with both SQL server and Oracle. If you have to work with both, it is a good investment.

提交回复
热议问题