Script entire database SQL-Server

前端 未结 7 1273
慢半拍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:15

    I wrote a utility for this task, SMOscript.

    Script generation is performed by the SMO library, and supports the new object types in SQL 2005 and 2008.

提交回复
热议问题