Script entire database SQL-Server

前端 未结 7 1269
慢半拍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)
    0 讨论(0)
提交回复
热议问题