Script entire database SQL-Server

前端 未结 7 1295
慢半拍i
慢半拍i 2020-12-02 13:06

Is there a way I can get a scripting of all tables, procs, and other objects from a database? I know there\'s an option to script the database but it only gave me some sort

7条回答
  •  生来不讨喜
    2020-12-02 13:26

    Just looking at the table data, to output all of the table data content in Management Studio 2012 and 2014, it is a bit hidden but I found the option after some looking:

    1. Right click the db
    2. Select 'Tasks' > 'Generate Scripts...'
    3. On 'Set Scripting Options', click 'Advanced'
    4. Under 'General', set 'Types of data to script' to true (it is at the bottom of the 'General' group)

提交回复
热议问题