编写整个数据库 SQL-Server 的脚本 [英] Script entire database SQL-Server
本文介绍了编写整个数据库 SQL-Server 的脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法从数据库中获取所有表、过程和其他对象的脚本?我知道有一个选项可以为数据库编写脚本,但它只给了我某种顶级脚本,当然不是创建所有表、过程、udfs 等的脚本.
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 of top level script, certainly not a script to create all tables, procs, udfs, .etc.
推荐答案
来自 Management Studio右键单击您的数据库.任务 -> 生成脚本.
From Management Studio Right-click on your database. Tasks -> Generate Scripts.
应该可以.
这篇关于编写整个数据库 SQL-Server 的脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文