C#/ SQL获取所有存储过程和他们的代码 [英] C#/SQL Get all Stored Procedures and their Code
本文介绍了C#/ SQL获取所有存储过程和他们的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我怎样才能获得所有存储过程和从SQL Server?
How can I obtain all stored procedures and their code from SQL Server?
我需要显示的数据是类似于SQL Server Management Studio中显示,包括。允许通过SP与代码表和索引浏览。
I need to show data that is similar to what SQL Server Management Studio shows, incl. allowing to browse through SP's with code, tables and indexes.
这是如何得到这个信息出来的SQL Server的任何提示? PS,我使用C#。
Any hints on how to get this information out of SQL Server? P.S., I'm using C#.
推荐答案
的 SQL Server管理对象(SMO)将是一个良好的开端。这篇文章有代码示例,包括上市存储过程:
SQL Server Management Objects (SMO) would be a good place to start. This article has code examples including listing Stored Procedures:
这篇关于C#/ SQL获取所有存储过程和他们的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文