从存储过程中提取语句 [英] Extract statements from Stored Procedure
本文介绍了从存储过程中提取语句的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以以编程方式提取SQL Server存储过程中的语句列表.在.net中还是有一个SQL可以执行相同的操作.
Sp_helpText完全按照我们对其进行编码的方式来提供存储过程的内容.每行不对应一条语句.
Is it possible to extract the list of statements in a SQL Server Stored Procedure programmatically. Either in .net or is there a SQL to do the same.
Sp_helpText gives the stored procedure content exactly the way we had coded it. Each row doesn''t correspond to a statement.
推荐答案
在SQL中,您可以调用
In SQL, you can call
exec sp_helptext SPName
这篇关于从存储过程中提取语句的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文