Simple way to programmatically get all stored procedures

后端 未结 12 2140
没有蜡笔的小新
没有蜡笔的小新 2020-12-24 09:22

Is there a way to get stored procedures from a SQL Server 2005 Express database using C#? I would like to export all of this data in the same manner that you can script it o

12条回答
  •  感情败类
    2020-12-24 09:38

    I think this is what you're really looking for:

    select SPECIFIC_NAME,ROUTINE_DEFINITION from information_schema.routines
    

    There are a ton of other useful columns in there too...

提交回复
热议问题