.sql 文件的存储过程 [英] Stored Procedures to .sql files

查看:32
本文介绍了.sql 文件的存储过程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 SQL 2005 中是否有一个简单的过程可以将我所有的存储过程导出到单独的 .sql 文件中.我想将它们移到 VSS 中,但对于点击每个文件以获取源代码、将其转储到文本文件等的前景并不太兴奋.

Is there a simple process in SQL 2005 for spitting all of my stored procedures out to individual .sql files. I'd like to move them into VSS, but am not too excited by the prospect of clicking on each one to get the source, dumping it into a text file and so on..

推荐答案

在 SQL Management Studio 中右键单击数据库,转到任务 -> 生成脚本,演练向导.其中一个页面可让您将每个对象脚本化到其自己的文件中.

In SQL Management Studio right click on the database, go to tasks -> Generate Scripts, walkthrough the wizard. One of the pages will let you script each object to its own file.

这篇关于.sql 文件的存储过程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆